#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, 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) |
|
Definition at line 26 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, |
|
|
Double_t |
w |
|
) |
| |
◆ ShipMCTrack() [3/4]
Copy constructor
Definition at line 58 of file ShipMCTrack.cxx.
59 : TObject(track),
73{
74}
◆ ShipMCTrack() [4/4]
ShipMCTrack::ShipMCTrack |
( |
TParticle * |
particle | ) |
|
◆ ~ShipMCTrack()
ShipMCTrack::~ShipMCTrack |
( |
| ) |
|
|
virtual |
◆ ClassDef()
◆ Get4Momentum()
void ShipMCTrack::Get4Momentum |
( |
TLorentzVector & |
momentum | ) |
|
|
inline |
Definition at line 146 of file ShipMCTrack.h.
147{
149}
Double_t GetEnergy() const
◆ GetEnergy()
Double_t ShipMCTrack::GetEnergy |
( |
| ) |
const |
◆ GetMass()
Double_t ShipMCTrack::GetMass |
( |
| ) |
const |
Definition at line 133 of file ShipMCTrack.cxx.
134{
136
137 if ( TDatabasePDG::Instance() ) {
138 TParticlePDG* particle = TDatabasePDG::Instance()->GetParticle(
fPdgCode);
139 if ( particle ) { return particle->Mass(); }
140 else { return 0.; }
141 }
142 }
144}
◆ 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 169 of file ShipMCTrack.cxx.
170{
171
172
173
174
175
176
177
178
179
180 return 0;
181}
◆ 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 |
Output to screen
Definition at line 108 of file ShipMCTrack.cxx.
109{
110 LOG(DEBUG) <<
"Track " << trackId <<
", mother : " <<
fMotherId <<
", Type "
113
114
115
116
117}
◆ SetMotherId()
void ShipMCTrack::SetMotherId |
( |
Int_t |
id | ) |
|
|
inline |
◆ SetNPoints()
void ShipMCTrack::SetNPoints |
( |
Int_t |
iDet, |
|
|
Int_t |
np |
|
) |
| |
Definition at line 187 of file ShipMCTrack.cxx.
188{
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210}
◆ SetProcID()
void ShipMCTrack::SetProcID |
( |
Int_t |
i | ) |
|
|
inline |
◆ SetWeight()
void ShipMCTrack::SetWeight |
( |
Double_t |
w | ) |
|
|
inline |
◆ fM
Double32_t ShipMCTrack::fM |
|
private |
◆ fMotherId
Int_t ShipMCTrack::fMotherId |
|
private |
Index of mother track. -1 for primary particles.
Definition at line 99 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 128 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 111 of file ShipMCTrack.h.
◆ fPx
Double32_t ShipMCTrack::fPx |
|
private |
Momentum components at start vertex [GeV]
Definition at line 102 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 105 of file ShipMCTrack.h.
◆ fStartY
Double32_t ShipMCTrack::fStartY |
|
private |
◆ fStartZ
Double32_t ShipMCTrack::fStartZ |
|
private |
◆ fW
Double32_t ShipMCTrack::fW |
|
private |
The documentation for this class was generated from the following files: