ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Public Member Functions | List of all members
AtStack Class Reference

#include <AtStack.h>

Inheritance diagram for AtStack:
Inheritance graph
[legend]
Collaboration diagram for AtStack:
Collaboration graph
[legend]

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 ()
 

Detailed Description

Definition at line 54 of file AtStack.h.

Constructor & Destructor Documentation

◆ AtStack()

AtStack::AtStack ( Int_t  size = 100)

Default constructor param size Estimated track number

Definition at line 43 of file AtStack.cxx.

◆ ~AtStack()

AtStack::~AtStack ( )
virtual

Destructor

Definition at line 54 of file AtStack.cxx.

Member Function Documentation

◆ AddParticle()

void AtStack::AddParticle ( TParticle *  part)
virtual

Add a TParticle to the fParticles array

Definition at line 171 of file AtStack.cxx.

◆ AddPoint() [1/2]

void AtStack::AddPoint ( DetectorId  iDet)

Increment number of points for the current track in a given detector

Parameters
iDetDetector unique identifier

Definition at line 322 of file AtStack.cxx.

◆ AddPoint() [2/2]

void AtStack::AddPoint ( DetectorId  iDet,
Int_t  iTrack 
)

Increment number of points for an arbitrary track in a given detector

Parameters
iDetDetector unique identifier
iTrackTrack number

Definition at line 336 of file AtStack.cxx.

◆ FillTrackArray()

void AtStack::FillTrackArray ( )
virtual

Fill the MCTrack output array, applying filter criteria

Definition at line 182 of file AtStack.cxx.

◆ GetCurrentParentTrackNumber()

Int_t AtStack::GetCurrentParentTrackNumber ( ) const
virtual

Get the track number of the parent of the current track Declared in TVirtualMCStack

Definition at line 352 of file AtStack.cxx.

◆ GetCurrentTrack()

TParticle * AtStack::GetCurrentTrack ( ) const
virtual

Get the current track's particle Declared in TVirtualMCStack

Definition at line 160 of file AtStack.cxx.

◆ GetCurrentTrackNumber()

virtual Int_t AtStack::GetCurrentTrackNumber ( ) const
inlinevirtual

Get the number of the current track Declared in TVirtualMCStack

Definition at line 127 of file AtStack.h.

◆ GetListOfParticles()

TClonesArray* AtStack::GetListOfParticles ( )
inline

Definition at line 173 of file AtStack.h.

◆ GetNprimary()

virtual Int_t AtStack::GetNprimary ( ) const
inlinevirtual

Get number of primary tracks Declared in TVirtualMCStack

Definition at line 117 of file AtStack.h.

◆ GetNtrack()

virtual Int_t AtStack::GetNtrack ( ) const
inlinevirtual

Get total number of tracks Declared in TVirtualMCStack

Definition at line 112 of file AtStack.h.

◆ GetParticle()

TParticle * AtStack::GetParticle ( Int_t  trackId) const

Accessors

Definition at line 364 of file AtStack.cxx.

◆ PopNextTrack()

TParticle * AtStack::PopNextTrack ( Int_t &  iTrack)
virtual

Get next particle for tracking from the stack. Declared in TVirtualMCStack

Parameters
iTrackindex of popped track (return)
Returns
Pointer to the TParticle of the track

Definition at line 111 of file AtStack.cxx.

◆ PopPrimaryForTracking()

TParticle * AtStack::PopPrimaryForTracking ( Int_t  iPrim)
virtual

Get primary particle by index for tracking from stack Declared in TVirtualMCStack

Parameters
iPrimindex of primary particle
Returns
Pointer to the TParticle of the track

Definition at line 137 of file AtStack.cxx.

◆ Print()

void AtStack::Print ( Int_t  iVerbose = 0) const
virtual

Output to screen

Parameters
iVerbose0=events summary, 1=track info

Definition at line 308 of file AtStack.cxx.

◆ PushTrack() [1/2]

void AtStack::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

Add a TParticle to the stack. Declared in TVirtualMCStack

Parameters
toBeDoneFlag for tracking
parentIDIndex of mother particle
pdgCodeParticle type (PDG encoding)
px,py,pzMomentum components at start vertex [GeV]
eTotal energy at start vertex [GeV]
vx,vy,vzCoordinates of start vertex [cm]
timeStart time of track [s]
polx,poly,polzPolarisation vector
procProduction mechanism (VMC encoding)
ntrTrack number (filled by the stack)
weightParticle weight
isGeneration status code (whatever that means)

Definition at line 67 of file AtStack.cxx.

◆ PushTrack() [2/2]

void AtStack::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

Definition at line 76 of file AtStack.cxx.

◆ Register()

void AtStack::Register ( )
virtual

Register the MCTrack array to the Root Manager

Definition at line 301 of file AtStack.cxx.

◆ Reset()

void AtStack::Reset ( )
virtual

Resets arrays and stack and deletes particles and tracks

Definition at line 286 of file AtStack.cxx.

◆ SetCurrentTrack()

virtual void AtStack::SetCurrentTrack ( Int_t  iTrack)
inlinevirtual

Set the current track number Declared in TVirtualMCStack

Parameters
iTracktrack number

Definition at line 107 of file AtStack.h.

◆ SetEnergyCut()

void AtStack::SetEnergyCut ( Double_t  eMin)
inline

Definition at line 157 of file AtStack.h.

◆ SetMinPoints()

void AtStack::SetMinPoints ( Int_t  min)
inline

Definition at line 156 of file AtStack.h.

◆ StoreMothers()

void AtStack::StoreMothers ( Bool_t  choice = kTRUE)
inline

Definition at line 158 of file AtStack.h.

◆ StoreSecondaries()

void AtStack::StoreSecondaries ( Bool_t  choice = kTRUE)
inline

Modifiers

Definition at line 155 of file AtStack.h.

◆ UpdateTrackIndex()

void AtStack::UpdateTrackIndex ( TRefArray *  detArray = 0)
virtual

Update the track index in the MCTracks and MCPoints

Definition at line 230 of file AtStack.cxx.


The documentation for this class was generated from the following files: