#include <ShipMCTrack.h>
|
| | ShipMCTrack () |
| |
| | ShipMCTrack (Int_t pdgCode, Int_t motherID, Double_t px, Double_t py, Double_t pz, Double_t E, Double_t x, Double_t y, Double_t z, Double_t t, Int_t nPoints, Int_t eventID, Int_t trackID, Double_t w) |
| |
| | ShipMCTrack (const ShipMCTrack &track) |
| |
| | ShipMCTrack (TParticle *particle) |
| |
| virtual | ~ShipMCTrack () |
| |
| void | Print (Int_t iTrack=0) const |
| |
| Int_t | GetPdgCode () const |
| |
| Int_t | GetMotherId () const |
| |
| Double_t | GetPx () const |
| |
| Double_t | GetPy () const |
| |
| Double_t | GetPz () const |
| |
| Double_t | GetStartX () const |
| |
| Double_t | GetStartY () const |
| |
| Double_t | GetStartZ () const |
| |
| Double_t | GetStartT () const |
| |
| void | SetProcID (Int_t i) |
| |
| Int_t | GetProcID () const |
| |
| TString | GetProcName () const |
| |
| Double_t | GetMass () const |
| |
| Double_t | GetEnergy () const |
| |
| Double_t | GetPt () const |
| |
| Double_t | GetP () const |
| |
| Double_t | GetRapidity () const |
| |
| void | MultiplyWeight (Double_t w) |
| |
| void | SetWeight (Double_t w) |
| |
| Double_t | GetWeight () const |
| |
| void | GetMomentum (TVector3 &momentum) |
| |
| void | Get4Momentum (TLorentzVector &momentum) |
| |
| void | GetStartVertex (TVector3 &vertex) |
| |
| Int_t | GetNPoints (DetectorId detId) const |
| |
| void | SetMotherId (Int_t id) |
| |
| void | SetNPoints (Int_t iDet, Int_t np) |
| |
| void | SetEventID (const Int_t &eventID) |
| |
| void | SetTrackID (const Int_t &trackID) |
| |
Definition at line 28 of file ShipMCTrack.h.
◆ ShipMCTrack() [1/4]
| ShipMCTrack::ShipMCTrack |
( |
| ) |
|
◆ ShipMCTrack() [2/4]
| ShipMCTrack::ShipMCTrack |
( |
Int_t |
pdgCode, |
|
|
Int_t |
motherID, |
|
|
Double_t |
px, |
|
|
Double_t |
py, |
|
|
Double_t |
pz, |
|
|
Double_t |
E, |
|
|
Double_t |
x, |
|
|
Double_t |
y, |
|
|
Double_t |
z, |
|
|
Double_t |
t, |
|
|
Int_t |
nPoints, |
|
|
Int_t |
eventID, |
|
|
Int_t |
trackID, |
|
|
Double_t |
w |
|
) |
| |
|
explicit |
◆ ShipMCTrack() [3/4]
Copy constructor
Definition at line 59 of file ShipMCTrack.cxx.
60 : TObject(track),
Double_t GetWeight() const
◆ ShipMCTrack() [4/4]
| ShipMCTrack::ShipMCTrack |
( |
TParticle * |
particle | ) |
|
|
explicit |
Constructor from TParticle
Definition at line 79 of file ShipMCTrack.cxx.
80 : TObject(),
86 fM([](
const TParticle* p) {
87 Double_t
m2 =
p->Energy() *
p->Energy() -
p->P() *
p->P();
88 if (m2 >= 0.)
return TMath::Sqrt(m2);
89
90 Double_t e2 =
p->Energy() *
p->Energy();
91 if (-m2 < 1e-10 * e2)
return 0.;
92
93
94 return -TMath::Sqrt(-m2);
examples * if(DOT) set(DIAGRAM_EXAMPLE $
◆ ~ShipMCTrack()
| ShipMCTrack::~ShipMCTrack |
( |
| ) |
|
|
virtual |
◆ ClassDef()
◆ Get4Momentum()
| void ShipMCTrack::Get4Momentum |
( |
TLorentzVector & |
momentum | ) |
|
|
inline |
Definition at line 139 of file ShipMCTrack.h.
139 {
141}
Double_t GetEnergy() const
◆ GetEnergy()
| Double_t ShipMCTrack::GetEnergy |
( |
| ) |
const |
Definition at line 124 of file ShipMCTrack.cxx.
124 {
126
129 } else {
131 }
132}
def mass(str|None particle)
◆ GetMass()
| Double_t ShipMCTrack::GetMass |
( |
| ) |
const |
Definition at line 134 of file ShipMCTrack.cxx.
134 {
136
137 if (TDatabasePDG::Instance()) {
138 TParticlePDG* particle = TDatabasePDG::Instance()->GetParticle(
fPdgCode);
139 if (particle) {
140 return particle->Mass();
141 } else {
142 return 0.;
143 }
144 }
145 }
147}
◆ GetMomentum()
| void ShipMCTrack::GetMomentum |
( |
TVector3 & |
momentum | ) |
|
|
inline |
◆ GetMotherId()
| Int_t ShipMCTrack::GetMotherId |
( |
| ) |
const |
|
inline |
◆ GetNPoints()
| Int_t ShipMCTrack::GetNPoints |
( |
DetectorId |
detId | ) |
const |
Accessors to the number of MCPoints in the detectors
Definition at line 163 of file ShipMCTrack.cxx.
163 {
164
165
166
167
168
169
170
171 return 0;
172}
◆ GetP()
| Double_t ShipMCTrack::GetP |
( |
| ) |
const |
|
inline |
◆ GetPdgCode()
| Int_t ShipMCTrack::GetPdgCode |
( |
| ) |
const |
|
inline |
◆ GetProcID()
| Int_t ShipMCTrack::GetProcID |
( |
| ) |
const |
|
inline |
◆ GetProcName()
| TString ShipMCTrack::GetProcName |
( |
| ) |
const |
|
inline |
◆ GetPt()
| Double_t ShipMCTrack::GetPt |
( |
| ) |
const |
|
inline |
◆ GetPx()
| Double_t ShipMCTrack::GetPx |
( |
| ) |
const |
|
inline |
◆ GetPy()
| Double_t ShipMCTrack::GetPy |
( |
| ) |
const |
|
inline |
◆ GetPz()
| Double_t ShipMCTrack::GetPz |
( |
| ) |
const |
|
inline |
◆ GetRapidity()
| Double_t ShipMCTrack::GetRapidity |
( |
| ) |
const |
◆ GetStartT()
| Double_t ShipMCTrack::GetStartT |
( |
| ) |
const |
|
inline |
◆ GetStartVertex()
| void ShipMCTrack::GetStartVertex |
( |
TVector3 & |
vertex | ) |
|
|
inline |
◆ GetStartX()
| Double_t ShipMCTrack::GetStartX |
( |
| ) |
const |
|
inline |
◆ GetStartY()
| Double_t ShipMCTrack::GetStartY |
( |
| ) |
const |
|
inline |
◆ GetStartZ()
| Double_t ShipMCTrack::GetStartZ |
( |
| ) |
const |
|
inline |
◆ GetWeight()
| Double_t ShipMCTrack::GetWeight |
( |
| ) |
const |
◆ MultiplyWeight()
| void ShipMCTrack::MultiplyWeight |
( |
Double_t |
w | ) |
|
|
inline |
◆ Print()
| void ShipMCTrack::Print |
( |
Int_t |
iTrack = 0 | ) |
const |
Definition at line 112 of file ShipMCTrack.cxx.
112 {
113 LOG(
debug) <<
"Track " << trackId <<
", mother : " <<
fMotherId <<
", Type "
115 << ") GeV";
116
117
118
119
120}
◆ SetEventID()
| void ShipMCTrack::SetEventID |
( |
const Int_t & |
eventID | ) |
|
◆ SetMotherId()
| void ShipMCTrack::SetMotherId |
( |
Int_t |
id | ) |
|
|
inline |
◆ SetNPoints()
| void ShipMCTrack::SetNPoints |
( |
Int_t |
iDet, |
|
|
Int_t |
np |
|
) |
| |
Definition at line 176 of file ShipMCTrack.cxx.
176 {
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198}
◆ SetProcID()
| void ShipMCTrack::SetProcID |
( |
Int_t |
i | ) |
|
|
inline |
◆ SetTrackID()
| void ShipMCTrack::SetTrackID |
( |
const Int_t & |
trackID | ) |
|
◆ SetWeight()
| void ShipMCTrack::SetWeight |
( |
Double_t |
w | ) |
|
|
inline |
◆ fEventID
| Int_t ShipMCTrack::fEventID |
|
private |
◆ fM
| Double32_t ShipMCTrack::fM |
|
private |
◆ fMotherId
| Int_t ShipMCTrack::fMotherId |
|
private |
Index of mother track. -1 for primary particles.
Definition at line 93 of file ShipMCTrack.h.
◆ fNPoints
| Int_t ShipMCTrack::fNPoints |
|
private |
Bitvector representing the number of MCPoints for this track in each subdetector. The detectors are represented by REF: Bit 0 (1 bit, max. value 1) MVD: Bit 1 - 3 (3 bits, max. value 7) STS: Bit 4 - 8 (5 bits, max. value 31) RICH: Bit 9 (1 bit, max. value 1) MUCH: Bit 10 - 14 (5 bits, max. value 31) TRD: Bit 15 - 19 (5 bits, max. value 31) TOF: Bit 20 - 23 (4 bits, max. value 15) ECAL: Bit 24 (1 bit, max. value 1) ZDC: Bit 25 (1 bit, max. value 1) The respective point numbers can be accessed and modified with the inline functions. Bits 26-31 are spare for potential additional detectors.
Definition at line 122 of file ShipMCTrack.h.
◆ fPdgCode
| Int_t ShipMCTrack::fPdgCode |
|
private |
◆ fProcID
| Int_t ShipMCTrack::fProcID |
|
private |
Geant4 process ID which created the particle
Definition at line 105 of file ShipMCTrack.h.
◆ fPx
| Double32_t ShipMCTrack::fPx |
|
private |
Momentum components at start vertex [GeV]
Definition at line 96 of file ShipMCTrack.h.
◆ fPy
| Double32_t ShipMCTrack::fPy |
|
private |
◆ fPz
| Double32_t ShipMCTrack::fPz |
|
private |
◆ fStartT
| Double32_t ShipMCTrack::fStartT |
|
private |
◆ fStartX
| Double32_t ShipMCTrack::fStartX |
|
private |
Coordinates of start vertex [cm, ns]
Definition at line 99 of file ShipMCTrack.h.
◆ fStartY
| Double32_t ShipMCTrack::fStartY |
|
private |
◆ fStartZ
| Double32_t ShipMCTrack::fStartZ |
|
private |
◆ fTrackID
| Int_t ShipMCTrack::fTrackID |
|
private |
◆ fW
| Double32_t ShipMCTrack::fW |
|
private |
The documentation for this class was generated from the following files: