FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTutPropTrack.h
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 #ifndef FAIRTUTPROPTRACK_H_
10 #define FAIRTUTPROPTRACK_H_
11 
12 #include "TObject.h"
13 #include "FairTrackParP.h"
14 #include "TObject.h"
15 #include "TRef.h"
16 
17 class FairTutPropTrack : public TObject
18 {
19  public:
21  FairTutPropTrack(int pdgcode,
22  const FairTrackParP &first,
23  const std::vector<std::pair<int, int>> &hitsvector,
24  int trueMCTrackIndex);
25 
26  void Print();
27 
28  FairTrackParP GetParamFirst() { return fTrackParamFirst; }
29  int GetNofHits() { return fHitsIndices.size(); }
30  std::pair<int, int> GetHitIndex(int i) { return fHitsIndices[i]; }
31  int GetMCTrackIndex() { return fMCTrackIndex; }
32 
33  private:
34  int fPdgCode;
35  FairTrackParP fTrackParamFirst;
36  std::vector<std::pair<int, int>> fHitsIndices;
37 
38  int fMCTrackIndex;
39 
40  public:
41  ClassDef(FairTutPropTrack, 1)
42 };
43 
44 #endif /* FAIRTUTPROPTRACK_H_ */
FairTrackParP GetParamFirst()
std::pair< int, int > GetHitIndex(int i)