FairRoot/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 
14  public:
15 
18 
31  PndDskCerenkov(Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum,
32  Double_t time, Double_t energy, Double_t wavelength,
33  Int_t motherTrackID, Int_t motherPdgCode, TString motherPdgName);
34 
36  PndDskCerenkov(const PndDskCerenkov& cerenkov);
37 
39  virtual ~PndDskCerenkov();
40 
45  virtual void Print(const Option_t* opt) const;
46 
48  Double_t GetEnergy() const { return fEnergy; }
49  Double_t GetWavelength() const { return fWavelength; }
50  Int_t GetMotherTrackID() const { return fMotherTrackID; }
51  Int_t GetMotherPdgCode() const { return fMotherPdgCode; }
53  Int_t GetDetNumber() const { return fDetNumber; }
54  Short_t GetDetType() const { return fDetType; }
55  Double_t GetDetTime() const { return fDetTime; }
56  TVector3 GetDetMomentum() const { return fDetMomentum; }
60  Double_t GetPWay() const { return fPWay; }
61  TVector3 Get5RefPosition() const { return f5RefPosition; }
63  TVector3 GetLastPosition() const { return fLastPos; }
64 
67  void AddPWay(TVector3 pos);
68  void SetFinalValues(Int_t detNumber, Short_t detType,
69  Double_t detTime, TVector3 detMomentum, Double_t length,
70  Double_t primaryHitAngle, Double_t primaryAngleToCerenkov);
71  void Set5RefPosition(TVector3 pos) { f5RefPosition = pos; }
73 
74  protected:
75 
79  TVector3 fLastPos;
80 
84 
85  Int_t fDetNumber;
86  Short_t fDetType;
88  TVector3 fDetMomentum;
89 
91 
94 
95  TVector3 f5RefPosition;
97 
98  ClassDef(PndDskCerenkov,1)
99 };
100 
101 #endif // PNDDSKCERENKOV_H
TVector3 pos
void SetFinalValues(Int_t detNumber, Short_t detType, Double_t detTime, TVector3 detMomentum, Double_t length, Double_t primaryHitAngle, Double_t primaryAngleToCerenkov)
Double_t GetPWay() const
TVector3 fDetMomentum
Momentum when detected [eV].
Int_t fNofReflections
Number of total reflections the Cerenkov did in the radiator.
virtual void Print(const Option_t *opt) const
Int_t fDetNumber
Detector number that finally registered the photon.
Int_t GetMotherPdgCode() const
Double_t fWavelength
Vacuum wavelength hc/energy [nm].
Double_t GetPrimaryAngleToCerenkov() const
Double_t fPWay
Projected Way [cm].
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.
Int_t GetDetNumber() const
Double_t fEnergy
Energy of Cerenkov when created [eV].
void Set5RefPosition(TVector3 pos)
Double_t GetPrimaryHitAngle() const
TVector3 Get5RefPosition() const
void AddReflection()
void AddPWay(TVector3 pos)
Double_t
void SetTotalRefAngle(Double_t angle)
Double_t GetDetTime() const
TVector3 GetLastPosition() const
virtual ~PndDskCerenkov()
TString GetMotherPdgName() const
Double_t fTotalRefAngle
Total reflection angle.
Double_t GetTotalRefAngle() const
TVector3 f5RefPosition
Just for debug. Stores position afer 5 refelctions.
TVector3 GetDetMomentum() const
Int_t GetMotherTrackID() const
Double_t GetNofReflections() const
TVector3 fLastPos
Double_t GetWavelength() const
Double_t GetEnergy() const
Double_t fPrimaryAngleToCerenkov
Angle between momentum of eachs first appearance.
Short_t GetDetType() const
Int_t fMotherPdgCode
PDG Code of particle that emitted the Cerenkov.
Double_t angle
Double_t fDetTime
Global time when detected [ns].
Int_t fMotherTrackID
The Last known position of the Cerenkov - needed to calculate the fPWay.
Double_t energy
Definition: plot_dirc.C:15