PandaRoot
PndDrcTrackInfo.h
Go to the documentation of this file.
1 // -----------------------------------------
2 // PndDrcLutInfo.h
3 //
4 // Created on: 18.10.2013
5 // Author: R.Dzhygadlo at gsi.de
6 // -----------------------------------------
7 
8 #ifndef PNDDRCTRACKINFO_H
9 #define PNDDRCTRACKINFO_H
10 
11 #include "PndDrcPhotonInfo.h"
12 
13 #include "TObject.h"
14 #include "TClonesArray.h"
15 #include "TVector3.h"
16 #include <vector>
17 
18 class PndDrcTrackInfo : public TObject {
19 
20  public:
21  // Default constructor
23 
24  // Default destructor
26 
27  // Copy constructor
28  // PndDrcTrackInfo (const PndDrcTrackInfo& val): TObject(val) { *this = val; } // Most probably not needed
29 
30  // Mutators
31  void SetMcPdg(Int_t val) { fMcPdg = val; }
32  void SetMcMomentum(TVector3 val) { fMcMomentum = val; }
33  void SetMcMomentumInBar(TVector3 val) { fMcMomentumInBar = val; }
34  void SetMcPositionInBar(TVector3 val) { fMcPositionInBar = val; }
35  void SetMcCherenkov(Double_t val) { fMcCherenkov = val; }
36  void SetMcTimeInBar(Double_t val) { fMcTimeInBar = val; }
37 
38  void SetPdg(Int_t val) { fPdg = val; }
39  void SetMomentum(TVector3 val) { fMomentum = val; }
40  void SetCherenkov(Double_t val) { fCherenkov = val; }
41 
42  void AddPhoton(PndDrcPhotonInfo photon);
43 
44  // Accessors
45  Int_t GetMcPdg() { return fMcPdg; }
46  TVector3 GetMcMomentum() { return fMcMomentum; }
47  TVector3 GetMcMomentumInBar() { return fMcMomentumInBar; }
48  TVector3 GetMcPositionInBar() { return fMcPositionInBar; }
49  Double_t GetMcCherenkov() { return fMcCherenkov; }
50  Double_t GetMcTimeInBar() { return fMcTimeInBar; }
51 
52  Int_t GetPdg() { return fPdg; }
53  TVector3 GetMomentum() { return fMomentum; }
54  Double_t GetCherenkov() { return fCherenkov; }
55 
56  Int_t GetPhotonSize() { return fPhotonSize; }
57  PndDrcPhotonInfo GetPhoton(Int_t id) { return fPhotonArray[id]; }
58 
59  protected:
60  std::vector<PndDrcPhotonInfo> fPhotonArray;
61  Int_t fPhotonSize;
62 
63  Int_t fMcPdg;
64  TVector3 fMcMomentum;
65  TVector3 fMcMomentumInBar;
66  TVector3 fMcPositionInBar;
67  Double_t fMcCherenkov;
68  Double_t fMcTimeInBar;
69 
70  Int_t fPdg;
71  TVector3 fMomentum;
72  Double_t fCherenkov;
73 
74  ClassDef(PndDrcTrackInfo, 1)
75 };
76 
77 #endif
void SetMomentum(TVector3 val)
void SetMcCherenkov(Double_t val)
TVector3 fMcPositionInBar
void SetPdg(Int_t val)
Double_t GetMcCherenkov()
PndDrcPhotonInfo GetPhoton(Int_t id)
void SetMcMomentum(TVector3 val)
Double_t fMcCherenkov
TVector3 GetMcMomentum()
Double_t fMcTimeInBar
Double_t GetMcTimeInBar()
TVector3 GetMcPositionInBar()
void AddPhoton(PndDrcPhotonInfo photon)
TVector3 GetMcMomentumInBar()
TVector3 fMcMomentum
void SetMcPositionInBar(TVector3 val)
TVector3 fMcMomentumInBar
std::vector< PndDrcPhotonInfo > fPhotonArray
void SetCherenkov(Double_t val)
void SetMcTimeInBar(Double_t val)
void SetMcMomentumInBar(TVector3 val)
Double_t GetCherenkov()
void SetMcPdg(Int_t val)
TVector3 GetMomentum()