EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairGenericStack Class Reference

#include <EicRoot/blob/master/base/FairGenericStack.h>

+ Inheritance diagram for FairGenericStack:
+ Collaboration diagram for FairGenericStack:

Public Member Functions

 FairGenericStack ()
 
 FairGenericStack (Int_t size)
 
virtual ~FairGenericStack ()
 
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)
 
void AddParticle (TParticle *part)
 
virtual void FillTrackArray ()
 
virtual void UpdateTrackIndex (TRefArray *detArray)
 
virtual void Reset ()
 
virtual void Register ()
 
virtual void Print (Int_t iVerbose=0) const
 
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 TParticle * GetParticle (Int_t trackID) const
 

Protected Attributes

FairLoggerfLogger
 
Int_t fVerbose
 

Private Member Functions

 FairGenericStack (const FairGenericStack &)
 
FairGenericStackoperator= (const FairGenericStack &)
 

Detailed Description

Definition at line 29 of file FairGenericStack.h.

View newest version in sPHENIX GitHub at line 29 of file FairGenericStack.h

Constructor & Destructor Documentation

FairGenericStack::FairGenericStack ( )

Default constructor

Definition at line 23 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 23 of file FairGenericStack.cxx

FairGenericStack::FairGenericStack ( Int_t  size)

Destructor with estimated array size

Definition at line 31 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 31 of file FairGenericStack.cxx

FairGenericStack::~FairGenericStack ( )
virtual

Destructor

Definition at line 39 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 39 of file FairGenericStack.cxx

FairGenericStack::FairGenericStack ( const FairGenericStack )
private

Member Function Documentation

void FairGenericStack::AddParticle ( TParticle *  part)

Add a TParticle to the fParticles array

Definition at line 76 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 76 of file FairGenericStack.cxx

void FairGenericStack::FillTrackArray ( )
virtual

Fill the MCTrack output array, applying filter criteria

Reimplemented in PndStack, and CbmStack.

Definition at line 81 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 81 of file FairGenericStack.cxx

Referenced by FairMCApplication::FinishEvent().

+ Here is the caller graph for this function:

Int_t FairGenericStack::GetCurrentParentTrackNumber ( ) const
virtual

Reimplemented in PndStack, and CbmStack.

Definition at line 136 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 136 of file FairGenericStack.cxx

TParticle * FairGenericStack::GetCurrentTrack ( ) const
virtual

Reimplemented in PndStack, and CbmStack.

Definition at line 124 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 124 of file FairGenericStack.cxx

Referenced by FairMCApplication::PreTrack().

+ Here is the caller graph for this function:

Int_t FairGenericStack::GetCurrentTrackNumber ( ) const
virtual

Reimplemented in PndStack, and CbmStack.

Definition at line 130 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 130 of file FairGenericStack.cxx

Int_t FairGenericStack::GetNprimary ( ) const
virtual

Reimplemented in PndStack, and CbmStack.

Definition at line 118 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 118 of file FairGenericStack.cxx

Int_t FairGenericStack::GetNtrack ( ) const
virtual

Accessors

Reimplemented in PndStack, and CbmStack.

Definition at line 112 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 112 of file FairGenericStack.cxx

virtual TParticle* FairGenericStack::GetParticle ( Int_t  trackID) const
inlinevirtual

Reimplemented in PndStack, and CbmStack.

Definition at line 131 of file FairGenericStack.h.

View newest version in sPHENIX GitHub at line 131 of file FairGenericStack.h

FairGenericStack& FairGenericStack::operator= ( const FairGenericStack )
private
TParticle * FairGenericStack::PopNextTrack ( Int_t &  iTrack)
virtual

Virtual method PopNextTrack. Gets next particle for tracking from the stack.

Parameters
iTrackindex of popped track
Returns
Pointer to the TParticle of the track

Reimplemented in PndStack, and CbmStack.

Definition at line 64 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 64 of file FairGenericStack.cxx

TParticle * FairGenericStack::PopPrimaryForTracking ( Int_t  iPrim)
virtual

Virtual method PopPrimaryForTracking. Gets primary particle by index for tracking from stack.

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

Reimplemented in PndStack, and CbmStack.

Definition at line 70 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 70 of file FairGenericStack.cxx

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

Output to screen

Parameters
iVerbose,:0=events summary, 1=track info

Reimplemented in PndStack, and CbmStack.

Definition at line 102 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 102 of file FairGenericStack.cxx

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

Virtual method PushTrack. Add a TParticle to the stack.

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)

Reimplemented in PndStack, and CbmStack.

Definition at line 44 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 44 of file FairGenericStack.cxx

Referenced by FairPrimaryGenerator::AddTrack().

+ Here is the caller graph for this function:

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

Reimplemented in PndStack, and CbmStack.

Definition at line 54 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 54 of file FairGenericStack.cxx

void FairGenericStack::Register ( )
virtual

Register the MCTrack array to the Root Manager

Reimplemented in PndStack, and CbmStack.

Definition at line 97 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 97 of file FairGenericStack.cxx

Referenced by FairMCApplication::InitGeometry(), and FairMCApplication::RegisterStack().

+ Here is the caller graph for this function:

void FairGenericStack::Reset ( )
virtual

Resets arrays and stack and deletes particles and tracks

Reimplemented in PndStack, and CbmStack.

Definition at line 92 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 92 of file FairGenericStack.cxx

Referenced by FairMCApplication::FinishEvent().

+ Here is the caller graph for this function:

void FairGenericStack::SetCurrentTrack ( Int_t  iTrack)
virtual

Modifiers

Reimplemented in PndStack, and CbmStack.

Definition at line 107 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 107 of file FairGenericStack.cxx

void FairGenericStack::UpdateTrackIndex ( TRefArray *  detArray)
virtual

Update the track index in the MCTracks and MCPoints

Reimplemented in PndStack, and CbmStack.

Definition at line 86 of file FairGenericStack.cxx.

View newest version in sPHENIX GitHub at line 86 of file FairGenericStack.cxx

Referenced by FairMCApplication::FinishEvent().

+ Here is the caller graph for this function:

Member Data Documentation

FairLogger* FairGenericStack::fLogger
protected

Fair Logger

Definition at line 136 of file FairGenericStack.h.

View newest version in sPHENIX GitHub at line 136 of file FairGenericStack.h

Int_t FairGenericStack::fVerbose
protected

Definition at line 138 of file FairGenericStack.h.

View newest version in sPHENIX GitHub at line 138 of file FairGenericStack.h


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