#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) |
| | ~ShipMCTrack () override |
| 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 |
| Int_t | GetEventID () 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 | GetSplitSet () const |
| Int_t | GetSplitRole () const |
| Double_t | GetSplitWeight () const |
| Bool_t | IsSplitDecay () const |
| Bool_t | IsSplitSurvivor () const |
| void | SetMotherId (Int_t id) |
| void | SetStartT (Double_t t) |
| void | SetEventID (const Int_t &eventID) |
| void | SetTrackID (const Int_t &trackID) |
| void | SetSplitSet (Int_t splitSet, Int_t role, Double_t splitWeight) |
Definition at line 28 of file ShipMCTrack.h.
◆ SplitRole
Role of a track in a split set (see GetSplitSet()).
| Enumerator |
|---|
| kNotSplit | not part of a split set
|
| kSplitSurvivor | the split track itself, or its continuation
|
| kSplitDecay | a clone standing for one decay of the split track
|
Definition at line 31 of file ShipMCTrack.h.
31 : Int_t {
35 };
@ kSplitDecay
a clone standing for one decay of the split track
@ kNotSplit
not part of a split set
@ kSplitSurvivor
the split track itself, or its continuation
◆ 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 65 of file ShipMCTrack.cxx.
66 : TObject(track),
Double_t GetWeight() const
◆ ShipMCTrack() [4/4]
| ShipMCTrack::ShipMCTrack |
( |
TParticle * | particle | ) |
|
|
explicit |
Constructor from TParticle
Definition at line 88 of file ShipMCTrack.cxx.
89 : TObject(),
95 fM([](
const TParticle* p) {
96 Double_t
m2 =
p->Energy() *
p->Energy() -
p->P() *
p->P();
97 if (m2 >= 0.) return TMath::Sqrt(m2);
98
99 Double_t e2 =
p->Energy() *
p->Energy();
100 if (-m2 < 1e-10 * e2) return 0.;
101
102
103 return -TMath::Sqrt(-m2);
◆ ~ShipMCTrack()
| ShipMCTrack::~ShipMCTrack |
( |
| ) |
|
|
overridedefault |
◆ ClassDefOverride()
◆ Get4Momentum()
| void ShipMCTrack::Get4Momentum |
( |
TLorentzVector & | momentum | ) |
|
|
inline |
Definition at line 179 of file ShipMCTrack.h.
179 {
181}
Double_t GetEnergy() const
◆ GetEnergy()
| Double_t ShipMCTrack::GetEnergy |
( |
| ) |
const |
◆ GetEventID()
| Int_t ShipMCTrack::GetEventID |
( |
| ) |
const |
|
inline |
◆ GetMass()
| Double_t ShipMCTrack::GetMass |
( |
| ) |
const |
Definition at line 142 of file ShipMCTrack.cxx.
142 {
144
145 if (TDatabasePDG::Instance()) {
146 TParticlePDG* particle = TDatabasePDG::Instance()->GetParticle(
fPdgCode);
147 if (particle) {
148 return particle->Mass();
149 } else {
150 return 0.;
151 }
152 }
153 }
155}
◆ GetMomentum()
| void ShipMCTrack::GetMomentum |
( |
TVector3 & | momentum | ) |
|
|
inline |
◆ GetMotherId()
| Int_t ShipMCTrack::GetMotherId |
( |
| ) |
const |
|
inline |
◆ 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 |
◆ GetSplitRole()
| Int_t ShipMCTrack::GetSplitRole |
( |
| ) |
const |
|
inline |
◆ GetSplitSet()
| Int_t ShipMCTrack::GetSplitSet |
( |
| ) |
const |
|
inline |
Split set of the track, -1 if it is not part of one. Splitting a kaon or pion replaces its decay by weighted alternatives, which are mutually exclusive histories rather than particles that exist together. All tracks created for one split track share its split set: the track itself and its continuations (kSplitSurvivor), and the clones that each stand for one of its decays (kSplitDecay). The clones and continuations are pushed with the split track's mother as their mother, so the split set, not the mother index, tells them apart from real siblings. The ID is unique within an event. GetSplitWeight() is the weight of the split track before it was split, the same for every member: a decay alternative of weight w stands for a decay with probability w / GetSplitWeight(). A survivor track carries the weight of its own path, before any decay that ends it. Clones whose products were not stored are pruned from the output, so the stored alternatives of a set need not add up to it.
Definition at line 102 of file ShipMCTrack.h.
◆ GetSplitWeight()
| Double_t ShipMCTrack::GetSplitWeight |
( |
| ) |
const |
|
inline |
◆ 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 |
◆ IsSplitDecay()
| Bool_t ShipMCTrack::IsSplitDecay |
( |
| ) |
const |
|
inline |
◆ IsSplitSurvivor()
| Bool_t ShipMCTrack::IsSplitSurvivor |
( |
| ) |
const |
|
inline |
◆ MultiplyWeight()
| void ShipMCTrack::MultiplyWeight |
( |
Double_t | w | ) |
|
|
inline |
◆ Print()
| void ShipMCTrack::Print |
( |
Int_t | iTrack = 0 | ) |
const |
◆ SetEventID()
| void ShipMCTrack::SetEventID |
( |
const Int_t & | eventID | ) |
|
◆ SetMotherId()
| void ShipMCTrack::SetMotherId |
( |
Int_t | id | ) |
|
|
inline |
◆ SetProcID()
| void ShipMCTrack::SetProcID |
( |
Int_t | i | ) |
|
|
inline |
◆ SetSplitSet()
| void ShipMCTrack::SetSplitSet |
( |
Int_t | splitSet, |
|
|
Int_t | role, |
|
|
Double_t | splitWeight ) |
|
inline |
◆ SetStartT()
| void ShipMCTrack::SetStartT |
( |
Double_t | t | ) |
|
|
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 124 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 153 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 136 of file ShipMCTrack.h.
◆ fPx
| Double32_t ShipMCTrack::fPx |
|
private |
Momentum components at start vertex [GeV]
Definition at line 127 of file ShipMCTrack.h.
◆ fPy
| Double32_t ShipMCTrack::fPy |
|
private |
◆ fPz
| Double32_t ShipMCTrack::fPz |
|
private |
◆ fSplitRole
| Int_t ShipMCTrack::fSplitRole |
|
private |
◆ fSplitSet
| Int_t ShipMCTrack::fSplitSet |
|
private |
◆ fSplitWeight
| Double32_t ShipMCTrack::fSplitWeight |
|
private |
◆ fStartT
| Double32_t ShipMCTrack::fStartT |
|
private |
◆ fStartX
| Double32_t ShipMCTrack::fStartX |
|
private |
Coordinates of start vertex [cm, ns]
Definition at line 130 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: