FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTutPropTrack.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2020 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 #include "FairTutPropTrack.h"
10 
11 #include "FairLogger.h"
12 #include "FairRootManager.h"
13 
15 
17  : TObject()
18  , fPdgCode(0)
19  , fTrackParamFirst()
20  , fHitsIndices()
21  , fMCTrackIndex(-1)
22 {}
23 
25  const FairTrackParP &first,
26  const std::vector<std::pair<int, int>> &hitsvector,
27  int trueMCTrackIndex)
28  : TObject()
29  , fPdgCode(pdgcode)
30  , fTrackParamFirst(first)
31  , fHitsIndices(hitsvector)
32  , fMCTrackIndex(trueMCTrackIndex)
33 {}
34 
36 {
37  LOG(info) << "FirstTrackPar:";
38  fTrackParamFirst.Print();
39  LOG(info) << "hits:";
40  for (int ih = 0; ih < fHitsIndices.size(); ih++) {
41  LOG(info) << fHitsIndices[ih].first << " / " << fHitsIndices[ih].second;
42  }
43  LOG(info) << "-------------------";
44 }
virtual void Print(Option_t *option="") const
ClassImp(FairEventBuilder)