]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/api.txt
some minor changes to adpat for the situation when no digits or clusters avalbale
[u/mrichter/AliRoot.git] / RICH / api.txt
1
2 total amount of particles in stack for a given event:
3 AliStack::GetNtrack() or AliRun::GetEvent()
4
5
6 total amount of primiry particles in stack for a given event:
7 AliStack::GetNprimary() or TreeH()::GetEntries()
8
9 How to open session?
10                      use static methode  AliRunLoader::Open(
11
12
13 How to retrive hits:
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:
18
19
20
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.
24         One needs to say:
25         pRich->GetLoader()->LoadSDigits(); this one open file, get the tree and invoke AliRICH::SetTreeAddress()    
26
27
28
29 gAlice->GetMCApp()->GetCurrentTrackNumber()
30
31
32 Debug staff:
33
34 AliModule::GetDebug() 
35 AliModule::SetDebug()
36 AliRun::GetDebug()
37 AliRun::SetDebug()
38
39
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)
45         TParticle::Print()
46
47 How to deal with AliRunDigitizer?
48         AliRunDigitizer::Exec() just call AliRunDigitizer::Digitize()   
49
50
51
52 How to avoid using the pointer to gAlice?
53
54
55