FairRoot/PandaRoot
Public Member Functions | Protected Attributes | List of all members
PndDskCerenkov Class Reference

#include <PndDskCerenkov.h>

Inheritance diagram for PndDskCerenkov:

Public Member Functions

 PndDskCerenkov ()
 
 PndDskCerenkov (Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time, Double_t energy, Double_t wavelength, Int_t motherTrackID, Int_t motherPdgCode, TString motherPdgName)
 
 PndDskCerenkov (const PndDskCerenkov &cerenkov)
 
virtual ~PndDskCerenkov ()
 
virtual void Print (const Option_t *opt) const
 
Double_t GetEnergy () const
 
Double_t GetWavelength () const
 
Int_t GetMotherTrackID () const
 
Int_t GetMotherPdgCode () const
 
TString GetMotherPdgName () const
 
Int_t GetDetNumber () const
 
Short_t GetDetType () const
 
Double_t GetDetTime () const
 
TVector3 GetDetMomentum () const
 
Double_t GetPrimaryHitAngle () const
 
Double_t GetPrimaryAngleToCerenkov () const
 
Double_t GetNofReflections () const
 
Double_t GetPWay () const
 
TVector3 Get5RefPosition () const
 
Double_t GetTotalRefAngle () const
 
TVector3 GetLastPosition () const
 
void AddReflection ()
 
void AddPWay (TVector3 pos)
 
void SetFinalValues (Int_t detNumber, Short_t detType, Double_t detTime, TVector3 detMomentum, Double_t length, Double_t primaryHitAngle, Double_t primaryAngleToCerenkov)
 
void Set5RefPosition (TVector3 pos)
 
void SetTotalRefAngle (Double_t angle)
 

Protected Attributes

Double_t fEnergy
 Energy of Cerenkov when created [eV]. More...
 
Double_t fWavelength
 Vacuum wavelength hc/energy [nm]. More...
 
Double_t fPWay
 Projected Way [cm]. More...
 
TVector3 fLastPos
 
Int_t fMotherTrackID
 The Last known position of the Cerenkov - needed to calculate the fPWay. More...
 
Int_t fMotherPdgCode
 PDG Code of particle that emitted the Cerenkov. More...
 
TString fMotherPdgName
 PDG Name of particle that emitted the Cerenkov. More...
 
Int_t fDetNumber
 Detector number that finally registered the photon. More...
 
Short_t fDetType
 Detector type. More...
 
Double_t fDetTime
 Global time when detected [ns]. More...
 
TVector3 fDetMomentum
 Momentum when detected [eV]. More...
 
Int_t fNofReflections
 Number of total reflections the Cerenkov did in the radiator. More...
 
Double_t fPrimaryHitAngle
 Angle to the z-Axis when first registered. More...
 
Double_t fPrimaryAngleToCerenkov
 Angle between momentum of eachs first appearance. More...
 
TVector3 f5RefPosition
 Just for debug. Stores position afer 5 refelctions. More...
 
Double_t fTotalRefAngle
 Total reflection angle. More...
 

Detailed Description

Definition at line 11 of file PndDskCerenkov.h.

Constructor & Destructor Documentation

PndDskCerenkov::PndDskCerenkov ( )

Default constructor

Definition at line 16 of file PndDskCerenkov.cxx.

17  : FairMCPoint(),
18  fEnergy(0.),
19  fWavelength(0.),
20  fPWay(0.),
21  fLastPos(TVector3()),
22  fMotherTrackID(-1),
23  fMotherPdgCode(-1),
25  fDetNumber(-1),
26  fDetType(-1),
27  fDetTime(0.),
28  fDetMomentum(TVector3()),
29  fNofReflections(0),
30  fPrimaryHitAngle(0.),
32  f5RefPosition(TVector3()),
33  fTotalRefAngle(0.)
34 {
35 }
TVector3 fDetMomentum
Momentum when detected [eV].
Int_t fNofReflections
Number of total reflections the Cerenkov did in the radiator.
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 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].
Double_t fTotalRefAngle
Total reflection angle.
TVector3 f5RefPosition
Just for debug. Stores position afer 5 refelctions.
TVector3 fLastPos
Double_t fPrimaryAngleToCerenkov
Angle between momentum of eachs first appearance.
Int_t fMotherPdgCode
PDG Code of particle that emitted the Cerenkov.
Double_t fDetTime
Global time when detected [ns].
Int_t fMotherTrackID
The Last known position of the Cerenkov - needed to calculate the fPWay.
PndDskCerenkov::PndDskCerenkov ( Int_t  trackID,
Int_t  detectorID,
TVector3  position,
TVector3  momentum,
Double_t  time,
Double_t  energy,
Double_t  wavelength,
Int_t  motherTrackID,
Int_t  motherPdgCode,
TString  motherPdgName 
)

Standard constructor with arguments

Parameters
trackIDIndex of MCTrack
detectorIDDetector ID where the first hit is produced
positionPosition of Cerenkov when created [cm]
momentumMomentum of Cerenkov when created [eV]
timeTime since event start when created [ns]
energyEnergy of the Cerenkov when created [eV]
wavelengthVacuum wavelength hc/energy [nm]
motherTrackIDTrack ID of particle that emitted the Cerenkov
motherPdgCodePDG Code of particle that emitted the Cerenkov
motherPdgNamePDG Name of particle that emitted the Cerenkov

Definition at line 41 of file PndDskCerenkov.cxx.

45  : FairMCPoint(trackID, detectorID, position, momentum, time, 0., 0.),
46  fEnergy(energy),
47  fWavelength(wavelength),
48  fPWay(0.),
49  fLastPos(position),
50  fMotherTrackID(motherTrackID),
51  fMotherPdgCode(motherPdgCode),
52  fMotherPdgName(motherPdgName),
53  fDetNumber(-1),
54  fDetType(-1),
55  fDetTime(0.),
56  fDetMomentum(TVector3()),
57  fNofReflections(0),
58  fPrimaryHitAngle(0.),
60  f5RefPosition(TVector3()),
61  fTotalRefAngle(0.)
62 {
63 // cout << "Added Cerenkov with wl = " << fWavelength << endl;
64 }
TVector3 fDetMomentum
Momentum when detected [eV].
Int_t fNofReflections
Number of total reflections the Cerenkov did in the radiator.
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 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].
Double_t fTotalRefAngle
Total reflection angle.
TVector3 f5RefPosition
Just for debug. Stores position afer 5 refelctions.
TVector3 fLastPos
Double_t fPrimaryAngleToCerenkov
Angle between momentum of eachs first appearance.
Int_t fMotherPdgCode
PDG Code of particle that emitted the Cerenkov.
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
PndDskCerenkov::PndDskCerenkov ( const PndDskCerenkov cerenkov)

Copy constructor

Definition at line 67 of file PndDskCerenkov.cxx.

67  :
68  FairMCPoint(cerenkov.fTrackID, cerenkov.fDetectorID, TVector3(cerenkov.fX, cerenkov.fY, cerenkov.fZ), TVector3(cerenkov.fPx, cerenkov.fPy, cerenkov.fPz), cerenkov.fTime, cerenkov.fLength, cerenkov.fELoss, cerenkov.fEventId),
69  fEnergy(cerenkov.fEnergy),
70  fWavelength(cerenkov.fWavelength),
71  fPWay(cerenkov.fPWay),
72  fLastPos(cerenkov.fLastPos),
76  fDetNumber(cerenkov.fDetNumber),
77  fDetType(cerenkov.fDetType),
78  fDetTime(cerenkov.fDetTime),
79  fDetMomentum(cerenkov.fDetMomentum),
83  f5RefPosition(cerenkov.f5RefPosition),
85 {
86 }
TVector3 fDetMomentum
Momentum when detected [eV].
Int_t fNofReflections
Number of total reflections the Cerenkov did in the radiator.
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 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].
Double_t fTotalRefAngle
Total reflection angle.
TVector3 f5RefPosition
Just for debug. Stores position afer 5 refelctions.
TVector3 fLastPos
Double_t fPrimaryAngleToCerenkov
Angle between momentum of eachs first appearance.
Int_t fMotherPdgCode
PDG Code of particle that emitted the Cerenkov.
Double_t fDetTime
Global time when detected [ns].
Int_t fMotherTrackID
The Last known position of the Cerenkov - needed to calculate the fPWay.
PndDskCerenkov::~PndDskCerenkov ( )
virtual

Destructor

Definition at line 89 of file PndDskCerenkov.cxx.

90 {
91 }

Member Function Documentation

void PndDskCerenkov::AddPWay ( TVector3  pos)

Definition at line 132 of file PndDskCerenkov.cxx.

References fLastPos, fPWay, pos, and CAMath::Sqrt().

Referenced by PndDsk::ProcessHitsCerenkov().

133 {
134 // printf("..... %11.6lf %11.6lf %11.6lf - %11.6lf %11.6lf %11.6lf -> %11.6lf\n",
135 // fLastPos.X(), fLastPos.Y(), fLastPos.Z(),
136 // pos.X(), pos.Y(), pos.Z(),
137 // TMath::Sqrt( (fLastPos.X()-pos.X())*(fLastPos.X()-pos.X())
138 // + (fLastPos.Y()-pos.Y())*(fLastPos.Y()-pos.Y()) )
139 // );
140  fPWay += TMath::Sqrt( (fLastPos.X()-pos.X())*(fLastPos.X()-pos.X())
141  + (fLastPos.Y()-pos.Y())*(fLastPos.Y()-pos.Y()) );
142  fLastPos = pos;
143 }
TVector3 pos
static T Sqrt(const T &x)
Definition: PndCAMath.h:37
Double_t fPWay
Projected Way [cm].
TVector3 fLastPos
void PndDskCerenkov::AddReflection ( )
inline

Modifiers

Definition at line 66 of file PndDskCerenkov.h.

References fNofReflections.

Referenced by PndDsk::ProcessHitsCerenkov().

66 { fNofReflections++; }
Int_t fNofReflections
Number of total reflections the Cerenkov did in the radiator.
TVector3 PndDskCerenkov::Get5RefPosition ( ) const
inline

Definition at line 61 of file PndDskCerenkov.h.

References f5RefPosition.

61 { return f5RefPosition; }
TVector3 f5RefPosition
Just for debug. Stores position afer 5 refelctions.
TVector3 PndDskCerenkov::GetDetMomentum ( ) const
inline

Definition at line 56 of file PndDskCerenkov.h.

References fDetMomentum.

56 { return fDetMomentum; }
TVector3 fDetMomentum
Momentum when detected [eV].
Int_t PndDskCerenkov::GetDetNumber ( ) const
inline

Definition at line 53 of file PndDskCerenkov.h.

References fDetNumber.

Referenced by draw_track(), and plot_hitpattern().

53 { return fDetNumber; }
Int_t fDetNumber
Detector number that finally registered the photon.
Double_t PndDskCerenkov::GetDetTime ( ) const
inline

Definition at line 55 of file PndDskCerenkov.h.

References fDetTime.

Referenced by draw_track(), and plot_hitpattern().

55 { return fDetTime; }
Double_t fDetTime
Global time when detected [ns].
Short_t PndDskCerenkov::GetDetType ( ) const
inline

Definition at line 54 of file PndDskCerenkov.h.

References fDetType.

54 { return fDetType; }
Short_t fDetType
Detector type.
Double_t PndDskCerenkov::GetEnergy ( ) const
inline

Accessors

Definition at line 48 of file PndDskCerenkov.h.

References fEnergy.

48 { return fEnergy; }
Double_t fEnergy
Energy of Cerenkov when created [eV].
TVector3 PndDskCerenkov::GetLastPosition ( ) const
inline

Definition at line 63 of file PndDskCerenkov.h.

References fLastPos.

63 { return fLastPos; }
TVector3 fLastPos
Int_t PndDskCerenkov::GetMotherPdgCode ( ) const
inline

Definition at line 51 of file PndDskCerenkov.h.

References fMotherPdgCode.

Referenced by plot_hitpattern().

51 { return fMotherPdgCode; }
Int_t fMotherPdgCode
PDG Code of particle that emitted the Cerenkov.
TString PndDskCerenkov::GetMotherPdgName ( ) const
inline

Definition at line 52 of file PndDskCerenkov.h.

References fMotherPdgName.

52 { return fMotherPdgName; }
TString fMotherPdgName
PDG Name of particle that emitted the Cerenkov.
Int_t PndDskCerenkov::GetMotherTrackID ( ) const
inline

Definition at line 50 of file PndDskCerenkov.h.

References fMotherTrackID.

Referenced by draw_track(), and plot_hitpattern().

50 { return fMotherTrackID; }
Int_t fMotherTrackID
The Last known position of the Cerenkov - needed to calculate the fPWay.
Double_t PndDskCerenkov::GetNofReflections ( ) const
inline

Definition at line 59 of file PndDskCerenkov.h.

References fNofReflections.

Referenced by PndDsk::ProcessHitsCerenkov().

59 { return fNofReflections; }
Int_t fNofReflections
Number of total reflections the Cerenkov did in the radiator.
Double_t PndDskCerenkov::GetPrimaryAngleToCerenkov ( ) const
inline

Definition at line 58 of file PndDskCerenkov.h.

References fPrimaryAngleToCerenkov.

58 { return fPrimaryAngleToCerenkov; }
Double_t fPrimaryAngleToCerenkov
Angle between momentum of eachs first appearance.
Double_t PndDskCerenkov::GetPrimaryHitAngle ( ) const
inline

Definition at line 57 of file PndDskCerenkov.h.

References fPrimaryHitAngle.

57 { return fPrimaryHitAngle; }
Double_t fPrimaryHitAngle
Angle to the z-Axis when first registered.
Double_t PndDskCerenkov::GetPWay ( ) const
inline

Definition at line 60 of file PndDskCerenkov.h.

References fPWay.

60 { return fPWay; }
Double_t fPWay
Projected Way [cm].
Double_t PndDskCerenkov::GetTotalRefAngle ( ) const
inline

Definition at line 62 of file PndDskCerenkov.h.

References fTotalRefAngle.

62 { return fTotalRefAngle; }
Double_t fTotalRefAngle
Total reflection angle.
Double_t PndDskCerenkov::GetWavelength ( ) const
inline

Definition at line 49 of file PndDskCerenkov.h.

References fWavelength.

Referenced by plot_hitpattern(), and PndDsk::ProcessHitsCerenkov().

49 { return fWavelength; }
Double_t fWavelength
Vacuum wavelength hc/energy [nm].
void PndDskCerenkov::Print ( const Option_t *  opt) const
virtual

Virtual method Print

Screen output of Cerenkov

Definition at line 98 of file PndDskCerenkov.cxx.

References fX, fY, and fZ.

98  {
99  (void)opt; // to remove "unused" warnings
100  cout << "-I- PndDskCerenkov: track" << fTrackID
101  << " created in detector " << fDetectorID << endl;
102  cout << " at Position (" << fX << ", " << fY << ", " << fZ
103  << ") cm" << endl;
104  cout << " with Momentum (" << fPx << ", " << fPy << ", " << fPz
105  << ") eV" << endl;
106  cout << " at Time " << fTime << " ns" << endl;
107 }
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fY
Definition: PndCaloDraw.cxx:34
void PndDskCerenkov::Set5RefPosition ( TVector3  pos)
inline

Definition at line 71 of file PndDskCerenkov.h.

References f5RefPosition, and pos.

Referenced by PndDsk::ProcessHitsCerenkov().

71 { f5RefPosition = pos; }
TVector3 pos
TVector3 f5RefPosition
Just for debug. Stores position afer 5 refelctions.
void PndDskCerenkov::SetFinalValues ( Int_t  detNumber,
Short_t  detType,
Double_t  detTime,
TVector3  detMomentum,
Double_t  length,
Double_t  primaryHitAngle,
Double_t  primaryAngleToCerenkov 
)

Definition at line 114 of file PndDskCerenkov.cxx.

References fDetMomentum, fDetNumber, fDetTime, fDetType, fPrimaryAngleToCerenkov, and fPrimaryHitAngle.

Referenced by PndDsk::ProcessHitsCerenkov().

117 {
118  fDetNumber = detNumber;
119  fDetType = detType;
120  fDetTime = detTime;
121  fDetMomentum = detMomentum;
122  fLength = length;
123  fPrimaryHitAngle = primaryHitAngle;
124  fPrimaryAngleToCerenkov = primaryAngleToCerenkov;
125 }
TVector3 fDetMomentum
Momentum when detected [eV].
Int_t fDetNumber
Detector number that finally registered the photon.
Double_t fPrimaryHitAngle
Angle to the z-Axis when first registered.
Short_t fDetType
Detector type.
Double_t fPrimaryAngleToCerenkov
Angle between momentum of eachs first appearance.
Double_t fDetTime
Global time when detected [ns].
void PndDskCerenkov::SetTotalRefAngle ( Double_t  angle)
inline

Definition at line 72 of file PndDskCerenkov.h.

References angle, and fTotalRefAngle.

Referenced by PndDsk::ProcessHitsCerenkov().

72 { fTotalRefAngle = angle; }
Double_t fTotalRefAngle
Total reflection angle.
Double_t angle

Member Data Documentation

TVector3 PndDskCerenkov::f5RefPosition
protected

Just for debug. Stores position afer 5 refelctions.

Definition at line 95 of file PndDskCerenkov.h.

Referenced by Get5RefPosition(), and Set5RefPosition().

TVector3 PndDskCerenkov::fDetMomentum
protected

Momentum when detected [eV].

Definition at line 88 of file PndDskCerenkov.h.

Referenced by GetDetMomentum(), and SetFinalValues().

Int_t PndDskCerenkov::fDetNumber
protected

Detector number that finally registered the photon.

Definition at line 85 of file PndDskCerenkov.h.

Referenced by GetDetNumber(), and SetFinalValues().

Double_t PndDskCerenkov::fDetTime
protected

Global time when detected [ns].

Definition at line 87 of file PndDskCerenkov.h.

Referenced by GetDetTime(), and SetFinalValues().

Short_t PndDskCerenkov::fDetType
protected

Detector type.

Definition at line 86 of file PndDskCerenkov.h.

Referenced by GetDetType(), and SetFinalValues().

Double_t PndDskCerenkov::fEnergy
protected

Energy of Cerenkov when created [eV].

Definition at line 76 of file PndDskCerenkov.h.

Referenced by GetEnergy().

TVector3 PndDskCerenkov::fLastPos
protected

Definition at line 79 of file PndDskCerenkov.h.

Referenced by AddPWay(), and GetLastPosition().

Int_t PndDskCerenkov::fMotherPdgCode
protected

PDG Code of particle that emitted the Cerenkov.

Definition at line 82 of file PndDskCerenkov.h.

Referenced by GetMotherPdgCode().

TString PndDskCerenkov::fMotherPdgName
protected

PDG Name of particle that emitted the Cerenkov.

Definition at line 83 of file PndDskCerenkov.h.

Referenced by GetMotherPdgName().

Int_t PndDskCerenkov::fMotherTrackID
protected

The Last known position of the Cerenkov - needed to calculate the fPWay.

Track ID of particle that emitted the Cerenkov

Definition at line 81 of file PndDskCerenkov.h.

Referenced by GetMotherTrackID().

Int_t PndDskCerenkov::fNofReflections
protected

Number of total reflections the Cerenkov did in the radiator.

Definition at line 90 of file PndDskCerenkov.h.

Referenced by AddReflection(), and GetNofReflections().

Double_t PndDskCerenkov::fPrimaryAngleToCerenkov
protected

Angle between momentum of eachs first appearance.

Definition at line 93 of file PndDskCerenkov.h.

Referenced by GetPrimaryAngleToCerenkov(), and SetFinalValues().

Double_t PndDskCerenkov::fPrimaryHitAngle
protected

Angle to the z-Axis when first registered.

Definition at line 92 of file PndDskCerenkov.h.

Referenced by GetPrimaryHitAngle(), and SetFinalValues().

Double_t PndDskCerenkov::fPWay
protected

Projected Way [cm].

Definition at line 78 of file PndDskCerenkov.h.

Referenced by AddPWay(), and GetPWay().

Double_t PndDskCerenkov::fTotalRefAngle
protected

Total reflection angle.

Definition at line 96 of file PndDskCerenkov.h.

Referenced by GetTotalRefAngle(), and SetTotalRefAngle().

Double_t PndDskCerenkov::fWavelength
protected

Vacuum wavelength hc/energy [nm].

Definition at line 77 of file PndDskCerenkov.h.

Referenced by GetWavelength().


The documentation for this class was generated from the following files: