PandaRoot
PndDskFLGHit.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndDskFLGHit header file -----
3 // ----- Created 25/04/10 by Y. Liang -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef PNDDSKFLGHIT_H
7 #define PNDDSKFLGHIT_H
8 
9 #include "PndMCPoint.h"
10 
11 class PndDskFLGHit : public PndMCPoint {
12 
13  public:
15  PndDskFLGHit();
16 
30  PndDskFLGHit(Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time, Int_t pdgCode, TString pdgName, Double_t energy, Int_t motherTrackID,
31  Int_t motherPdgCode, TString motherPdgName, Double_t mass, Double_t angIn, Double_t thetaC, TVector3 mom_cherenkov_photon, Int_t num_light_guide, Int_t num_pixel);
32 
33  PndDskFLGHit(Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time, Double_t angIn, Double_t thetaC, TVector3 mom_cherenkov_photon,
34  Int_t num_light_guide, Int_t num_pixel);
35 
37  // PndDskFLGHit(const PndDskFLGHit& particle) { *this = particle; }; // No need
38 
40  virtual ~PndDskFLGHit();
41 
46  virtual void Print(const Option_t *opt) const;
47 
56  void SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum, Double_t exitTime, Double_t exitEnergy);
57 
59  Int_t GetPdgCode() const { return fPdgCode; }
60  TString GetPdgName() const { return fPdgName; }
61  Double_t GetEnergy() const { return fEnergy; }
62  Int_t GetMotherTrackID() const { return fMotherTrackID; }
63  Int_t GetMotherPdgCode() const { return fMotherPdgCode; }
64  TString GetMotherPdgName() const { return fMotherPdgName; }
65  Double_t GetExitTime() const { return fExitTime; }
66  Double_t GetExitEnergy() const { return fExitEnergy; }
67  Double_t GetMass() const { return fMass; };
68 
69  Double_t GetAngIn() const { return fAngIn; };
70  Double_t GetThetaC() const { return fThetaC; };
71  TVector3 GetMomPhoton() const { return fMom_cherenkov_photon; };
72  Int_t GetNumLightGuide() const { return fNum_light_guide; };
73  Int_t GetNumPixel() const { return fNum_pixel; };
74 
76  void SetAngIn(Double_t ang) { fAngIn = ang; };
77  void SetThetaC(Double_t theta) { fThetaC = theta; };
78  void SetNumLightGuide(Int_t i) { fNum_light_guide = i; };
79  void SetNumPixel(Int_t i) { fNum_pixel = i; };
80  void SetMomPhoton(TVector3 mom) { fMom_cherenkov_photon = mom; };
81 
82  protected:
83  Int_t fPdgCode = -1;
84  TString fPdgName;
85  Double_t fEnergy = 0.;
86  Double_t fMass = 0.; // Mass
87 
88  Int_t fMotherTrackID = -1;
89  Int_t fMotherPdgCode = -1;
90  TString fMotherPdgName;
91 
92  Double_t fExitTime = 0.;
93  Double_t fExitEnergy = 0.;
94 
95  Double_t fThetaC = 0.; // Cherenkov Angle
96  Double_t fAngIn = 0.; // Rod number
98  Int_t fNum_light_guide = -1;
99  Int_t fNum_pixel = -1;
100 
102 };
103 
104 #endif // PNDDSKFLGHIT_H
Double_t GetExitEnergy() const
Definition: PndDskFLGHit.h:66
Double_t GetAngIn() const
Definition: PndDskFLGHit.h:69
Int_t fNum_pixel
Definition: PndDskFLGHit.h:99
Double_t GetExitTime() const
Definition: PndDskFLGHit.h:65
Int_t GetMotherTrackID() const
Definition: PndDskFLGHit.h:62
Int_t GetMotherPdgCode() const
Definition: PndDskFLGHit.h:63
Int_t GetNumLightGuide() const
Definition: PndDskFLGHit.h:72
Double_t fExitTime
Time when particle disappears [ns].
Definition: PndDskFLGHit.h:92
Double_t GetEnergy() const
Definition: PndDskFLGHit.h:61
Int_t fMotherTrackID
Track ID of the first mother.
Definition: PndDskFLGHit.h:88
Int_t fNum_light_guide
Definition: PndDskFLGHit.h:98
Double_t fAngIn
Definition: PndDskFLGHit.h:96
Double_t fMass
Definition: PndDskFLGHit.h:86
Double_t fEnergy
Energy [GeV].
Definition: PndDskFLGHit.h:85
Double_t fThetaC
Definition: PndDskFLGHit.h:95
void SetMomPhoton(TVector3 mom)
Definition: PndDskFLGHit.h:80
unsigned int i
Definition: P4_F32vec4.h:21
Int_t GetPdgCode() const
Definition: PndDskFLGHit.h:59
TString fPdgName
PDG name according to fPdgCode.
Definition: PndDskFLGHit.h:84
void SetNumPixel(Int_t i)
Definition: PndDskFLGHit.h:79
Int_t GetNumPixel() const
Definition: PndDskFLGHit.h:73
TString GetPdgName() const
Definition: PndDskFLGHit.h:60
ClassDef(PndMCPoint, 1)
Double_t GetThetaC() const
Definition: PndDskFLGHit.h:70
void SetNumLightGuide(Int_t i)
Definition: PndDskFLGHit.h:78
Int_t fPdgCode
PDG code of particle.
Definition: PndDskFLGHit.h:83
void SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum, Double_t exitTime, Double_t exitEnergy)
TVector3 fMom_cherenkov_photon
Definition: PndDskFLGHit.h:97
virtual ~PndDskFLGHit()
void SetThetaC(Double_t theta)
Definition: PndDskFLGHit.h:77
TString GetMotherPdgName() const
Definition: PndDskFLGHit.h:64
TString fMotherPdgName
PDG name according to fMotherPdgCode.
Definition: PndDskFLGHit.h:90
Double_t fExitEnergy
Energy when particle disappears [GeV].
Definition: PndDskFLGHit.h:93
void SetAngIn(Double_t ang)
Definition: PndDskFLGHit.h:76
virtual void Print(const Option_t *opt) const
TVector3 GetMomPhoton() const
Definition: PndDskFLGHit.h:71
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
Definition: PndDskFLGHit.h:89
Double_t GetMass() const
Definition: PndDskFLGHit.h:67