FairRoot/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 
14  public:
15 
17  PndDskFLGHit();
18 
32  PndDskFLGHit(Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum,
33  Double_t time, Int_t pdgCode, TString pdgName, Double_t energy,
34  Int_t motherTrackID, Int_t motherPdgCode, TString motherPdgName, Double_t mass,
35  Double_t angIn, Double_t thetaC,
36  TVector3 mom_cherenkov_photon, Int_t num_light_guide, Int_t num_pixel);
37 
38  PndDskFLGHit(Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time,
39  Double_t angIn, Double_t thetaC,
40  TVector3 mom_cherenkov_photon, Int_t num_light_guide, Int_t num_pixel);
41 
43  //PndDskFLGHit(const PndDskFLGHit& particle) { *this = particle; }; // No need
44 
46  virtual ~PndDskFLGHit();
47 
52  virtual void Print(const Option_t* opt) const;
53 
62  void SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum,
63  Double_t exitTime, Double_t exitEnergy);
64 
66  Int_t GetPdgCode() const { return fPdgCode; }
67  TString GetPdgName() const { return fPdgName; }
68  Double_t GetEnergy() const { return fEnergy; }
69  Int_t GetMotherTrackID() const { return fMotherTrackID; }
70  Int_t GetMotherPdgCode() const { return fMotherPdgCode; }
72  TVector3 GetExitPosition() const { return fExitPosition; }
73  TVector3 GetExitMomentum() const { return fExitMomentum; }
74  Double_t GetExitTime() const { return fExitTime; }
75  Double_t GetExitEnergy() const { return fExitEnergy; }
76  Double_t GetMass() const { return fMass;};
77 
78  Double_t GetAngIn() const { return fAngIn; };
79  Double_t GetThetaC() const { return fThetaC; };
80  TVector3 GetMomPhoton() const { return fMom_cherenkov_photon; };
81  Int_t GetNumLightGuide() const { return fNum_light_guide; };
82  Int_t GetNumPixel() const { return fNum_pixel; };
83 
85  void SetAngIn(Double_t ang) { fAngIn= ang; };
87  void SetNumLightGuide(Int_t i) { fNum_light_guide = i; };
88  void SetNumPixel(Int_t i) { fNum_pixel = i; };
89  void SetMomPhoton(TVector3 mom) { fMom_cherenkov_photon = mom;};
90 
91  protected:
92 
93  Int_t fPdgCode;
96  Double_t fMass; // Mass
97 
101 
102  TVector3 fExitPosition;
103  TVector3 fExitMomentum;
106 
107  Double_t fThetaC; // Cherenkov Angle
108  Double_t fAngIn; // Rod number
111  Int_t fNum_pixel;
112 
113  ClassDef(PndDskFLGHit,1)
114 };
115 
116 #endif // PNDDSKFLGHIT_H
Int_t fNum_pixel
Definition: PndDskFLGHit.h:111
Int_t GetNumLightGuide() const
Definition: PndDskFLGHit.h:81
TVector3 GetExitPosition() const
Definition: PndDskFLGHit.h:72
TVector3 GetMomPhoton() const
Definition: PndDskFLGHit.h:80
Double_t GetThetaC() const
Definition: PndDskFLGHit.h:79
TVector3 GetExitMomentum() const
Definition: PndDskFLGHit.h:73
Int_t i
Definition: run_full.C:25
Double_t GetExitEnergy() const
Definition: PndDskFLGHit.h:75
Double_t fExitTime
Time when particle disappears [ns].
Definition: PndDskFLGHit.h:104
Int_t fMotherTrackID
Track ID of the first mother.
Definition: PndDskFLGHit.h:98
Int_t fNum_light_guide
Definition: PndDskFLGHit.h:110
Double_t fAngIn
Definition: PndDskFLGHit.h:108
Double_t mom
Definition: plot_dirc.C:14
Double_t fMass
Definition: PndDskFLGHit.h:96
Double_t fEnergy
Energy [GeV].
Definition: PndDskFLGHit.h:95
Double_t fThetaC
Definition: PndDskFLGHit.h:107
virtual ~PndDskFLGHit()
void SetMomPhoton(TVector3 mom)
Definition: PndDskFLGHit.h:89
Double_t GetEnergy() const
Definition: PndDskFLGHit.h:68
TString fPdgName
PDG name according to fPdgCode.
Definition: PndDskFLGHit.h:94
void SetNumPixel(Int_t i)
Definition: PndDskFLGHit.h:88
Double_t GetAngIn() const
Definition: PndDskFLGHit.h:78
Int_t GetMotherTrackID() const
Definition: PndDskFLGHit.h:69
Double_t
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
Definition: PndDskFLGHit.h:103
TVector3 fExitPosition
Position when particle disappears [cm].
Definition: PndDskFLGHit.h:102
TString GetPdgName() const
Definition: PndDskFLGHit.h:67
Int_t GetMotherPdgCode() const
Definition: PndDskFLGHit.h:70
Int_t GetNumPixel() const
Definition: PndDskFLGHit.h:82
void SetNumLightGuide(Int_t i)
Definition: PndDskFLGHit.h:87
Int_t fPdgCode
PDG code of particle.
Definition: PndDskFLGHit.h:89
Double_t GetExitTime() const
Definition: PndDskFLGHit.h:74
void SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum, Double_t exitTime, Double_t exitEnergy)
TVector3 fMom_cherenkov_photon
Definition: PndDskFLGHit.h:109
Double_t GetMass() const
Definition: PndDskFLGHit.h:76
Int_t GetPdgCode() const
Definition: PndDskFLGHit.h:66
void SetThetaC(Double_t theta)
Definition: PndDskFLGHit.h:86
virtual void Print(const Option_t *opt) const
TString fMotherPdgName
PDG name according to fMotherPdgCode.
Definition: PndDskFLGHit.h:100
Double_t fExitEnergy
Energy when particle disappears [GeV].
Definition: PndDskFLGHit.h:105
Double_t thetaC
Definition: plot_dirc.C:16
void SetAngIn(Double_t ang)
Definition: PndDskFLGHit.h:85
TString GetMotherPdgName() const
Definition: PndDskFLGHit.h:71
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
Definition: PndDskFLGHit.h:99
Double_t energy
Definition: plot_dirc.C:15