1 How to work with the stack of particles?
2 pointer to the stack is returned by AliRun::Stack() or AliRunLoader::Stack()
3 total amount of particles in stack for a given event: AliStack::GetNtrack() or AliRun::GetEvent()
4 total amount of primiry particles in stack for a given event: AliStack::GetNprimary() or TreeH()::GetEntries()
7 use static methode AliRunLoader::Open(
11 Hits a stored on primiry by primiry basis. To retrieve all hits one needs to do:
12 initialise the root tree and containers: AliLoader::LoadHits()
13 read number of primiries in current event:
14 loop on the list of primiries:
18 How to retrive sdigits?
19 Sdigits stored in tree S with the branch of TClonesArray, all sdigits in a single TClonesArray
20 So the tree has only one entry.
22 pRich->GetLoader()->LoadSDigits(); this one open file, get the tree and invoke AliRICH::SetTreeAddress()
26 gAlice->GetMCApp()->GetCurrentTrackNumber()
29 What are the debug methodes avail:
36 How to get info for tid number?
37 Header and Kinematics trees must be loaded, then possible to retrive pointer to Stack of particles
38 Int_t AliRunLoader::LoadHeader(); Int_t AliRunLoader::LoadKinematics()
39 AliStack *AliRunLoader::Stack()
40 TParticle *AliStack::Particle(tid)
43 How to deal with AliRunDigitizer?
44 AliRunDigitizer::Exec() just call AliRunDigitizer::Digitize()
46 How to avoid using gAlice?
47 Rich()->GetLoader()->GetRunLoader()->GetAliRun() returns gAlice global pointer.