some utility added
[u/mrichter/AliRoot.git] / RICH / api.txt
CommitLineData
7185d942 1How 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()
3582c1f9 5
09c52ebc 6How to open session?
7 use static methode AliRunLoader::Open(
3582c1f9 8
9
09c52ebc 10How to retrive hits:
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:
3582c1f9 15
3582c1f9 16
17
09c52ebc 18How 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.
21 One needs to say:
22 pRich->GetLoader()->LoadSDigits(); this one open file, get the tree and invoke AliRICH::SetTreeAddress()
3582c1f9 23
24
25
26gAlice->GetMCApp()->GetCurrentTrackNumber()
27
28
7185d942 29What are the debug methodes avail:
30 AliModule::GetDebug()
31 AliModule::SetDebug()
32 AliRun::GetDebug()
33 AliRun::SetDebug()
3582c1f9 34
35
09c52ebc 36How 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)
41 TParticle::Print()
3582c1f9 42
09c52ebc 43How to deal with AliRunDigitizer?
44 AliRunDigitizer::Exec() just call AliRunDigitizer::Digitize()
3582c1f9 45
7185d942 46How to avoid using gAlice?
47 Rich()->GetLoader()->GetRunLoader()->GetAliRun() returns gAlice global pointer.
48
3582c1f9 49
50