AliRoot Core  3dc7879 (3dc7879)
AliMC Class Reference

#include <AliMC.h>

Inheritance diagram for AliMC:

Public Member Functions

 AliMC ()
 
 AliMC (const char *name, const char *title)
 
virtual ~AliMC ()
 
virtual void ConstructGeometry ()
 
virtual Bool_t MisalignGeometry ()
 
virtual void ConstructOpGeometry ()
 
virtual void AddParticles ()
 
virtual void InitGeometry ()
 
virtual void SetAllAlignableVolumes ()
 
virtual void GeneratePrimaries ()
 
virtual void BeginEvent ()
 
virtual void BeginPrimary ()
 
virtual void PreTrack ()
 
virtual void Stepping ()
 
virtual void PostTrack ()
 
virtual void FinishPrimary ()
 
virtual void FinishEvent ()
 
virtual Double_t TrackingZmax () const
 
virtual Double_t TrackingRmax () const
 
virtual Int_t DetFromMate (Int_t i) const
 
virtual AliGeneratorGenerator () const
 
virtual void SetGenerator (AliGenerator *generator)
 
virtual void ResetGenerator (AliGenerator *generator)
 
virtual void ReadTransPar ()
 
virtual void MediaTable ()
 
virtual void EnergySummary ()
 
virtual void FinishRun ()
 
void AddEnergyDeposit (Int_t id, Float_t edep)
 
virtual void ResetHits ()
 
virtual void ResetDigits ()
 
virtual void ResetSDigits ()
 
virtual void TrackingLimits (Float_t rmax=1.e10, Float_t zmax=1.e10)
 
virtual void DecayLimits (Float_t rmin=-1., Float_t rmax=-1., Int_t pdg=0)
 
virtual void PurifyLimits (Float_t rmax=-1., Float_t zmax=-1.)
 
virtual void Init ()
 
virtual void SetTransPar (const char *filename="$(ALICE_ROOT)/data/galice.cuts")
 
virtual void AddHit (Int_t id, Int_t track, Int_t *vol, Float_t *hits) const
 
virtual void AddDigit (Int_t id, Int_t *tracks, Int_t *digits) const
 
virtual void AddHitList (TCollection *hitList)
 
Int_t GetCurrentTrackNumber () const
 
virtual void DumpPart (Int_t i) const
 
virtual void DumpPStack () const
 
TList * GetHitLists () const
 
Int_t GetNtrack () const
 
virtual Int_t GetPrimary (Int_t track) const
 
const TObjArrayParticles () const
 
TParticle * Particle (Int_t i) const
 
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=1, Int_t is=0) const
 
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, Float_t weight=1, Int_t is=0) const
 
virtual void SetHighWaterMark (Int_t nt) const
 
virtual void KeepTrack (Int_t itra) const
 
virtual void FlagTrack (Int_t track) const
 
virtual void SetCurrentTrack (Int_t track) const
 
AliTrackReferenceAddTrackReference (Int_t label, Int_t id=-999)
 
virtual void RemapTrackReferencesIDs (const Int_t *map)
 
virtual void ResetTrackReferences ()
 
virtual void FixParticleDecaytime ()
 
void SetGeometryFromCDB ()
 
Bool_t IsGeometryFromCDB () const
 
void SetUseMonitoring (Bool_t flag=kTRUE)
 
AliTransportMonitorGetTransportMonitor () const
 
void SetSaveRndmStatus (Bool_t value)
 
void SetSaveRndmStatusPerEvent (Bool_t value)
 
void SetReadRndmStatus (Bool_t value)
 
void SetRndmFileName (const TString &fileName)
 

Private Member Functions

 AliMC (const AliMC &)
 
AliMCoperator= (const AliMC &)
 
void MakeTmpTrackRefsTree ()
 
void ReorderAndExpandTreeTR ()
 
void CacheVMCInstance ()
 
void RemapHits ()
 

Private Attributes

TVirtualMC * fMC
 
AliGeneratorfGenerator
 cached MC instance (to avoid calls to thread_local gMC=TVirtualMC::GetMC()) More...
 
Bool_t fSaveRndmStatus
 
Bool_t fSaveRndmEventStatus
 Options to save random engine status. More...
 
Bool_t fReadRndmStatus
 Options to save random engine status for each event. More...
 
Bool_t fUseMonitoring
 Options to read random engine status. More...
 
TString fRndmFileName
 Activate monitoring. More...
 
TArrayF fEventEnergy
 The file name of random engine status to be read in. More...
 
TArrayF fSummEnergy
 Energy deposit for current event. More...
 
TArrayF fSum2Energy
 Energy per event in each volume. More...
 
Float_t fTrRmax
 Energy squared per event in each volume. More...
 
Float_t fTrZmax
 
Float_t fPuRmax
 
Float_t fPuZmax
 
Float_t fRDecayMax
 
Float_t fRDecayMin
 
Int_t fDecayPdg
 
TArrayI * fImedia
 
TString fTransParName
 Array of correspondence between media and detectors. More...
 
AliTransportMonitorfMonitor
 
TList * fHitLists
 Transport monitoring tool. More...
 
TTree * fTmpTreeTR
 Lists of hits to be remapped by PurifyKine. More...
 
TFile * fTmpFileTR
 Temporary track reference tree. More...
 
TClonesArray fTrackReferences
 Temporary track reference file. More...
 
TClonesArray fTmpTrackReferences
 List of track references - for one primary track only. More...
 

Detailed Description

Definition at line 30 of file AliMC.h.

Constructor & Destructor Documentation

AliMC::AliMC ( )

Definition at line 65 of file AliMC.cxx.

Referenced by SetRndmFileName().

AliMC::AliMC ( const char *  name,
const char *  title 
)

Definition at line 98 of file AliMC.cxx.

AliMC::~AliMC ( )
virtual

Definition at line 135 of file AliMC.cxx.

AliMC::AliMC ( const AliMC )
private

Member Function Documentation

void AliMC::AddDigit ( Int_t  id,
Int_t *  tracks,
Int_t *  digits 
) const
virtual

Definition at line 1836 of file AliMC.cxx.

Referenced by PurifyLimits().

void AliMC::AddEnergyDeposit ( Int_t  id,
Float_t  edep 
)
inline

Definition at line 67 of file AliMC.h.

Referenced by Stepping().

void AliMC::AddHit ( Int_t  id,
Int_t  track,
Int_t *  vol,
Float_t *  hits 
) const
virtual

Definition at line 1826 of file AliMC.cxx.

Referenced by PurifyLimits().

virtual void AliMC::AddHitList ( TCollection *  hitList)
inlinevirtual

Definition at line 83 of file AliMC.h.

Referenced by AliEMCALv2::AliEMCALv2(), AliFMD::HitsArray(), and AliMUON::MakeBranch().

void AliMC::AddParticles ( )
virtual

Definition at line 252 of file AliMC.cxx.

AliTrackReference * AliMC::AddTrackReference ( Int_t  label,
Int_t  id = -999 
)

Definition at line 2001 of file AliMC.cxx.

Referenced by AliModule::AddTrackReference(), GetHitLists(), and Stepping().

void AliMC::BeginEvent ( )
virtual

Definition at line 1328 of file AliMC.cxx.

Referenced by MakeFakeHits().

void AliMC::BeginPrimary ( )
virtual

Definition at line 1169 of file AliMC.cxx.

Referenced by MakeFakeHits().

void AliMC::CacheVMCInstance ( )
private

Definition at line 146 of file AliMC.cxx.

Referenced by Init(), and SetRndmFileName().

void AliMC::ConstructGeometry ( )
virtual

Definition at line 165 of file AliMC.cxx.

void AliMC::ConstructOpGeometry ( )
virtual

Definition at line 233 of file AliMC.cxx.

virtual void AliMC::DecayLimits ( Float_t  rmin = -1.,
Float_t  rmax = -1.,
Int_t  pdg = 0 
)
inlinevirtual

Definition at line 74 of file AliMC.h.

Referenced by AliMC().

virtual Int_t AliMC::DetFromMate ( Int_t  i) const
inlinevirtual

Definition at line 55 of file AliMC.h.

Referenced by Stepping().

void AliMC::DumpPart ( Int_t  i) const
virtual

Definition at line 1854 of file AliMC.cxx.

Referenced by AddHitList().

void AliMC::DumpPStack ( ) const
virtual

Definition at line 1865 of file AliMC.cxx.

Referenced by AddHitList().

void AliMC::EnergySummary ( )
virtual

Definition at line 1262 of file AliMC.cxx.

Referenced by FinishRun(), and Generator().

void AliMC::FinishEvent ( )
virtual

Definition at line 1553 of file AliMC.cxx.

Referenced by MakeFakeHits().

void AliMC::FinishPrimary ( )
virtual

Definition at line 1484 of file AliMC.cxx.

Referenced by MakeFakeHits().

void AliMC::FinishRun ( )
virtual

Definition at line 1151 of file AliMC.cxx.

Referenced by AliSimulation::FinishRun(), and Generator().

void AliMC::FixParticleDecaytime ( )
virtual

Definition at line 2047 of file AliMC.cxx.

Referenced by GetHitLists(), and Stepping().

void AliMC::FlagTrack ( Int_t  track) const
virtual

Definition at line 1978 of file AliMC.cxx.

Referenced by AliHit::AliHit(), and GetHitLists().

void AliMC::GeneratePrimaries ( )
virtual

Definition at line 1113 of file AliMC.cxx.

TList* AliMC::GetHitLists ( ) const
inline

Definition at line 87 of file AliMC.h.

Referenced by AliFMD::HitsArray(), AliMUON::MakeBranch(), and RemapHits().

Int_t AliMC::GetNtrack ( ) const

Definition at line 1876 of file AliMC.cxx.

Referenced by GetHitLists().

Int_t AliMC::GetPrimary ( Int_t  track) const
virtual
AliTransportMonitor* AliMC::GetTransportMonitor ( ) const
inline

Definition at line 118 of file AliMC.h.

void AliMC::InitGeometry ( )
virtual

Definition at line 1060 of file AliMC.cxx.

Bool_t AliMC::IsGeometryFromCDB ( ) const

Definition at line 1091 of file AliMC.cxx.

Referenced by ConstructGeometry(), and GetHitLists().

void AliMC::KeepTrack ( Int_t  itra) const
virtual

Definition at line 1966 of file AliMC.cxx.

Referenced by GetHitLists(), and AliGenerator::KeepTrack().

void AliMC::MakeTmpTrackRefsTree ( )
private

Definition at line 2096 of file AliMC.cxx.

Referenced by BeginEvent(), and SetRndmFileName().

void AliMC::MediaTable ( )
virtual

Definition at line 1656 of file AliMC.cxx.

Referenced by Generator(), and Init().

Bool_t AliMC::MisalignGeometry ( )
virtual

Definition at line 215 of file AliMC.cxx.

AliMC& AliMC::operator= ( const AliMC )
private

Referenced by SetRndmFileName().

TParticle * AliMC::Particle ( Int_t  i) const
const TObjArray * AliMC::Particles ( ) const

Definition at line 1913 of file AliMC.cxx.

Referenced by GetHitLists().

void AliMC::PostTrack ( )
virtual

Definition at line 1471 of file AliMC.cxx.

void AliMC::PreTrack ( )
virtual

Definition at line 1181 of file AliMC.cxx.

virtual void AliMC::PurifyLimits ( Float_t  rmax = -1.,
Float_t  zmax = -1. 
)
inlinevirtual

Definition at line 76 of file AliMC.h.

void AliMC::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 = 1,
Int_t  is = 0 
) const
virtual
void AliMC::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,
Float_t  weight = 1,
Int_t  is = 0 
) const
virtual

Definition at line 1939 of file AliMC.cxx.

void AliMC::ReadTransPar ( )
virtual

Definition at line 1718 of file AliMC.cxx.

Referenced by Generator(), and Init().

void AliMC::RemapHits ( )
private

Definition at line 1517 of file AliMC.cxx.

Referenced by FinishPrimary(), and SetRndmFileName().

void AliMC::RemapTrackReferencesIDs ( const Int_t *  map)
virtual

Definition at line 2024 of file AliMC.cxx.

Referenced by GetHitLists(), and RemapHits().

void AliMC::ReorderAndExpandTreeTR ( )
private

Definition at line 2106 of file AliMC.cxx.

Referenced by FinishEvent(), and SetRndmFileName().

void AliMC::ResetDigits ( )
virtual

Definition at line 1445 of file AliMC.cxx.

Referenced by AddEnergyDeposit(), and AliRun::GetEvent().

void AliMC::ResetGenerator ( AliGenerator generator)
virtual

Definition at line 1132 of file AliMC.cxx.

Referenced by Generator(), and AliSimulation::RunLego().

void AliMC::ResetHits ( )
virtual
void AliMC::ResetSDigits ( )
virtual

Definition at line 1458 of file AliMC.cxx.

Referenced by AddEnergyDeposit(), and AliRun::GetEvent().

void AliMC::ResetTrackReferences ( )
virtual

Definition at line 2015 of file AliMC.cxx.

Referenced by BeginPrimary(), AliRun::GetEvent(), and GetHitLists().

void AliMC::SetAllAlignableVolumes ( )
virtual

Definition at line 1097 of file AliMC.cxx.

Referenced by Init(), and MisalignGeometry().

void AliMC::SetCurrentTrack ( Int_t  track) const
virtual

Definition at line 1989 of file AliMC.cxx.

Referenced by GetHitLists().

void AliMC::SetGenerator ( AliGenerator generator)
virtual

Definition at line 1123 of file AliMC.cxx.

Referenced by AliGenerator::AliGenerator(), and Generator().

void AliMC::SetGeometryFromCDB ( )

Definition at line 1079 of file AliMC.cxx.

Referenced by GetHitLists().

void AliMC::SetHighWaterMark ( Int_t  nt) const
virtual

Definition at line 1955 of file AliMC.cxx.

Referenced by GetHitLists(), and AliGenerator::SetHighWaterMark().

void AliMC::SetReadRndmStatus ( Bool_t  value)
inline

Definition at line 122 of file AliMC.h.

void AliMC::SetRndmFileName ( const TString &  fileName)
inline

Definition at line 123 of file AliMC.h.

void AliMC::SetSaveRndmStatus ( Bool_t  value)
inline

Definition at line 120 of file AliMC.h.

void AliMC::SetSaveRndmStatusPerEvent ( Bool_t  value)
inline

Definition at line 121 of file AliMC.h.

void AliMC::SetTransPar ( const char *  filename = "$(ALICE_ROOT)/data/galice.cuts")
virtual

Definition at line 1817 of file AliMC.cxx.

Referenced by AliMC(), and PurifyLimits().

void AliMC::SetUseMonitoring ( Bool_t  flag = kTRUE)
inline

Definition at line 117 of file AliMC.h.

Referenced by AliSimulation::RunSimulation().

void AliMC::Stepping ( )
virtual

Definition at line 1196 of file AliMC.cxx.

virtual void AliMC::TrackingLimits ( Float_t  rmax = 1.e10,
Float_t  zmax = 1.e10 
)
inlinevirtual

Definition at line 72 of file AliMC.h.

virtual Double_t AliMC::TrackingRmax ( ) const
inlinevirtual

Definition at line 54 of file AliMC.h.

virtual Double_t AliMC::TrackingZmax ( ) const
inlinevirtual

Definition at line 53 of file AliMC.h.

Member Data Documentation

Int_t AliMC::fDecayPdg
private

Definition at line 150 of file AliMC.h.

Referenced by DecayLimits(), and Stepping().

TArrayF AliMC::fEventEnergy
private

The file name of random engine status to be read in.

Definition at line 141 of file AliMC.h.

Referenced by AddEnergyDeposit(), BeginEvent(), EnergySummary(), FinishEvent(), and Init().

AliGenerator* AliMC::fGenerator
private

cached MC instance (to avoid calls to thread_local gMC=TVirtualMC::GetMC())

Definition at line 135 of file AliMC.h.

Referenced by FinishRun(), Generator(), ResetGenerator(), SetGenerator(), and ~AliMC().

TList* AliMC::fHitLists
private

Transport monitoring tool.

Definition at line 154 of file AliMC.h.

Referenced by AddHitList(), GetHitLists(), and ~AliMC().

TArrayI* AliMC::fImedia
private

Definition at line 151 of file AliMC.h.

Referenced by AliMC(), DetFromMate(), MediaTable(), and ~AliMC().

TVirtualMC* AliMC::fMC
private

Definition at line 134 of file AliMC.h.

Referenced by CacheVMCInstance(), and Stepping().

AliTransportMonitor* AliMC::fMonitor
private

Definition at line 153 of file AliMC.h.

Referenced by FinishRun(), GetTransportMonitor(), Stepping(), and ~AliMC().

Float_t AliMC::fPuRmax
private

Definition at line 146 of file AliMC.h.

Referenced by FinishPrimary(), and PurifyLimits().

Float_t AliMC::fPuZmax
private

Definition at line 147 of file AliMC.h.

Referenced by FinishPrimary(), and PurifyLimits().

Float_t AliMC::fRDecayMax
private

Definition at line 148 of file AliMC.h.

Referenced by DecayLimits(), FixParticleDecaytime(), and Stepping().

Float_t AliMC::fRDecayMin
private

Definition at line 149 of file AliMC.h.

Referenced by DecayLimits(), FixParticleDecaytime(), and Stepping().

Bool_t AliMC::fReadRndmStatus
private

Options to save random engine status for each event.

Definition at line 138 of file AliMC.h.

Referenced by BeginEvent(), and SetReadRndmStatus().

TString AliMC::fRndmFileName
private

Activate monitoring.

Definition at line 140 of file AliMC.h.

Referenced by BeginEvent(), and SetRndmFileName().

Bool_t AliMC::fSaveRndmEventStatus
private

Options to save random engine status.

Definition at line 137 of file AliMC.h.

Referenced by BeginEvent(), and SetSaveRndmStatusPerEvent().

Bool_t AliMC::fSaveRndmStatus
private

Definition at line 136 of file AliMC.h.

Referenced by BeginEvent(), and SetSaveRndmStatus().

TArrayF AliMC::fSum2Energy
private

Energy per event in each volume.

Definition at line 143 of file AliMC.h.

Referenced by EnergySummary(), FinishEvent(), and Init().

TArrayF AliMC::fSummEnergy
private

Energy deposit for current event.

Definition at line 142 of file AliMC.h.

Referenced by EnergySummary(), FinishEvent(), and Init().

TFile* AliMC::fTmpFileTR
private

Temporary track reference tree.

Definition at line 157 of file AliMC.h.

Referenced by MakeTmpTrackRefsTree(), and ReorderAndExpandTreeTR().

TClonesArray AliMC::fTmpTrackReferences
private

List of track references - for one primary track only.

Definition at line 159 of file AliMC.h.

Referenced by AddTrackReference(), MakeTmpTrackRefsTree(), RemapTrackReferencesIDs(), ReorderAndExpandTreeTR(), and ResetTrackReferences().

TTree* AliMC::fTmpTreeTR
private

Lists of hits to be remapped by PurifyKine.

Definition at line 156 of file AliMC.h.

Referenced by FinishEvent(), FinishPrimary(), MakeTmpTrackRefsTree(), and ReorderAndExpandTreeTR().

TClonesArray AliMC::fTrackReferences
private

Temporary track reference file.

Definition at line 158 of file AliMC.h.

Referenced by ReorderAndExpandTreeTR().

TString AliMC::fTransParName
private

Array of correspondence between media and detectors.

Definition at line 152 of file AliMC.h.

Referenced by ReadTransPar(), and SetTransPar().

Float_t AliMC::fTrRmax
private

Energy squared per event in each volume.

Definition at line 144 of file AliMC.h.

Referenced by TrackingLimits(), and TrackingRmax().

Float_t AliMC::fTrZmax
private

Definition at line 145 of file AliMC.h.

Referenced by TrackingLimits(), and TrackingZmax().

Bool_t AliMC::fUseMonitoring
private

Options to read random engine status.

Definition at line 139 of file AliMC.h.

Referenced by SetUseMonitoring(), and Stepping().


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