FairRoot/PandaRoot
PndDskFLGHit.cxx
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // ----- PndDskFLGHit source file -----
3 // ----- Created 21/03/08 by P. Koch -----
4 // ----------------------------------------------------------------------------
5 
6 #include <iostream>
7 using std::cout;
8 using std::endl;
9 
10 #include "PndDskFLGHit.h"
11 
12 
13 
14 // ----- Default constructor ----------------------------------------------
16  : FairMCPoint(),
17  fPdgCode(-1),
18  fPdgName(TString()),
19  fEnergy(0.),
20  fMass(0.),
21  fMotherTrackID(-1),
22  fMotherPdgCode(-1),
23  fMotherPdgName(TString()),
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 }
35 // ----------------------------------------------------------------------------
36 
37 
38 
39 // ----- Standard constructor ---------------------------------------------
40 PndDskFLGHit::PndDskFLGHit(Int_t trackID, Int_t detectorID,
41  TVector3 position, TVector3 momentum, Double_t time,
42  Int_t pdgCode, TString pdgName, Double_t energy,
43  Int_t motherTrackID, Int_t motherPdgCode, TString motherPdgName, Double_t mass,
44  Double_t angIn, Double_t thetaC, TVector3 mom_photon, Int_t num_light_guide, Int_t num_pixel)
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 }
64 // ----------------------------------------------------------------------------
65 PndDskFLGHit::PndDskFLGHit(Int_t trackID, Int_t detectorID,
66  TVector3 position, TVector3 momentum, Double_t time,
67  Double_t angIn, Double_t thetaC, TVector3 mom_photon, Int_t num_light_guide, Int_t num_pixel)
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),
75  fMotherPdgName(TString()),
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 }
87 
88 
89 // ----- Destructor -------------------------------------------------------
91 {
92 }
93 // ----------------------------------------------------------------------------
94 
95 
96 
97 // ----- Public method Print ----------------------------------------------
98 void
99 PndDskFLGHit::Print(const Option_t* opt) const {
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 }
109 // ----------------------------------------------------------------------------
110 
111 
112 
113 // ----- Public method SetFinalValues -------------------------------------
114 void
115 PndDskFLGHit::SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum,
116  Double_t exitTime, Double_t exitEnergy)
117 {
118  fExitPosition = exitPosition;
119  fExitMomentum = exitMomentum;
120  fExitTime = exitTime;
121  fExitEnergy = exitEnergy;
122 }
123 // ----------------------------------------------------------------------------
124 
125 
126 
Double_t fExitTime
Time when particle disappears [ns].
Definition: PndDskFLGHit.h:104
Double_t fX
Definition: PndCaloDraw.cxx:34
virtual ~PndDskFLGHit()
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
Definition: PndDskFLGHit.h:103
TVector3 fExitPosition
Position when particle disappears [cm].
Definition: PndDskFLGHit.h:102
Double_t fY
Definition: PndCaloDraw.cxx:34
void SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum, Double_t exitTime, Double_t exitEnergy)
ClassImp(PndAnaContFact)
virtual void Print(const Option_t *opt) const
Double_t fExitEnergy
Energy when particle disappears [GeV].
Definition: PndDskFLGHit.h:105
Double_t thetaC
Definition: plot_dirc.C:16
Double_t energy
Definition: plot_dirc.C:15