AliRoot Core  edcc906 (edcc906)
AliStack Class Reference

#include <AliStack.h>

Inheritance diagram for AliStack:

Public Member Functions

 AliStack (Int_t size, const char *name="")
 
 AliStack ()
 
 AliStack (const AliStack &st)
 
virtual ~AliStack ()
 
AliStackoperator= (const AliStack &st)
 
virtual void PushTrack (Int_t done, Int_t parent, Int_t pdg, const Float_t *pmom, const Float_t *vpos, const Float_t *polar, Float_t tof, TMCProcess mech, Int_t &ntr, Float_t weight, Int_t is)
 
virtual void PushTrack (Int_t done, Int_t parent, Int_t pdg, Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vx, Double_t vy, Double_t vz, Double_t tof, Double_t polx, Double_t poly, Double_t polz, TMCProcess mech, Int_t &ntr, Double_t weight, Int_t is)
 
virtual TParticle * PopNextTrack (Int_t &track)
 
virtual TParticle * GetCurrentTrack () const
 
virtual TParticle * PopPrimaryForTracking (Int_t i)
 
void ConnectTree (TTree *tree)
 
Bool_t GetEvent ()
 
Bool_t PurifyKine (Float_t rmax=-1., Float_t zmax=-1.)
 
Bool_t ReorderKine ()
 
void FinishEvent ()
 
void FlagTrack (Int_t track)
 
void KeepTrack (Int_t itrack)
 
void Clean (Int_t size=0)
 
void Reset (Int_t size=0)
 
void DumpPart (Int_t i) const
 
void DumpPStack ()
 
void DumpLoadedStack () const
 
void SetNtrack (Int_t ntrack)
 
virtual void SetCurrentTrack (Int_t track)
 
void SetHighWaterMark (Int_t hgwmk)
 
virtual Int_t GetNtrack () const
 
Int_t GetNprimary () const
 
Int_t GetNtransported () const
 
virtual Int_t GetCurrentTrackNumber () const
 
virtual Int_t GetCurrentParentTrackNumber () const
 
TParticle * Particle (Int_t id, Bool_t useInEmbedding=kFALSE)
 
Int_t GetPrimary (Int_t id, Bool_t useInEmbedding=kFALSE)
 
TTree * TreeK () const
 
TParticle * ParticleFromTreeK (Int_t id, Bool_t useInEmbedding=kFALSE) const
 
Int_t TreeKEntry (Int_t id, Bool_t useInEmbedding=kFALSE) const
 
Bool_t IsPhysicalPrimary (Int_t i, Bool_t useInEmbedding=kFALSE)
 
Bool_t IsSecondaryFromWeakDecay (Int_t index, Bool_t useInEmbedding=kFALSE)
 
Bool_t IsSecondaryFromMaterial (Int_t index, Bool_t useInEmbedding=kFALSE)
 
Int_t TrackLabel (Int_t label) const
 
Int_t * TrackLabelMap ()
 
const TObjArrayParticles () const
 
void SetMCEmbeddingFlag (Bool_t v=kTRUE)
 
Bool_t GetMCEmbeddingFlag () const
 

Static Public Member Functions

static const char * GetEmbeddingBKGPathsKey ()
 

Protected Member Functions

void CleanParents ()
 
void ResetArrays (Int_t size)
 
TParticle * GetParticleMapEntry (Int_t id) const
 
TParticle * GetNextParticle ()
 
Bool_t KeepPhysics (const TParticle *part, Float_t rmax=-1, Float_t zmax=-1.)
 
Bool_t IsStable (Int_t pdg) const
 

Private Member Functions

void Copy (TObject &st) const
 

Private Attributes

TClonesArray fParticles
 
TObjArray fParticleMap
 Pointer to list of particles. More...
 
TArrayI fParticleFileMap
 Map of particles in the supporting TClonesArray. More...
 
TParticle * fParticleBuffer
 
TParticle * fCurrentTrack
 Pointer to current particle for writing. More...
 
TTree * fTreeK
 Pointer to particle currently transported. More...
 
Int_t fNtrack
 Particle stack. More...
 
Int_t fNprimary
 
Int_t fNtransported
 
Int_t fCurrent
 
Int_t fCurrentPrimary
 Last track returned from the stack. More...
 
Int_t fHgwmk
 Last primary track returned from the stack. More...
 
Int_t fLoadPoint
 Last track purified. More...
 
TArrayI fTrackLabelMap
 Next free position in the particle buffer. More...
 
Bool_t fMCEmbeddingFlag
 Map of track labels. More...
 

Static Private Attributes

static TParticle * fgDummyParticle = 0
 Flag that this is a top stack of embedded MC. More...
 
static const Char_t * fgkEmbedPathsKey = "embeddingBKGPaths"
 

Detailed Description

Definition at line 27 of file AliStack.h.

Constructor & Destructor Documentation

AliStack::AliStack ( Int_t  size,
const char *  name = "" 
)

Definition at line 71 of file AliStack.cxx.

AliStack::AliStack ( )

Definition at line 49 of file AliStack.cxx.

AliStack::AliStack ( const AliStack st)

Definition at line 94 of file AliStack.cxx.

AliStack::~AliStack ( )
virtual

Definition at line 123 of file AliStack.cxx.

Member Function Documentation

void AliStack::Clean ( Int_t  size = 0)

Definition at line 636 of file AliStack.cxx.

Referenced by GetCurrentTrack(), and Reset().

void AliStack::CleanParents ( )
protected

Definition at line 881 of file AliStack.cxx.

Referenced by FinishEvent(), and GetEmbeddingBKGPathsKey().

void AliStack::Copy ( TObject &  st) const
private

Definition at line 117 of file AliStack.cxx.

Referenced by GetEmbeddingBKGPathsKey(), and operator=().

void AliStack::DumpLoadedStack ( ) const

Definition at line 842 of file AliStack.cxx.

Referenced by GetCurrentTrack().

void AliStack::DumpPart ( Int_t  i) const

Definition at line 803 of file AliStack.cxx.

Referenced by AliMC::DumpPart(), and GetCurrentTrack().

void AliStack::DumpPStack ( )

Definition at line 812 of file AliStack.cxx.

Referenced by AliMC::DumpPStack(), GetCurrentTrack(), and MUONefficiency().

void AliStack::FinishEvent ( )
void AliStack::FlagTrack ( Int_t  track)

Definition at line 602 of file AliStack.cxx.

Referenced by AliMC::FlagTrack(), and GetCurrentTrack().

Int_t AliStack::GetCurrentParentTrackNumber ( ) const
virtual

Definition at line 769 of file AliStack.cxx.

Referenced by GetCurrentTrack().

virtual TParticle* AliStack::GetCurrentTrack ( ) const
inlinevirtual

Definition at line 53 of file AliStack.h.

Int_t AliStack::GetCurrentTrackNumber ( ) const
inlinevirtual

Definition at line 143 of file AliStack.h.

Referenced by GetCurrentTrack(), and AliMC::GetCurrentTrackNumber().

static const char* AliStack::GetEmbeddingBKGPathsKey ( )
inlinestatic
Bool_t AliStack::GetMCEmbeddingFlag ( ) const
inline

Definition at line 92 of file AliStack.h.

Referenced by Particle(), ParticleFromTreeK(), and TreeKEntry().

TParticle * AliStack::GetNextParticle ( )
protected

Definition at line 900 of file AliStack.cxx.

Referenced by GetEmbeddingBKGPathsKey(), and PopNextTrack().

Int_t AliStack::GetNtransported ( ) const
inline

Definition at line 140 of file AliStack.h.

Referenced by GetCurrentTrack().

TParticle * AliStack::GetParticleMapEntry ( Int_t  id) const
inlineprotected
Int_t AliStack::GetPrimary ( Int_t  id,
Bool_t  useInEmbedding = kFALSE 
)

Definition at line 786 of file AliStack.cxx.

Referenced by GetCurrentTrack(), and AliMC::GetPrimary().

Bool_t AliStack::IsPhysicalPrimary ( Int_t  i,
Bool_t  useInEmbedding = kFALSE 
)
Bool_t AliStack::IsSecondaryFromMaterial ( Int_t  index,
Bool_t  useInEmbedding = kFALSE 
)
Bool_t AliStack::IsSecondaryFromWeakDecay ( Int_t  index,
Bool_t  useInEmbedding = kFALSE 
)

Hypernuclei case

Number of lambdas in the hypernucleus != 0

Definition at line 1124 of file AliStack.cxx.

Referenced by IsSecondaryFromMaterial(), AliMCParticle::IsSecondaryFromWeakDecay(), AliMCEvent::IsSecondaryFromWeakDecay(), and TreeK().

Bool_t AliStack::IsStable ( Int_t  pdg) const
protected

Definition at line 1000 of file AliStack.cxx.

Referenced by GetEmbeddingBKGPathsKey(), and IsPhysicalPrimary().

Bool_t AliStack::KeepPhysics ( const TParticle *  part,
Float_t  rmax = -1,
Float_t  zmax = -1. 
)
protected

Definition at line 498 of file AliStack.cxx.

Referenced by GetEmbeddingBKGPathsKey(), and PurifyKine().

void AliStack::KeepTrack ( Int_t  itrack)
AliStack& AliStack::operator= ( const AliStack st)
inline

Definition at line 35 of file AliStack.h.

TParticle * AliStack::ParticleFromTreeK ( Int_t  id,
Bool_t  useInEmbedding = kFALSE 
) const

Definition at line 722 of file AliStack.cxx.

Referenced by TreeK(), and TPCFindGenTracks::TreeKLoop().

const TObjArray * AliStack::Particles ( ) const
inline

Definition at line 146 of file AliStack.h.

Referenced by AliMC::Particles(), and TrackLabelMap().

TParticle * AliStack::PopNextTrack ( Int_t &  track)
virtual

Definition at line 264 of file AliStack.cxx.

Referenced by operator=().

TParticle * AliStack::PopPrimaryForTracking ( Int_t  i)
virtual

Definition at line 285 of file AliStack.cxx.

Referenced by GetCurrentTrack().

Bool_t AliStack::PurifyKine ( Float_t  rmax = -1.,
Float_t  zmax = -1. 
)

Definition at line 303 of file AliStack.cxx.

Referenced by AliMC::FinishPrimary(), and GetCurrentTrack().

void AliStack::PushTrack ( Int_t  done,
Int_t  parent,
Int_t  pdg,
const Float_t *  pmom,
const Float_t *  vpos,
const Float_t *  polar,
Float_t  tof,
TMCProcess  mech,
Int_t &  ntr,
Float_t  weight,
Int_t  is 
)
virtual

Definition at line 137 of file AliStack.cxx.

Referenced by operator=(), AliMC::PushTrack(), and AliGenerator::PushTrack().

void AliStack::PushTrack ( Int_t  done,
Int_t  parent,
Int_t  pdg,
Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  e,
Double_t  vx,
Double_t  vy,
Double_t  vz,
Double_t  tof,
Double_t  polx,
Double_t  poly,
Double_t  polz,
TMCProcess  mech,
Int_t &  ntr,
Double_t  weight,
Int_t  is 
)
virtual

Definition at line 185 of file AliStack.cxx.

Bool_t AliStack::ReorderKine ( )

Definition at line 397 of file AliStack.cxx.

Referenced by AliMC::FinishPrimary(), and GetCurrentTrack().

void AliStack::ResetArrays ( Int_t  size)
protected

Definition at line 664 of file AliStack.cxx.

Referenced by Clean(), GetEmbeddingBKGPathsKey(), and GetEvent().

void AliStack::SetCurrentTrack ( Int_t  track)
virtual

Definition at line 868 of file AliStack.cxx.

Referenced by GetCurrentTrack(), and AliMC::SetCurrentTrack().

void AliStack::SetHighWaterMark ( Int_t  hgwmk)
void AliStack::SetMCEmbeddingFlag ( Bool_t  v = kTRUE)
inline

Definition at line 91 of file AliStack.h.

Referenced by AliMCEvent::AddSubsidiaryEvent().

void AliStack::SetNtrack ( Int_t  ntrack)
inline

Definition at line 131 of file AliStack.h.

Referenced by GetCurrentTrack().

Int_t AliStack::TrackLabel ( Int_t  label) const
inline

Definition at line 87 of file AliStack.h.

Referenced by AliMC::RemapHits().

Int_t* AliStack::TrackLabelMap ( )
inline

Definition at line 88 of file AliStack.h.

Referenced by AliMC::RemapHits().

TTree* AliStack::TreeK ( ) const
inline

Definition at line 81 of file AliStack.h.

Referenced by ConnectTree(), FinishEvent(), GetEvent(), Particle(), and PurifyKine().

Int_t AliStack::TreeKEntry ( Int_t  id,
Bool_t  useInEmbedding = kFALSE 
) const

Member Data Documentation

Int_t AliStack::fCurrent
private
Int_t AliStack::fCurrentPrimary
private

Last track returned from the stack.

Definition at line 117 of file AliStack.h.

Referenced by GetNextParticle(), PushTrack(), and SetHighWaterMark().

TParticle* AliStack::fCurrentTrack
private

Pointer to current particle for writing.

Definition at line 111 of file AliStack.h.

Referenced by GetCurrentTrack(), PopNextTrack(), PopPrimaryForTracking(), and SetCurrentTrack().

TParticle * AliStack::fgDummyParticle = 0
staticprivate

Flag that this is a top stack of embedded MC.

Definition at line 123 of file AliStack.h.

Referenced by Particle(), and ParticleFromTreeK().

const Char_t * AliStack::fgkEmbedPathsKey = "embeddingBKGPaths"
staticprivate

Definition at line 124 of file AliStack.h.

Referenced by GetEmbeddingBKGPathsKey().

Int_t AliStack::fHgwmk
private

Last primary track returned from the stack.

Definition at line 118 of file AliStack.h.

Referenced by Clean(), CleanParents(), FinishEvent(), GetNextParticle(), KeepPhysics(), PurifyKine(), PushTrack(), ReorderKine(), and SetHighWaterMark().

Int_t AliStack::fLoadPoint
private

Last track purified.

Definition at line 119 of file AliStack.h.

Referenced by Clean(), PurifyKine(), and PushTrack().

Bool_t AliStack::fMCEmbeddingFlag
private

Map of track labels.

Definition at line 121 of file AliStack.h.

Referenced by GetMCEmbeddingFlag(), and SetMCEmbeddingFlag().

Int_t AliStack::fNprimary
private

Definition at line 114 of file AliStack.h.

Referenced by Clean(), GetNprimary(), PushTrack(), SetCurrentTrack(), SetHighWaterMark(), and TreeKEntry().

Int_t AliStack::fNtrack
private
Int_t AliStack::fNtransported
private

Definition at line 115 of file AliStack.h.

Referenced by Clean(), FinishEvent(), GetNtransported(), and PushTrack().

TParticle* AliStack::fParticleBuffer
private

Definition at line 110 of file AliStack.h.

Referenced by ConnectTree(), FinishEvent(), Particle(), ParticleFromTreeK(), PurifyKine(), and Reset().

TArrayI AliStack::fParticleFileMap
private

Map of particles in the supporting TClonesArray.

Definition at line 109 of file AliStack.h.

Referenced by FinishEvent(), Particle(), and PurifyKine().

TObjArray AliStack::fParticleMap
private

Pointer to list of particles.

Definition at line 108 of file AliStack.h.

Referenced by FinishEvent(), GetParticleMapEntry(), KeepTrack(), Particle(), Particles(), PurifyKine(), PushTrack(), ReorderKine(), and ResetArrays().

TClonesArray AliStack::fParticles
private

Definition at line 107 of file AliStack.h.

Referenced by Particle(), PurifyKine(), PushTrack(), ResetArrays(), and ~AliStack().

TArrayI AliStack::fTrackLabelMap
private

Next free position in the particle buffer.

Definition at line 120 of file AliStack.h.

Referenced by PurifyKine(), ReorderKine(), TrackLabel(), and TrackLabelMap().

TTree* AliStack::fTreeK
private

Pointer to particle currently transported.

Definition at line 112 of file AliStack.h.

Referenced by ConnectTree(), ParticleFromTreeK(), Reset(), and TreeK().


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