]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/api.txt
New notes
[u/mrichter/AliRoot.git] / RICH / api.txt
1 How to open session?
2         use static methode  AliRunLoader::Open("galice.root","AlicE","update")
3 How to retrive pointer to alice run loader:
4         use pRICH->GetLoader()->GetRunLoader() (all detector classes inherit from AliDetector wich has GetLoader())
5         use methode AliRun::GetRunLoader for gAlice (depricated)
6 How to get pointers to deifferent root trees:
7         TreeE belongs to AliRunLoader, available after AliRunLoader::LoadHeader()
8         TreeK belongs to AliRunLoader, available after AliRunLoader::LoadKinematics()
9         TreeH belongs to AliLoader   , available after AliLoader::LoadHits()
10         TreeS belongs to AliLoader   , available after AliLoader::LoadSDigits()
11         TreeD belongs to AliLoader   , available after AliLoader::LoadDigits()
12         TreeR belongs to AliLoader   , available after AliLoader::LoadRecPoints()
13
14
15 How to work with the stack of particles?
16         - pointer to the stack is returned by gAlice->Stack() (global gAlice of type AliRun) or AliRunLoader::Stack() but
17         before one needs to load event header by AliRunLoader::LoadHeader() otherwise both methods return 0.
18         Moreover loading header gives the information about number of particles only. 
19         To retrive the list of particle one also needs to load kinematics by AliRunLoader::LoadKinematics()        
20         - total amount of particles in stack for a given event:         AliRunLoader::Stack()->GetNtrack() or AliRun::GetEvent() (after LoadHeader())
21         - total amount of primiry particles in stack for a given event: AliRunLoader::Stack()->GetNprimary() or AliLoader::TreeH()->GetEntries() (after LoadHeader())
22
23
24
25 How to retrive hits:
26         Hits a stored on primiry by primiry basis. To retrieve all hits one needs to do:
27         initialise the root tree and containers:    AliLoader::LoadHits() 
28         read number of primiries in current event:
29         loop on the list of primiries:
30
31
32
33 How to retrive sdigits? 
34         Sdigits stored in tree S with the branch of TClonesArray, all sdigits in a single TClonesArray
35         So the tree has only one entry.
36         One needs to say:
37         pRich->GetLoader()->LoadSDigits(); this one open file, get the tree and invoke AliRICH::SetTreeAddress()    
38
39
40
41 gAlice->GetMCApp()->GetCurrentTrackNumber()
42
43
44 What are the debug methodes avail:
45         AliModule::GetDebug() 
46         AliModule::SetDebug()
47         AliRun::GetDebug()
48         AliRun::SetDebug()
49
50
51 How to get info for tid number?
52         Header and Kinematics trees must be loaded, then possible to retrive pointer to Stack of particles
53         Int_t AliRunLoader::LoadHeader(); Int_t AliRunLoader::LoadKinematics()
54         AliStack *AliRunLoader::Stack()
55         TParticle *AliStack::Particle(tid)
56         TParticle::Print()
57
58 How to deal with AliRunDigitizer?
59         AliRunDigitizer::Exec() just call AliRunDigitizer::Digitize()   
60
61 How to avoid using gAlice?
62         Rich()->GetLoader()->GetRunLoader()->GetAliRun() returns gAlice global pointer.
63          
64
65