![]() |
AliRoot Core
3dc7879 (3dc7879)
|
#include <AliStack.h>
Public Member Functions | |
AliStack (Int_t size, const char *name="") | |
AliStack () | |
AliStack (const AliStack &st) | |
virtual | ~AliStack () |
AliStack & | operator= (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 TObjArray * | Particles () const |
void | SetMCEmbeddingFlag (Bool_t v=kTRUE) |
Bool_t | GetMCEmbeddingFlag () const |
Static Public Member Functions | |
static const char * | GetEmbeddingBKGPathsKey () |
static TParticle * | GetDummyParticle () |
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 const Char_t * | fgkEmbedPathsKey = "embeddingBKGPaths" |
Flag that this is a top stack of embedded MC. More... | |
Definition at line 27 of file AliStack.h.
AliStack::AliStack | ( | Int_t | size, |
const char * | name = "" |
||
) |
Definition at line 72 of file AliStack.cxx.
AliStack::AliStack | ( | ) |
Definition at line 50 of file AliStack.cxx.
AliStack::AliStack | ( | const AliStack & | st | ) |
Definition at line 95 of file AliStack.cxx.
|
virtual |
Definition at line 124 of file AliStack.cxx.
void AliStack::Clean | ( | Int_t | size = 0 | ) |
Definition at line 637 of file AliStack.cxx.
Referenced by GetCurrentTrack(), and Reset().
|
protected |
Definition at line 881 of file AliStack.cxx.
Referenced by FinishEvent(), and GetEmbeddingBKGPathsKey().
void AliStack::ConnectTree | ( | TTree * | tree | ) |
Definition at line 935 of file AliStack.cxx.
Referenced by AliMCEvent::ConnectTreeK(), gen(), GetCurrentTrack(), AliRunLoader::GetEvent(), AliRunLoader::LoadKinematics(), AliRunLoader::MakeHeader(), and AliRunLoader::MakeTree().
|
private |
Definition at line 118 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 | ( | ) |
Definition at line 555 of file AliStack.cxx.
Referenced by fastMUONGen(), AliMC::FinishEvent(), gen(), GetCurrentTrack(), and AliSimulation::RunGeneratorOnly().
void AliStack::FlagTrack | ( | Int_t | track | ) |
Definition at line 603 of file AliStack.cxx.
Referenced by AliMC::FlagTrack(), and GetCurrentTrack().
|
virtual |
Definition at line 769 of file AliStack.cxx.
Referenced by GetCurrentTrack().
|
inlinevirtual |
Definition at line 53 of file AliStack.h.
|
inlinevirtual |
Definition at line 143 of file AliStack.h.
Referenced by GetCurrentTrack(), and AliMC::GetCurrentTrackNumber().
|
static |
Definition at line 1171 of file AliStack.cxx.
Referenced by AliMCEvent::GetDummyTrack(), GetEmbeddingBKGPathsKey(), Particle(), and ParticleFromTreeK().
|
inlinestatic |
Definition at line 93 of file AliStack.h.
Referenced by AliMCEventHandler::Init(), AliReconstruction::InitRunLoader(), and AliSimulation::StoreUsedCDBMapsAndEmbPaths().
Bool_t AliStack::GetEvent | ( | ) |
Definition at line 988 of file AliStack.cxx.
Referenced by AliMCEvent::ConnectTreeK(), GetCurrentTrack(), AliRunLoader::GetEvent(), AliRunLoader::LoadKinematics(), and AliRunLoader::MakeHeader().
|
inline |
Definition at line 92 of file AliStack.h.
Referenced by Particle(), ParticleFromTreeK(), and TreeKEntry().
|
protected |
Definition at line 900 of file AliStack.cxx.
Referenced by GetEmbeddingBKGPathsKey(), and PopNextTrack().
|
inline |
Definition at line 137 of file AliStack.h.
Referenced by AliMCGenHandler::BeginEvent(), AliMUONCheck::CheckKine(), fastMUONGen(), AliMC::FinishEvent(), gen(), GetCurrentTrack(), IsPhysicalPrimary(), MUONefficiency(), AliMCEvent::PreReadAll(), AliAnalysisTaskESDfilter::PrintMCInfo(), AliMC::ReorderAndExpandTreeTR(), AliMCEvent::ReorderAndExpandTreeTR(), AliSimulation::RunGeneratorOnly(), TestKinematics(), and AliMCEvent::UpdateEventInformation().
|
inlinevirtual |
Definition at line 134 of file AliStack.h.
Referenced by AliMCGenHandler::BeginEvent(), AliMUONCheck::CheckKine(), AliMUONMCDataInterface::DumpKine(), fastMUONGen(), fastMUONSim(), AliMC::FinishEvent(), gen(), GetCurrentTrack(), AliMC::GetNtrack(), MUONefficiency(), MUONTriggerEfficiencyPt(), AliMUONMCDataInterface::NumberOfParticles(), AliMCEvent::PreReadAll(), AliFMDInput::ProcessStack(), AliMC::ReorderAndExpandTreeTR(), AliMCEvent::ReorderAndExpandTreeTR(), AliSimulation::RunGeneratorOnly(), AliFMDHitDigitizer::SumContributions(), TestESD(), TestESDCaloClusterAndCell(), TestKinematics(), and AliMCEvent::UpdateEventInformation().
|
inline |
Definition at line 140 of file AliStack.h.
Referenced by GetCurrentTrack().
|
inlineprotected |
Definition at line 151 of file AliStack.h.
Referenced by CleanParents(), DumpLoadedStack(), DumpPart(), FinishEvent(), FlagTrack(), GetCurrentParentTrackNumber(), GetEmbeddingBKGPathsKey(), GetNextParticle(), KeepPhysics(), Particle(), PurifyKine(), PushTrack(), and ReorderKine().
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 |
||
) |
Definition at line 1047 of file AliStack.cxx.
Referenced by AliMCParticle::IsPhysicalPrimary(), AliMCEvent::IsPhysicalPrimary(), IsSecondaryFromMaterial(), IsSecondaryFromWeakDecay(), DrawHits::ProcessHit(), AliFMDHitDigitizer::SumContributions(), and TreeK().
Bool_t AliStack::IsSecondaryFromMaterial | ( | Int_t | index, |
Bool_t | useInEmbedding = kFALSE |
||
) |
Definition at line 1156 of file AliStack.cxx.
Referenced by AliMCParticle::IsSecondaryFromMaterial(), AliMCEvent::IsSecondaryFromMaterial(), and TreeK().
Bool_t AliStack::IsSecondaryFromWeakDecay | ( | Int_t | index, |
Bool_t | useInEmbedding = kFALSE |
||
) |
Hypernuclei case
Number of lambdas in the hypernucleus != 0
Definition at line 1125 of file AliStack.cxx.
Referenced by IsSecondaryFromMaterial(), AliMCParticle::IsSecondaryFromWeakDecay(), AliMCEvent::IsSecondaryFromWeakDecay(), and TreeK().
|
protected |
Definition at line 1000 of file AliStack.cxx.
Referenced by GetEmbeddingBKGPathsKey(), and IsPhysicalPrimary().
|
protected |
Definition at line 499 of file AliStack.cxx.
Referenced by GetEmbeddingBKGPathsKey(), and PurifyKine().
void AliStack::KeepTrack | ( | Int_t | itrack | ) |
Definition at line 627 of file AliStack.cxx.
Referenced by GetCurrentTrack(), AliMC::KeepTrack(), AliGenerator::KeepTrack(), and PurifyKine().
Definition at line 35 of file AliStack.h.
TParticle * AliStack::Particle | ( | Int_t | id, |
Bool_t | useInEmbedding = kFALSE |
||
) |
Definition at line 689 of file AliStack.cxx.
Referenced by AliMUONCheck::CheckKine(), DecodeRecoCocktail(), AliMCEvent::DrawCheck(), AliMUONMCDataInterface::DumpKine(), DumpPStack(), fastMUONSim(), AliMUONTrackLight::FillMuonHistory(), GetCurrentTrack(), AliMCEvent::GetParticleAndTR(), GetPrimary(), AliMCEvent::GetTrack(), GoodTracksTPC(), AliMuonForwardTrackFinder::IsMother(), IsPhysicalPrimary(), IsSecondaryFromMaterial(), IsSecondaryFromWeakDecay(), AliMuonForwardTrackFinder::LoadNextTrack(), MUONefficiency(), MUONTriggerEfficiencyPt(), AliMUONMCDataInterface::Particle(), AliMC::Particle(), AliMCEvent::ParticleFromStack(), PopPrimaryForTracking(), AliAnalysisTaskESDfilter::PrintMCInfo(), AliMuonForwardTrackFinder::PrintParticleHistory(), DrawHitsRecs::ProcessHit(), AliFMDInput::ProcessHits(), AliFMDInput::ProcessStack(), AliFMDInput::ProcessTrackRefs(), AliFMDInput::ProcessTracks(), AliMC::ReorderAndExpandTreeTR(), AliMCEvent::ReorderAndExpandTreeTR(), SetCurrentTrack(), AliFMDHitDigitizer::SumContributions(), TestEMCALRecPoint(), TestESD(), TestESDCaloClusterAndCell(), and TestKinematics().
TParticle * AliStack::ParticleFromTreeK | ( | Int_t | id, |
Bool_t | useInEmbedding = kFALSE |
||
) | const |
Definition at line 723 of file AliStack.cxx.
Referenced by TreeK(), and TPCFindGenTracks::TreeKLoop().
|
inline |
Definition at line 146 of file AliStack.h.
Referenced by AliMC::Particles(), and TrackLabelMap().
|
virtual |
Definition at line 265 of file AliStack.cxx.
Referenced by operator=().
|
virtual |
Definition at line 286 of file AliStack.cxx.
Referenced by GetCurrentTrack().
Bool_t AliStack::PurifyKine | ( | Float_t | rmax = -1. , |
Float_t | zmax = -1. |
||
) |
Definition at line 304 of file AliStack.cxx.
Referenced by AliMC::FinishPrimary(), and GetCurrentTrack().
|
virtual |
Definition at line 138 of file AliStack.cxx.
Referenced by operator=(), AliMC::PushTrack(), and AliGenerator::PushTrack().
|
virtual |
Definition at line 186 of file AliStack.cxx.
Bool_t AliStack::ReorderKine | ( | ) |
Definition at line 398 of file AliStack.cxx.
Referenced by AliMC::FinishPrimary(), and GetCurrentTrack().
void AliStack::Reset | ( | Int_t | size = 0 | ) |
Definition at line 653 of file AliStack.cxx.
Referenced by AliMC::BeginEvent(), fastMUONGen(), fastMUONSim(), AliMCGenHandler::FinishEvent(), AliMCEvent::FinishEvent(), gen(), GetCurrentTrack(), and AliSimulation::RunGeneratorOnly().
|
protected |
Definition at line 665 of file AliStack.cxx.
Referenced by Clean(), GetEmbeddingBKGPathsKey(), and GetEvent().
|
virtual |
Definition at line 868 of file AliStack.cxx.
Referenced by GetCurrentTrack(), and AliMC::SetCurrentTrack().
void AliStack::SetHighWaterMark | ( | Int_t | hgwmk | ) |
Definition at line 676 of file AliStack.cxx.
Referenced by GetCurrentTrack(), AliMC::SetHighWaterMark(), and AliGenerator::SetHighWaterMark().
|
inline |
Definition at line 91 of file AliStack.h.
Referenced by AliMCEvent::AddSubsidiaryEvent().
|
inline |
Definition at line 131 of file AliStack.h.
Referenced by GetCurrentTrack().
|
inline |
Definition at line 87 of file AliStack.h.
Referenced by AliMC::RemapHits().
|
inline |
Definition at line 88 of file AliStack.h.
Referenced by AliMC::RemapHits().
|
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 |
Definition at line 739 of file AliStack.cxx.
Referenced by AliMCEvent::DrawCheck(), AliMCEvent::GetParticleAndTR(), AliMCEvent::GetTrack(), Particle(), ParticleFromTreeK(), and TreeK().
|
private |
Definition at line 117 of file AliStack.h.
Referenced by Clean(), GetCurrentParentTrackNumber(), GetCurrentTrackNumber(), GetNextParticle(), PopNextTrack(), and SetCurrentTrack().
|
private |
Last track returned from the stack.
Definition at line 118 of file AliStack.h.
Referenced by GetNextParticle(), PushTrack(), and SetHighWaterMark().
|
private |
Pointer to current particle for writing.
Definition at line 112 of file AliStack.h.
Referenced by GetCurrentTrack(), PopNextTrack(), PopPrimaryForTracking(), and SetCurrentTrack().
|
staticprivate |
Flag that this is a top stack of embedded MC.
Definition at line 124 of file AliStack.h.
Referenced by GetEmbeddingBKGPathsKey().
|
private |
Last primary track returned from the stack.
Definition at line 119 of file AliStack.h.
Referenced by Clean(), CleanParents(), FinishEvent(), GetNextParticle(), KeepPhysics(), PurifyKine(), PushTrack(), ReorderKine(), and SetHighWaterMark().
|
private |
Last track purified.
Definition at line 120 of file AliStack.h.
Referenced by Clean(), PurifyKine(), and PushTrack().
|
private |
Map of track labels.
Definition at line 122 of file AliStack.h.
Referenced by GetMCEmbeddingFlag(), and SetMCEmbeddingFlag().
|
private |
Definition at line 115 of file AliStack.h.
Referenced by Clean(), GetNprimary(), PushTrack(), SetCurrentTrack(), SetHighWaterMark(), and TreeKEntry().
|
private |
Particle stack.
Definition at line 114 of file AliStack.h.
Referenced by Clean(), DumpLoadedStack(), DumpPStack(), FinishEvent(), GetNextParticle(), GetNtrack(), PurifyKine(), PushTrack(), ReorderKine(), SetHighWaterMark(), SetNtrack(), and TreeKEntry().
|
private |
Definition at line 116 of file AliStack.h.
Referenced by Clean(), FinishEvent(), GetNtransported(), and PushTrack().
|
private |
Definition at line 111 of file AliStack.h.
Referenced by ConnectTree(), FinishEvent(), Particle(), ParticleFromTreeK(), PurifyKine(), and Reset().
|
private |
Map of particles in the supporting TClonesArray.
Definition at line 110 of file AliStack.h.
Referenced by FinishEvent(), Particle(), and PurifyKine().
|
private |
Pointer to list of particles.
Definition at line 109 of file AliStack.h.
Referenced by FinishEvent(), GetParticleMapEntry(), KeepTrack(), Particle(), Particles(), PurifyKine(), PushTrack(), ReorderKine(), and ResetArrays().
|
private |
Definition at line 108 of file AliStack.h.
Referenced by Particle(), PurifyKine(), PushTrack(), ResetArrays(), and ~AliStack().
|
private |
Next free position in the particle buffer.
Definition at line 121 of file AliStack.h.
Referenced by PurifyKine(), ReorderKine(), TrackLabel(), and TrackLabelMap().
|
private |
Pointer to particle currently transported.
Definition at line 113 of file AliStack.h.
Referenced by ConnectTree(), ParticleFromTreeK(), Reset(), and TreeK().