PandaRoot
PndDskCerenkov.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndDskCerenkov header file -----
3 // ----- Created 21/03/08 by P. Koch -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef PNDDSKCERENKOV_H
7 #define PNDDSKCERENKOV_H
8 
9 #include "FairMCPoint.h"
10 
11 class PndDskCerenkov : public FairMCPoint {
12 
13  public:
16 
29  PndDskCerenkov(Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time, Double_t energy, Double_t wavelength, Int_t motherTrackID,
30  Int_t motherPdgCode, TString motherPdgName);
31 
33  PndDskCerenkov(const PndDskCerenkov &cerenkov);
34 
36  virtual ~PndDskCerenkov();
37 
42  virtual void Print(const Option_t *opt) const;
43 
45  Double_t GetEnergy() const { return fEnergy; }
46  Double_t GetWavelength() const { return fWavelength; }
47  Int_t GetMotherTrackID() const { return fMotherTrackID; }
48  Int_t GetMotherPdgCode() const { return fMotherPdgCode; }
49  TString GetMotherPdgName() const { return fMotherPdgName; }
50  Int_t GetDetNumber() const { return fDetNumber; }
51  Short_t GetDetType() const { return fDetType; }
52  Double_t GetDetTime() const { return fDetTime; }
53  TVector3 GetDetMomentum() const { return fDetMomentum; }
54  Double_t GetPrimaryHitAngle() const { return fPrimaryHitAngle; }
56  Double_t GetNofReflections() const { return fNofReflections; }
57  Double_t GetPWay() const { return fPWay; }
58  TVector3 Get5RefPosition() const { return f5RefPosition; }
59  Double_t GetTotalRefAngle() const { return fTotalRefAngle; }
60  TVector3 GetLastPosition() const { return fLastPos; }
61 
64  void AddPWay(TVector3 pos);
65  void SetFinalValues(Int_t detNumber, Short_t detType, Double_t detTime, TVector3 detMomentum, Double_t length, Double_t primaryHitAngle, Double_t primaryAngleToCerenkov);
66  void Set5RefPosition(TVector3 pos) { f5RefPosition = pos; }
67  void SetTotalRefAngle(Double_t angle) { fTotalRefAngle = angle; }
68 
69  protected:
70  Double_t fEnergy;
71  Double_t fWavelength;
72  Double_t fPWay;
73  TVector3 fLastPos;
74 
77  TString fMotherPdgName;
78 
79  Int_t fDetNumber;
80  Short_t fDetType;
81  Double_t fDetTime;
82  TVector3 fDetMomentum;
83 
85 
86  Double_t fPrimaryHitAngle;
88 
89  TVector3 f5RefPosition;
90  Double_t fTotalRefAngle;
91 
92  ClassDef(PndDskCerenkov, 1)
93 };
94 
95 #endif // PNDDSKCERENKOV_H
void SetFinalValues(Int_t detNumber, Short_t detType, Double_t detTime, TVector3 detMomentum, Double_t length, Double_t primaryHitAngle, Double_t primaryAngleToCerenkov)
TVector3 fDetMomentum
Momentum when detected [eV].
Int_t fNofReflections
Number of total reflections the Cerenkov did in the radiator.
Double_t GetPrimaryAngleToCerenkov() const
virtual ~PndDskCerenkov()
Int_t fDetNumber
Detector number that finally registered the photon.
Double_t fWavelength
Vacuum wavelength hc/energy [nm].
Double_t fPWay
Projected Way [cm].
Double_t GetNofReflections() const
Double_t fPrimaryHitAngle
Angle to the z-Axis when first registered.
Short_t fDetType
Detector type.
TString fMotherPdgName
PDG Name of particle that emitted the Cerenkov.
Double_t fEnergy
Energy of Cerenkov when created [eV].
void Set5RefPosition(TVector3 pos)
Double_t GetEnergy() const
Double_t GetDetTime() const
void AddReflection()
void AddPWay(TVector3 pos)
void SetTotalRefAngle(Double_t angle)
Double_t GetWavelength() const
TVector3 Get5RefPosition() const
Double_t fTotalRefAngle
Total reflection angle.
TVector3 GetLastPosition() const
TVector3 f5RefPosition
Just for debug. Stores position afer 5 refelctions.
Int_t GetDetNumber() const
TVector3 fLastPos
TString GetMotherPdgName() const
Double_t GetTotalRefAngle() const
Double_t fPrimaryAngleToCerenkov
Angle between momentum of eachs first appearance.
Int_t fMotherPdgCode
PDG Code of particle that emitted the Cerenkov.
Int_t GetMotherPdgCode() const
virtual void Print(const Option_t *opt) const
TVector3 GetDetMomentum() const
Double_t fDetTime
Global time when detected [ns].
Double_t GetPrimaryHitAngle() const
Double_t GetPWay() const
Short_t GetDetType() const
Int_t GetMotherTrackID() const
Int_t fMotherTrackID
The Last known position of the Cerenkov - needed to calculate the fPWay.