2 total amount of particles in stack for a given event:
3 AliStack::GetNtrack() or AliRun::GetEvent()
6 total amount of primiry particles in stack for a given event:
7 AliStack::GetNprimary() or TreeH()::GetEntries()
10 use static methode AliRunLoader::Open(
14 Hits a stored on primiry by primiry basis. To retrieve all hits one needs to do:
15 initialise the root tree and containers: AliLoader::LoadHits()
16 read number of primiries in current event:
17 loop on the list of primiries:
21 How to retrive sdigits?
22 Sdigits stored in tree S with the branch of TClonesArray, all sdigits in a single TClonesArray
23 So the tree has only one entry.
25 pRich->GetLoader()->LoadSDigits(); this one open file, get the tree and invoke AliRICH::SetTreeAddress()
29 gAlice->GetMCApp()->GetCurrentTrackNumber()
40 How to get info for tid number?
41 Header and Kinematics trees must be loaded, then possible to retrive pointer to Stack of particles
42 Int_t AliRunLoader::LoadHeader(); Int_t AliRunLoader::LoadKinematics()
43 AliStack *AliRunLoader::Stack()
44 TParticle *AliStack::Particle(tid)
47 How to deal with AliRunDigitizer?
48 AliRunDigitizer::Exec() just call AliRunDigitizer::Digitize()
52 How to avoid using the pointer to gAlice?