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

#include <PndDskFLGHit.h>

Inheritance diagram for PndDskFLGHit:

Public Member Functions

 PndDskFLGHit ()
 
 PndDskFLGHit (Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time, Int_t pdgCode, TString pdgName, Double_t energy, Int_t motherTrackID, Int_t motherPdgCode, TString motherPdgName, Double_t mass, Double_t angIn, Double_t thetaC, TVector3 mom_cherenkov_photon, Int_t num_light_guide, Int_t num_pixel)
 
 PndDskFLGHit (Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time, Double_t angIn, Double_t thetaC, TVector3 mom_cherenkov_photon, Int_t num_light_guide, Int_t num_pixel)
 
virtual ~PndDskFLGHit ()
 
virtual void Print (const Option_t *opt) const
 
void SetFinalValues (TVector3 exitPosition, TVector3 exitMomentum, Double_t exitTime, Double_t exitEnergy)
 
Int_t GetPdgCode () const
 
TString GetPdgName () const
 
Double_t GetEnergy () const
 
Int_t GetMotherTrackID () const
 
Int_t GetMotherPdgCode () const
 
TString GetMotherPdgName () const
 
TVector3 GetExitPosition () const
 
TVector3 GetExitMomentum () const
 
Double_t GetExitTime () const
 
Double_t GetExitEnergy () const
 
Double_t GetMass () const
 
Double_t GetAngIn () const
 
Double_t GetThetaC () const
 
TVector3 GetMomPhoton () const
 
Int_t GetNumLightGuide () const
 
Int_t GetNumPixel () const
 
void SetAngIn (Double_t ang)
 
void SetThetaC (Double_t theta)
 
void SetNumLightGuide (Int_t i)
 
void SetNumPixel (Int_t i)
 
void SetMomPhoton (TVector3 mom)
 

Protected Attributes

Int_t fPdgCode
 PDG code of particle. More...
 
TString fPdgName
 PDG name according to fPdgCode. More...
 
Double_t fEnergy
 Energy [GeV]. More...
 
Double_t fMass
 
Int_t fMotherTrackID
 Track ID of the first mother. More...
 
Int_t fMotherPdgCode
 PDG code of the particle with fMotherTrackID. More...
 
TString fMotherPdgName
 PDG name according to fMotherPdgCode. More...
 
TVector3 fExitPosition
 Position when particle disappears [cm]. More...
 
TVector3 fExitMomentum
 Momentum when particle disappears [GeV]. More...
 
Double_t fExitTime
 Time when particle disappears [ns]. More...
 
Double_t fExitEnergy
 Energy when particle disappears [GeV]. More...
 
Double_t fThetaC
 
Double_t fAngIn
 
TVector3 fMom_cherenkov_photon
 
Int_t fNum_light_guide
 
Int_t fNum_pixel
 

Detailed Description

Definition at line 11 of file PndDskFLGHit.h.

Constructor & Destructor Documentation

PndDskFLGHit::PndDskFLGHit ( )

Default constructor

Definition at line 15 of file PndDskFLGHit.cxx.

16  : FairMCPoint(),
17  fPdgCode(-1),
18  fPdgName(TString()),
19  fEnergy(0.),
20  fMass(0.),
21  fMotherTrackID(-1),
22  fMotherPdgCode(-1),
24  fExitPosition(TVector3()),
25  fExitMomentum(TVector3()),
26  fExitTime(0.),
27  fExitEnergy(0.),
28  fThetaC(0.),
29  fAngIn(0.),
30  fMom_cherenkov_photon(TVector3()),
31  fNum_light_guide(-1),
32  fNum_pixel(-1)
33 {
34 }
Int_t fNum_pixel
Definition: PndDskFLGHit.h:111
Double_t fExitTime
Time when particle disappears [ns].
Definition: PndDskFLGHit.h:104
Int_t fMotherTrackID
Track ID of the first mother.
Definition: PndDskFLGHit.h:98
Int_t fNum_light_guide
Definition: PndDskFLGHit.h:110
Double_t fAngIn
Definition: PndDskFLGHit.h:108
Double_t fMass
Definition: PndDskFLGHit.h:96
Double_t fEnergy
Energy [GeV].
Definition: PndDskFLGHit.h:95
Double_t fThetaC
Definition: PndDskFLGHit.h:107
TString fPdgName
PDG name according to fPdgCode.
Definition: PndDskFLGHit.h:94
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
Definition: PndDskFLGHit.h:103
TVector3 fExitPosition
Position when particle disappears [cm].
Definition: PndDskFLGHit.h:102
Int_t fPdgCode
PDG code of particle.
Definition: PndDskFLGHit.h:89
TVector3 fMom_cherenkov_photon
Definition: PndDskFLGHit.h:109
TString fMotherPdgName
PDG name according to fMotherPdgCode.
Definition: PndDskFLGHit.h:100
Double_t fExitEnergy
Energy when particle disappears [GeV].
Definition: PndDskFLGHit.h:105
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
Definition: PndDskFLGHit.h:99
PndDskFLGHit::PndDskFLGHit ( Int_t  trackID,
Int_t  detectorID,
TVector3  position,
TVector3  momentum,
Double_t  time,
Int_t  pdgCode,
TString  pdgName,
Double_t  energy,
Int_t  motherTrackID,
Int_t  motherPdgCode,
TString  motherPdgName,
Double_t  mass,
Double_t  angIn,
Double_t  thetaC,
TVector3  mom_cherenkov_photon,
Int_t  num_light_guide,
Int_t  num_pixel 
)

Standard constructor with arguments

Parameters
trackIDIndex of MCTrack
detectorIDDetector ID where the first hit is produced
positionPosition of Particle when created [cm]
momentumMomentum of Particle when created [eV]
timeTime since event start when created [ns]
pdgCodeParticles PDG code
pdgNameParticles PDG name according to pdgCode
energyEnergy of the Particle when created [GeV]
motherTrackIDTrack ID of particle that created the Particle
motherPdgCodePDG Code of particle that created the Particle
motherPdgNamePDG Name of particle that created the Particle

Definition at line 40 of file PndDskFLGHit.cxx.

45  : FairMCPoint(trackID, detectorID, position, momentum, time, 0., 0.),
46  fPdgCode(pdgCode),
47  fPdgName(pdgName),
48  fEnergy(energy),
49  fMass(mass),
50  fMotherTrackID(motherTrackID),
51  fMotherPdgCode(motherPdgCode),
52  fMotherPdgName(motherPdgName),
53  fExitPosition(TVector3()),
54  fExitMomentum(TVector3()),
55  fExitTime(0.),
56  fExitEnergy(0.),
57  fThetaC(thetaC),
58  fAngIn(angIn),
59  fMom_cherenkov_photon(mom_photon),
60  fNum_light_guide(num_light_guide),
61  fNum_pixel(num_pixel)
62 {
63 }
Int_t fNum_pixel
Definition: PndDskFLGHit.h:111
Double_t fExitTime
Time when particle disappears [ns].
Definition: PndDskFLGHit.h:104
Int_t fMotherTrackID
Track ID of the first mother.
Definition: PndDskFLGHit.h:98
Int_t fNum_light_guide
Definition: PndDskFLGHit.h:110
Double_t fAngIn
Definition: PndDskFLGHit.h:108
Double_t fMass
Definition: PndDskFLGHit.h:96
Double_t fEnergy
Energy [GeV].
Definition: PndDskFLGHit.h:95
Double_t fThetaC
Definition: PndDskFLGHit.h:107
TString fPdgName
PDG name according to fPdgCode.
Definition: PndDskFLGHit.h:94
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
Definition: PndDskFLGHit.h:103
TVector3 fExitPosition
Position when particle disappears [cm].
Definition: PndDskFLGHit.h:102
Int_t fPdgCode
PDG code of particle.
Definition: PndDskFLGHit.h:89
TVector3 fMom_cherenkov_photon
Definition: PndDskFLGHit.h:109
TString fMotherPdgName
PDG name according to fMotherPdgCode.
Definition: PndDskFLGHit.h:100
Double_t fExitEnergy
Energy when particle disappears [GeV].
Definition: PndDskFLGHit.h:105
Double_t thetaC
Definition: plot_dirc.C:16
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
Definition: PndDskFLGHit.h:99
Double_t energy
Definition: plot_dirc.C:15
PndDskFLGHit::PndDskFLGHit ( Int_t  trackID,
Int_t  detectorID,
TVector3  position,
TVector3  momentum,
Double_t  time,
Double_t  angIn,
Double_t  thetaC,
TVector3  mom_cherenkov_photon,
Int_t  num_light_guide,
Int_t  num_pixel 
)

Definition at line 65 of file PndDskFLGHit.cxx.

68  : FairMCPoint(trackID, detectorID, position, momentum, time, 0., 0.),
69  fPdgCode(-1),
70  fPdgName(TString()),
71  fEnergy(0.),
72  fMass(0.),
73  fMotherTrackID(-1),
74  fMotherPdgCode(-1),
76  fExitPosition(TVector3()),
77  fExitMomentum(TVector3()),
78  fExitTime(0.),
79  fExitEnergy(0.),
80  fThetaC(thetaC),
81  fAngIn(angIn),
82  fMom_cherenkov_photon(mom_photon),
83  fNum_light_guide(num_light_guide),
84  fNum_pixel(num_pixel)
85 {
86 }
Int_t fNum_pixel
Definition: PndDskFLGHit.h:111
Double_t fExitTime
Time when particle disappears [ns].
Definition: PndDskFLGHit.h:104
Int_t fMotherTrackID
Track ID of the first mother.
Definition: PndDskFLGHit.h:98
Int_t fNum_light_guide
Definition: PndDskFLGHit.h:110
Double_t fAngIn
Definition: PndDskFLGHit.h:108
Double_t fMass
Definition: PndDskFLGHit.h:96
Double_t fEnergy
Energy [GeV].
Definition: PndDskFLGHit.h:95
Double_t fThetaC
Definition: PndDskFLGHit.h:107
TString fPdgName
PDG name according to fPdgCode.
Definition: PndDskFLGHit.h:94
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
Definition: PndDskFLGHit.h:103
TVector3 fExitPosition
Position when particle disappears [cm].
Definition: PndDskFLGHit.h:102
Int_t fPdgCode
PDG code of particle.
Definition: PndDskFLGHit.h:89
TVector3 fMom_cherenkov_photon
Definition: PndDskFLGHit.h:109
TString fMotherPdgName
PDG name according to fMotherPdgCode.
Definition: PndDskFLGHit.h:100
Double_t fExitEnergy
Energy when particle disappears [GeV].
Definition: PndDskFLGHit.h:105
Double_t thetaC
Definition: plot_dirc.C:16
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
Definition: PndDskFLGHit.h:99
PndDskFLGHit::~PndDskFLGHit ( )
virtual

Copy constructor Destructor

Definition at line 90 of file PndDskFLGHit.cxx.

91 {
92 }

Member Function Documentation

Double_t PndDskFLGHit::GetAngIn ( ) const
inline

Definition at line 78 of file PndDskFLGHit.h.

References fAngIn.

78 { return fAngIn; };
Double_t fAngIn
Definition: PndDskFLGHit.h:108
Double_t PndDskFLGHit::GetEnergy ( ) const
inline

Definition at line 68 of file PndDskFLGHit.h.

References fEnergy.

68 { return fEnergy; }
Double_t fEnergy
Energy [GeV].
Definition: PndDskFLGHit.h:95
Double_t PndDskFLGHit::GetExitEnergy ( ) const
inline

Definition at line 75 of file PndDskFLGHit.h.

References fExitEnergy.

75 { return fExitEnergy; }
Double_t fExitEnergy
Energy when particle disappears [GeV].
Definition: PndDskFLGHit.h:105
TVector3 PndDskFLGHit::GetExitMomentum ( ) const
inline

Definition at line 73 of file PndDskFLGHit.h.

References fExitMomentum.

73 { return fExitMomentum; }
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
Definition: PndDskFLGHit.h:103
TVector3 PndDskFLGHit::GetExitPosition ( ) const
inline

Definition at line 72 of file PndDskFLGHit.h.

References fExitPosition.

72 { return fExitPosition; }
TVector3 fExitPosition
Position when particle disappears [cm].
Definition: PndDskFLGHit.h:102
Double_t PndDskFLGHit::GetExitTime ( ) const
inline

Definition at line 74 of file PndDskFLGHit.h.

References fExitTime.

74 { return fExitTime; }
Double_t fExitTime
Time when particle disappears [ns].
Definition: PndDskFLGHit.h:104
Double_t PndDskFLGHit::GetMass ( ) const
inline

Definition at line 76 of file PndDskFLGHit.h.

References fMass.

76 { return fMass;};
Double_t fMass
Definition: PndDskFLGHit.h:96
TVector3 PndDskFLGHit::GetMomPhoton ( ) const
inline

Definition at line 80 of file PndDskFLGHit.h.

References fMom_cherenkov_photon.

80 { return fMom_cherenkov_photon; };
TVector3 fMom_cherenkov_photon
Definition: PndDskFLGHit.h:109
Int_t PndDskFLGHit::GetMotherPdgCode ( ) const
inline

Definition at line 70 of file PndDskFLGHit.h.

References fMotherPdgCode.

70 { return fMotherPdgCode; }
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
Definition: PndDskFLGHit.h:99
TString PndDskFLGHit::GetMotherPdgName ( ) const
inline

Definition at line 71 of file PndDskFLGHit.h.

References fMotherPdgName.

71 { return fMotherPdgName; }
TString fMotherPdgName
PDG name according to fMotherPdgCode.
Definition: PndDskFLGHit.h:100
Int_t PndDskFLGHit::GetMotherTrackID ( ) const
inline

Definition at line 69 of file PndDskFLGHit.h.

References fMotherTrackID.

69 { return fMotherTrackID; }
Int_t fMotherTrackID
Track ID of the first mother.
Definition: PndDskFLGHit.h:98
Int_t PndDskFLGHit::GetNumLightGuide ( ) const
inline

Definition at line 81 of file PndDskFLGHit.h.

References fNum_light_guide.

81 { return fNum_light_guide; };
Int_t fNum_light_guide
Definition: PndDskFLGHit.h:110
Int_t PndDskFLGHit::GetNumPixel ( ) const
inline

Definition at line 82 of file PndDskFLGHit.h.

References fNum_pixel.

82 { return fNum_pixel; };
Int_t fNum_pixel
Definition: PndDskFLGHit.h:111
Int_t PndDskFLGHit::GetPdgCode ( ) const
inline

Accessors

Definition at line 66 of file PndDskFLGHit.h.

References fPdgCode.

66 { return fPdgCode; }
Int_t fPdgCode
PDG code of particle.
Definition: PndDskFLGHit.h:89
TString PndDskFLGHit::GetPdgName ( ) const
inline

Definition at line 67 of file PndDskFLGHit.h.

References fPdgName.

67 { return fPdgName; }
TString fPdgName
PDG name according to fPdgCode.
Definition: PndDskFLGHit.h:94
Double_t PndDskFLGHit::GetThetaC ( ) const
inline

Definition at line 79 of file PndDskFLGHit.h.

References fThetaC.

79 { return fThetaC; };
Double_t fThetaC
Definition: PndDskFLGHit.h:107
void PndDskFLGHit::Print ( const Option_t *  opt) const
virtual

Virtual method Print

Screen output of Particle

Definition at line 99 of file PndDskFLGHit.cxx.

References fX, fY, and fZ.

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

Modifiers

Definition at line 85 of file PndDskFLGHit.h.

References fAngIn.

85 { fAngIn= ang; };
Double_t fAngIn
Definition: PndDskFLGHit.h:108
void PndDskFLGHit::SetFinalValues ( TVector3  exitPosition,
TVector3  exitMomentum,
Double_t  exitTime,
Double_t  exitEnergy 
)

Method SetFinalValues

Set the final values for a particle

Parameters
exitPositionPosition when particle disappears [cm]
exitMomentumMomentum when particle disappears [GeV]
exitTimeTime when particle disappears [ns]
exitEnergyEnergy when particle disappears [GeV]

Definition at line 115 of file PndDskFLGHit.cxx.

References fExitEnergy, fExitMomentum, fExitPosition, and fExitTime.

117 {
118  fExitPosition = exitPosition;
119  fExitMomentum = exitMomentum;
120  fExitTime = exitTime;
121  fExitEnergy = exitEnergy;
122 }
Double_t fExitTime
Time when particle disappears [ns].
Definition: PndDskFLGHit.h:104
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
Definition: PndDskFLGHit.h:103
TVector3 fExitPosition
Position when particle disappears [cm].
Definition: PndDskFLGHit.h:102
Double_t fExitEnergy
Energy when particle disappears [GeV].
Definition: PndDskFLGHit.h:105
void PndDskFLGHit::SetMomPhoton ( TVector3  mom)
inline

Definition at line 89 of file PndDskFLGHit.h.

References fMom_cherenkov_photon, and mom.

Double_t mom
Definition: plot_dirc.C:14
TVector3 fMom_cherenkov_photon
Definition: PndDskFLGHit.h:109
void PndDskFLGHit::SetNumLightGuide ( Int_t  i)
inline

Definition at line 87 of file PndDskFLGHit.h.

References fNum_light_guide, and i.

87 { fNum_light_guide = i; };
Int_t i
Definition: run_full.C:25
Int_t fNum_light_guide
Definition: PndDskFLGHit.h:110
void PndDskFLGHit::SetNumPixel ( Int_t  i)
inline

Definition at line 88 of file PndDskFLGHit.h.

References fNum_pixel, and i.

88 { fNum_pixel = i; };
Int_t fNum_pixel
Definition: PndDskFLGHit.h:111
Int_t i
Definition: run_full.C:25
void PndDskFLGHit::SetThetaC ( Double_t  theta)
inline

Definition at line 86 of file PndDskFLGHit.h.

References fThetaC, and theta.

86 { fThetaC = theta; };
Double_t fThetaC
Definition: PndDskFLGHit.h:107

Member Data Documentation

Double_t PndDskFLGHit::fAngIn
protected

Definition at line 108 of file PndDskFLGHit.h.

Referenced by GetAngIn(), and SetAngIn().

Double_t PndDskFLGHit::fEnergy
protected

Energy [GeV].

Definition at line 95 of file PndDskFLGHit.h.

Referenced by GetEnergy().

Double_t PndDskFLGHit::fExitEnergy
protected

Energy when particle disappears [GeV].

Definition at line 105 of file PndDskFLGHit.h.

Referenced by GetExitEnergy(), and SetFinalValues().

TVector3 PndDskFLGHit::fExitMomentum
protected

Momentum when particle disappears [GeV].

Definition at line 103 of file PndDskFLGHit.h.

Referenced by GetExitMomentum(), and SetFinalValues().

TVector3 PndDskFLGHit::fExitPosition
protected

Position when particle disappears [cm].

Definition at line 102 of file PndDskFLGHit.h.

Referenced by GetExitPosition(), and SetFinalValues().

Double_t PndDskFLGHit::fExitTime
protected

Time when particle disappears [ns].

Definition at line 104 of file PndDskFLGHit.h.

Referenced by GetExitTime(), and SetFinalValues().

Double_t PndDskFLGHit::fMass
protected

Definition at line 96 of file PndDskFLGHit.h.

Referenced by GetMass().

TVector3 PndDskFLGHit::fMom_cherenkov_photon
protected

Definition at line 109 of file PndDskFLGHit.h.

Referenced by GetMomPhoton(), and SetMomPhoton().

Int_t PndDskFLGHit::fMotherPdgCode
protected

PDG code of the particle with fMotherTrackID.

Definition at line 99 of file PndDskFLGHit.h.

Referenced by GetMotherPdgCode().

TString PndDskFLGHit::fMotherPdgName
protected

PDG name according to fMotherPdgCode.

Definition at line 100 of file PndDskFLGHit.h.

Referenced by GetMotherPdgName().

Int_t PndDskFLGHit::fMotherTrackID
protected

Track ID of the first mother.

Definition at line 98 of file PndDskFLGHit.h.

Referenced by GetMotherTrackID().

Int_t PndDskFLGHit::fNum_light_guide
protected

Definition at line 110 of file PndDskFLGHit.h.

Referenced by GetNumLightGuide(), and SetNumLightGuide().

Int_t PndDskFLGHit::fNum_pixel
protected

Definition at line 111 of file PndDskFLGHit.h.

Referenced by GetNumPixel(), and SetNumPixel().

Int_t PndDskFLGHit::fPdgCode
protected

PDG code of particle.

Definition at line 89 of file PndDskFLGHit.h.

Referenced by GetPdgCode().

TString PndDskFLGHit::fPdgName
protected

PDG name according to fPdgCode.

Definition at line 94 of file PndDskFLGHit.h.

Referenced by GetPdgName().

Double_t PndDskFLGHit::fThetaC
protected

Definition at line 107 of file PndDskFLGHit.h.

Referenced by GetThetaC(), and SetThetaC().


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