PandaRoot
PndDskParticle.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndDskParticle header file -----
3 // ----- Created 21/03/08 by P. Koch -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef PNDDSKPARTICLE_H
7 #define PNDDSKPARTICLE_H
8 
9 #include "FairMCPoint.h"
10 
11 class PndDskParticle : public FairMCPoint {
12 
13  public:
16 
30  PndDskParticle(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, Int_t nPhot);
32 
34  PndDskParticle(const PndDskParticle &particle);
35 
37  virtual ~PndDskParticle();
38 
43  virtual void Print(const Option_t *opt) const;
44 
53  void SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum, Double_t exitTime, Double_t exitEnergy);
54 
56  Int_t GetPdgCode() const { return fPdgCode; }
57  TString GetPdgName() const { return fPdgName; }
58  Double_t GetEnergy() const { return fEnergy; }
59  Int_t GetMotherTrackID() const { return fMotherTrackID; }
60  Int_t GetMotherPdgCode() const { return fMotherPdgCode; }
61  TString GetMotherPdgName() const { return fMotherPdgName; }
62  TVector3 GetExitPosition() const { return fExitPosition; }
63  TVector3 GetExitMomentum() const { return fExitMomentum; }
64  Double_t GetExitTime() const { return fExitTime; }
65  Double_t GetExitEnergy() const { return fExitEnergy; }
66  Double_t GetMass() const { return fMass; };
67 
68  Double_t GetAngIn() const { return fAngIn; };
69  Double_t GetThetaC() const { return fThetaC; };
70  Int_t GetNPhot() const { return fNPhot; };
71 
73  void SetAngIn(Double_t ang) { fAngIn = ang; };
74  void SetThetaC(Double_t theta) { fThetaC = theta; };
75  void SetNPhot(Int_t nPhot) { fNPhot = nPhot; };
76 
77  protected:
78  Int_t fPdgCode;
79  TString fPdgName;
80  Double_t fEnergy;
81  Double_t fMass; // Mass
82 
85  TString fMotherPdgName;
86 
87  TVector3 fExitPosition;
88  TVector3 fExitMomentum;
89  Double_t fExitTime;
90  Double_t fExitEnergy;
91 
92  Double_t fThetaC; // Cherenkov Angle
93  Double_t fAngIn; // Rod number
94  Int_t fNPhot; // number of produced photons
95 
96  ClassDef(PndDskParticle, 1)
97 };
98 
99 #endif // PNDDSKPARTICLE_H
Double_t GetAngIn() const
Double_t GetMass() const
Double_t GetEnergy() const
Double_t fThetaC
Int_t GetMotherTrackID() const
TVector3 GetExitPosition() const
Double_t GetExitTime() const
virtual void Print(const Option_t *opt) const
Int_t GetPdgCode() const
Double_t GetThetaC() const
Int_t GetNPhot() const
TString fPdgName
PDG name according to fPdgCode.
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
void SetThetaC(Double_t theta)
TString GetPdgName() const
TVector3 fExitPosition
Position when particle disappears [cm].
void SetAngIn(Double_t ang)
TString fMotherPdgName
PDG name according to fMotherPdgCode.
void SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum, Double_t exitTime, Double_t exitEnergy)
Int_t GetMotherPdgCode() const
Int_t fMotherTrackID
Track ID of the first mother.
TVector3 GetExitMomentum() const
virtual ~PndDskParticle()
TString GetMotherPdgName() const
Double_t fExitEnergy
Energy when particle disappears [GeV].
Double_t GetExitEnergy() const
Double_t fExitTime
Time when particle disappears [ns].
Double_t fEnergy
Energy [GeV].
void SetNPhot(Int_t nPhot)
Int_t fPdgCode
PDG code of particle.
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.