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 "FairMCPoint.h"
10 
11 class PndDskFLGHit : public FairMCPoint {
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  TVector3 GetExitPosition() const { return fExitPosition; }
66  TVector3 GetExitMomentum() const { return fExitMomentum; }
67  Double_t GetExitTime() const { return fExitTime; }
68  Double_t GetExitEnergy() const { return fExitEnergy; }
69  Double_t GetMass() const { return fMass; };
70 
71  Double_t GetAngIn() const { return fAngIn; };
72  Double_t GetThetaC() const { return fThetaC; };
73  TVector3 GetMomPhoton() const { return fMom_cherenkov_photon; };
74  Int_t GetNumLightGuide() const { return fNum_light_guide; };
75  Int_t GetNumPixel() const { return fNum_pixel; };
76 
78  void SetAngIn(Double_t ang) { fAngIn = ang; };
79  void SetThetaC(Double_t theta) { fThetaC = theta; };
80  void SetNumLightGuide(Int_t i) { fNum_light_guide = i; };
81  void SetNumPixel(Int_t i) { fNum_pixel = i; };
82  void SetMomPhoton(TVector3 mom) { fMom_cherenkov_photon = mom; };
83 
84  protected:
85  Int_t fPdgCode;
86  TString fPdgName;
87  Double_t fEnergy;
88  Double_t fMass; // Mass
89 
92  TString fMotherPdgName;
93 
94  TVector3 fExitPosition;
95  TVector3 fExitMomentum;
96  Double_t fExitTime;
97  Double_t fExitEnergy;
98 
99  Double_t fThetaC; // Cherenkov Angle
100  Double_t fAngIn; // Rod number
103  Int_t fNum_pixel;
104 
105  ClassDef(PndDskFLGHit, 1)
106 };
107 
108 #endif // PNDDSKFLGHIT_H
Double_t GetExitEnergy() const
Definition: PndDskFLGHit.h:68
Double_t GetAngIn() const
Definition: PndDskFLGHit.h:71
Int_t fNum_pixel
Definition: PndDskFLGHit.h:103
Double_t GetExitTime() const
Definition: PndDskFLGHit.h:67
Int_t GetMotherTrackID() const
Definition: PndDskFLGHit.h:62
Int_t GetMotherPdgCode() const
Definition: PndDskFLGHit.h:63
Int_t GetNumLightGuide() const
Definition: PndDskFLGHit.h:74
Double_t fExitTime
Time when particle disappears [ns].
Definition: PndDskFLGHit.h:96
Double_t GetEnergy() const
Definition: PndDskFLGHit.h:61
Int_t fMotherTrackID
Track ID of the first mother.
Definition: PndDskFLGHit.h:90
Int_t fNum_light_guide
Definition: PndDskFLGHit.h:102
Double_t fAngIn
Definition: PndDskFLGHit.h:100
Double_t fMass
Definition: PndDskFLGHit.h:88
Double_t fEnergy
Energy [GeV].
Definition: PndDskFLGHit.h:87
Double_t fThetaC
Definition: PndDskFLGHit.h:99
void SetMomPhoton(TVector3 mom)
Definition: PndDskFLGHit.h:82
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:86
void SetNumPixel(Int_t i)
Definition: PndDskFLGHit.h:81
Int_t GetNumPixel() const
Definition: PndDskFLGHit.h:75
TString GetPdgName() const
Definition: PndDskFLGHit.h:60
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
Definition: PndDskFLGHit.h:95
TVector3 GetExitPosition() const
Definition: PndDskFLGHit.h:65
Double_t GetThetaC() const
Definition: PndDskFLGHit.h:72
TVector3 fExitPosition
Position when particle disappears [cm].
Definition: PndDskFLGHit.h:94
void SetNumLightGuide(Int_t i)
Definition: PndDskFLGHit.h:80
Int_t fPdgCode
PDG code of particle.
Definition: PndDskFLGHit.h:82
TVector3 GetExitMomentum() const
Definition: PndDskFLGHit.h:66
void SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum, Double_t exitTime, Double_t exitEnergy)
TVector3 fMom_cherenkov_photon
Definition: PndDskFLGHit.h:101
virtual ~PndDskFLGHit()
void SetThetaC(Double_t theta)
Definition: PndDskFLGHit.h:79
TString GetMotherPdgName() const
Definition: PndDskFLGHit.h:64
TString fMotherPdgName
PDG name according to fMotherPdgCode.
Definition: PndDskFLGHit.h:92
Double_t fExitEnergy
Energy when particle disappears [GeV].
Definition: PndDskFLGHit.h:97
void SetAngIn(Double_t ang)
Definition: PndDskFLGHit.h:78
virtual void Print(const Option_t *opt) const
TVector3 GetMomPhoton() const
Definition: PndDskFLGHit.h:73
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
Definition: PndDskFLGHit.h:91
Double_t GetMass() const
Definition: PndDskFLGHit.h:69