![]() |
FairShip
|
#include <ShipStack.h>
Classes | |
| struct | SplitInfo |
Public Member Functions | |
| ShipStack (Int_t size=100) | |
| ~ShipStack () override | |
| void | PushTrack (Int_t toBeDone, Int_t parentID, Int_t pdgCode, Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vx, Double_t vy, Double_t vz, Double_t time, Double_t polx, Double_t poly, Double_t polz, TMCProcess proc, Int_t &ntr, Double_t weight, Int_t is) override |
| void | PushTrack (Int_t toBeDone, Int_t parentID, Int_t pdgCode, Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vx, Double_t vy, Double_t vz, Double_t time, Double_t polx, Double_t poly, Double_t polz, TMCProcess proc, Int_t &ntr, Double_t weight, Int_t is, Int_t secondParentId) override |
| TParticle * | PopNextTrack (Int_t &iTrack) override |
| TParticle * | PopPrimaryForTracking (Int_t iPrim) override |
| void | SetCurrentTrack (Int_t iTrack) override |
| Int_t | GetNtrack () const override |
| Int_t | GetNprimary () const override |
| TParticle * | GetCurrentTrack () const override |
| Int_t | GetCurrentTrackNumber () const override |
| Int_t | GetCurrentParentTrackNumber () const override |
| void | AddParticle (TParticle *part) |
| void | FillTrackArray () override |
| void | UpdateTrackIndex (TRefArray *detArray=nullptr) override |
| void | Reset () override |
| void | Register () override |
| virtual void | Print (Int_t iVerbose=0) const |
| void | StoreSecondaries (Bool_t choice=kTRUE) |
| void | SetMinPoints (Int_t min) |
| void | SetEnergyCut (Double_t eMin) |
| void | StoreMothers (Bool_t choice=kTRUE) |
| void | SetSplitting () |
| void | SetSplitSet (Int_t iTrack, Int_t splitSet, Int_t role, Double_t weight) |
| void | AddPoint (DetectorId iDet) |
| void | AddPoint (DetectorId iDet, Int_t iTrack) |
| TParticle * | GetParticle (Int_t trackId) const |
| TClonesArray * | GetListOfParticles () override |
Private Member Functions | |
| void | SelectTracks () |
| ShipStack (const ShipStack &)=delete | |
| ShipStack & | operator= (const ShipStack &)=delete |
Private Attributes | |
| std::stack< TParticle * > | fStack |
| TClonesArray * | fParticles |
| std::vector< ShipMCTrack > * | fTracks |
| std::vector< Bool_t > | fStoreFlags |
| std::vector< Int_t > | fIndexMap |
| std::vector< Int_t > | fPointsPerTrack |
| std::vector< SplitInfo > | fSplitSets |
| Int_t | fCurrentTrack |
| Int_t | fNPrimaries |
| Index of current track. | |
| Int_t | fNParticles |
| Number of primary particles. | |
| Int_t | fNTracks |
| Number of entries in fParticles. | |
| Int_t | fIndex |
| Number of entries in fTracks. | |
| Bool_t | fStoreSecondaries |
| Used for merging. | |
| Int_t | fMinPoints |
| Double32_t | fEnergyCut |
| Bool_t | fStoreMothers |
| Bool_t | fSplitting |
Definition at line 46 of file ShipStack.h.
|
explicit |
Default constructor param size Estimated track number
Definition at line 31 of file ShipStack.cxx.
|
override |
|
privatedelete |
| void ShipStack::AddParticle | ( | TParticle * | part | ) |
Add a TParticle to the fParticles array
Definition at line 206 of file ShipStack.cxx.
| void ShipStack::AddPoint | ( | DetectorId | iDet | ) |
Increment the point total for the current track. The count is per track, aggregated across all detectors; iDet is retained for call-site compatibility but ignored for counting.
| iDet | Detector unique identifier (ignored) |
Definition at line 361 of file ShipStack.cxx.
| void ShipStack::AddPoint | ( | DetectorId | iDet, |
| Int_t | iTrack ) |
Increment the point total for an arbitrary track. The count is per track, aggregated across all detectors; iDet is retained for call-site compatibility but ignored for counting.
| iDet | Detector unique identifier (ignored) |
| iTrack | Track number |
Definition at line 365 of file ShipStack.cxx.
|
override |
Fill the MCTrack output array, applying filter criteria
Definition at line 216 of file ShipStack.cxx.
|
override |
Get the track number of the parent of the current track Declared in TVirtualMCStack
Definition at line 377 of file ShipStack.cxx.
|
override |
Get the current track's particle Declared in TVirtualMCStack
Definition at line 196 of file ShipStack.cxx.
|
inlineoverride |
Get the number of the current track Declared in TVirtualMCStack
Definition at line 121 of file ShipStack.h.
|
inlineoverride |
Definition at line 182 of file ShipStack.h.
|
inlineoverride |
Get number of primary tracks Declared in TVirtualMCStack
Definition at line 111 of file ShipStack.h.
|
inlineoverride |
| TParticle * ShipStack::GetParticle | ( | Int_t | trackId | ) | const |
Accessors
Definition at line 388 of file ShipStack.cxx.
|
override |
Get next particle for tracking from the stack. Declared in TVirtualMCStack
| iTrack | index of popped track (return) |
Definition at line 147 of file ShipStack.cxx.
|
override |
Get primary particle by index for tracking from stack Declared in TVirtualMCStack
| iPrim | index of primary particle |
Definition at line 171 of file ShipStack.cxx.
|
virtual |
Definition at line 348 of file ShipStack.cxx.
|
override |
Add a TParticle to the stack. Declared in TVirtualMCStack
| toBeDone | Flag for tracking |
| parentID | Index of mother particle |
| pdgCode | Particle type (PDG encoding) |
| px,py,pz | Momentum components at start vertex [GeV] |
| e | Total energy at start vertex [GeV] |
| vx,vy,vz | Coordinates of start vertex [cm] |
| time | Start time of track [s] |
| polx,poly,polz | Polarisation vector |
| proc | Production mechanism (VMC encoding) |
| ntr | Track number (filled by the stack) |
| weight | Particle weight |
| is | Generation status code (whatever that means) |
Definition at line 67 of file ShipStack.cxx.
|
override |
Definition at line 78 of file ShipStack.cxx.
|
override |
Register the MCTrack array to the Root Manager
Definition at line 342 of file ShipStack.cxx.
|
override |
Resets arrays and stack and deletes particles and tracks
Definition at line 315 of file ShipStack.cxx.
|
private |
Mark tracks for output using selection criteria
Definition at line 398 of file ShipStack.cxx.
|
inlineoverride |
Set the current track number Declared in TVirtualMCStack
| iTrack | track number |
Definition at line 101 of file ShipStack.h.
|
inline |
Definition at line 152 of file ShipStack.h.
|
inline |
Definition at line 151 of file ShipStack.h.
| void ShipStack::SetSplitSet | ( | Int_t | iTrack, |
| Int_t | splitSet, | ||
| Int_t | role, | ||
| Double_t | weight ) |
Record that a track belongs to a split set, with its role (see ShipMCTrack::GetSplitSet()). Copied to the stored ShipMCTrack.
| iTrack | Particle index on the stack |
| splitSet | Split set ID, unique within the event |
| role | ShipMCTrack::SplitRole |
| weight | Weight of the split track before splitting |
Definition at line 328 of file ShipStack.cxx.
|
inline |
Definition at line 154 of file ShipStack.h.
|
inline |
Definition at line 153 of file ShipStack.h.
|
inline |
|
override |
Update the track index in the MCTracks and MCPoints
Definition at line 256 of file ShipStack.cxx.
|
private |
Some indizes and counters
Definition at line 214 of file ShipStack.h.
|
private |
Definition at line 223 of file ShipStack.h.
|
private |
Number of entries in fTracks.
Definition at line 218 of file ShipStack.h.
|
private |
Output track index per particle index (-2 if not stored)
Definition at line 200 of file ShipStack.h.
|
private |
Definition at line 222 of file ShipStack.h.
|
private |
Number of primary particles.
Definition at line 216 of file ShipStack.h.
|
private |
Index of current track.
Definition at line 215 of file ShipStack.h.
|
private |
Number of entries in fParticles.
Definition at line 217 of file ShipStack.h.
|
private |
Array of TParticles (contains all TParticles put into or created by the transport
Definition at line 191 of file ShipStack.h.
|
private |
Number of MCPoints per track index, summed over all detectors
Definition at line 203 of file ShipStack.h.
|
private |
Definition at line 211 of file ShipStack.h.
|
private |
Definition at line 225 of file ShipStack.h.
|
private |
STL stack (FILO) used to handle the TParticles for tracking
Definition at line 186 of file ShipStack.h.
|
private |
Storage flag per particle index
Definition at line 197 of file ShipStack.h.
|
private |
Definition at line 224 of file ShipStack.h.
|
private |
Used for merging.
Variables defining the criteria for output selection
Definition at line 221 of file ShipStack.h.
|
private |
Array of FairMCTracks containing the tracks written to the output
Definition at line 194 of file ShipStack.h.