FairRoot/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 
14  public:
15 
18 
32  PndDskParticle(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, Double_t angIn, Double_t thetaC, Int_t nPhot);
35 
38 
40  virtual ~PndDskParticle();
41 
46  virtual void Print(const Option_t* opt) const;
47 
56  void SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum,
57  Double_t exitTime, Double_t exitEnergy);
58 
60  Int_t GetPdgCode() const { return fPdgCode; }
61  TString GetPdgName() const { return fPdgName; }
62  Double_t GetEnergy() const { return fEnergy; }
63  Int_t GetMotherTrackID() const { return fMotherTrackID; }
64  Int_t GetMotherPdgCode() const { return fMotherPdgCode; }
66  TVector3 GetExitPosition() const { return fExitPosition; }
67  TVector3 GetExitMomentum() const { return fExitMomentum; }
68  Double_t GetExitTime() const { return fExitTime; }
69  Double_t GetExitEnergy() const { return fExitEnergy; }
70  Double_t GetMass() const { return fMass;};
71 
72  Double_t GetAngIn() const { return fAngIn; };
73  Double_t GetThetaC() const { return fThetaC; };
74  Int_t GetNPhot() const { return fNPhot; };
75 
77  void SetAngIn(Double_t ang) { fAngIn= ang; };
79  void SetNPhot(Int_t nPhot) { fNPhot = nPhot; };
80 
81  protected:
82 
83  Int_t fPdgCode;
86  Double_t fMass; // Mass
87 
91 
92  TVector3 fExitPosition;
93  TVector3 fExitMomentum;
96 
97  Double_t fThetaC; // Cherenkov Angle
98  Double_t fAngIn; // Rod number
99  Int_t fNPhot; //number of produced photons
100 
101  ClassDef(PndDskParticle,1)
102 };
103 
104 #endif // PNDDSKPARTICLE_H
Double_t GetAngIn() const
TVector3 GetExitPosition() const
Double_t fThetaC
TVector3 GetExitMomentum() const
TString GetMotherPdgName() const
Double_t GetMass() const
Double_t GetExitEnergy() const
Int_t GetMotherPdgCode() const
TString fPdgName
PDG name according to fPdgCode.
const int particle
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
void SetThetaC(Double_t theta)
Double_t
TVector3 fExitPosition
Position when particle disappears [cm].
void SetAngIn(Double_t ang)
virtual ~PndDskParticle()
Int_t GetNPhot() const
Int_t GetMotherTrackID() const
TString fMotherPdgName
PDG name according to fMotherPdgCode.
void SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum, Double_t exitTime, Double_t exitEnergy)
Int_t fMotherTrackID
Track ID of the first mother.
Int_t GetPdgCode() const
TString GetPdgName() const
Double_t fExitEnergy
Energy when particle disappears [GeV].
Double_t GetExitTime() const
Double_t fExitTime
Time when particle disappears [ns].
Double_t fEnergy
Energy [GeV].
virtual void Print(const Option_t *opt) const
Double_t GetThetaC() const
Double_t GetEnergy() const
Double_t thetaC
Definition: plot_dirc.C:16
void SetNPhot(Int_t nPhot)
Int_t fPdgCode
PDG code of particle.
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
Double_t energy
Definition: plot_dirc.C:15