ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
#include <AtStack.h>
Public Member Functions | |
AtStack (Int_t size=100) | |
virtual | ~AtStack () |
virtual 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) |
virtual 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) |
virtual TParticle * | PopNextTrack (Int_t &iTrack) |
virtual TParticle * | PopPrimaryForTracking (Int_t iPrim) |
virtual void | SetCurrentTrack (Int_t iTrack) |
virtual Int_t | GetNtrack () const |
virtual Int_t | GetNprimary () const |
virtual TParticle * | GetCurrentTrack () const |
virtual Int_t | GetCurrentTrackNumber () const |
virtual Int_t | GetCurrentParentTrackNumber () const |
virtual void | AddParticle (TParticle *part) |
virtual void | FillTrackArray () |
virtual void | UpdateTrackIndex (TRefArray *detArray=0) |
virtual void | Reset () |
virtual void | Register () |
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 | AddPoint (DetectorId iDet) |
void | AddPoint (DetectorId iDet, Int_t iTrack) |
TParticle * | GetParticle (Int_t trackId) const |
TClonesArray * | GetListOfParticles () |
AtStack::AtStack | ( | Int_t | size = 100 | ) |
Default constructor param size Estimated track number
Definition at line 43 of file AtStack.cxx.
|
virtual |
Destructor
Definition at line 54 of file AtStack.cxx.
|
virtual |
Add a TParticle to the fParticles array
Definition at line 171 of file AtStack.cxx.
void AtStack::AddPoint | ( | DetectorId | iDet | ) |
Increment number of points for the current track in a given detector
iDet | Detector unique identifier |
Definition at line 322 of file AtStack.cxx.
void AtStack::AddPoint | ( | DetectorId | iDet, |
Int_t | iTrack | ||
) |
Increment number of points for an arbitrary track in a given detector
iDet | Detector unique identifier |
iTrack | Track number |
Definition at line 336 of file AtStack.cxx.
|
virtual |
Fill the MCTrack output array, applying filter criteria
Definition at line 182 of file AtStack.cxx.
|
virtual |
Get the track number of the parent of the current track Declared in TVirtualMCStack
Definition at line 352 of file AtStack.cxx.
|
virtual |
Get the current track's particle Declared in TVirtualMCStack
Definition at line 160 of file AtStack.cxx.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
TParticle * AtStack::GetParticle | ( | Int_t | trackId | ) | const |
Accessors
Definition at line 364 of file AtStack.cxx.
|
virtual |
Get next particle for tracking from the stack. Declared in TVirtualMCStack
iTrack | index of popped track (return) |
Definition at line 111 of file AtStack.cxx.
|
virtual |
Get primary particle by index for tracking from stack Declared in TVirtualMCStack
iPrim | index of primary particle |
Definition at line 137 of file AtStack.cxx.
|
virtual |
Output to screen
iVerbose | 0=events summary, 1=track info |
Definition at line 308 of file AtStack.cxx.
|
virtual |
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 AtStack.cxx.
|
virtual |
Definition at line 76 of file AtStack.cxx.
|
virtual |
Register the MCTrack array to the Root Manager
Definition at line 301 of file AtStack.cxx.
|
virtual |
Resets arrays and stack and deletes particles and tracks
Definition at line 286 of file AtStack.cxx.
|
inlinevirtual |
|
inline |
|
inline |
|
virtual |
Update the track index in the MCTracks and MCPoints
Definition at line 230 of file AtStack.cxx.