]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/api.txt
Using default Root containers for Root tags bigger than v4-00-01. Removing fast wrapp...
[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 different 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         - first of all, the stack includes primary as well as secondary particles
17         - pointer to the stack is returned by AliRun::Stack() (global gAlice of type AliRun - depricated way to do)
18           or by AliRunLoader::Stack() but before one needs to load event header by AliRunLoader::LoadHeader() otherwise both methods return 0.
19           Moreover loading header gives the information about number of particles only. 
20           To retrive the list of particle one also needs to load kinematics by AliRunLoader::LoadKinematics()        
21         - total amount of particles in stack for a given event:         AliStack::GetNtrack() or AliRun::GetEvent() (after LoadHeader())
22         - total amount of primiry particles in stack for a given event: AliStack::GetNprimary() or AliLoader::TreeH()->GetEntries() (after LoadHeader())
23
24
25
26 How to retrive hits:
27         Hits a stored on primary by primary basis. To retrieve all hits one needs to do:
28         initialise the root tree and containers:    AliLoader::LoadHits() 
29         read number of primaries in current event:
30         loop on the list of primiries:
31
32
33
34 How to retrive sdigits? 
35         Sdigits stored in tree S with the branch of TClonesArray, all sdigits in a single TClonesArray
36         So the tree has only one entry.
37         One needs to say:
38         pRich->GetLoader()->LoadSDigits(); this one open file, get the tree and invoke AliRICH::SetTreeAddress()    
39
40 What are the debug methodes avail:
41         AliModule::GetDebug() now depricated, use AliDebug printout instead
42         AliModule::SetDebug()
43         AliRun::GetDebug()
44         AliRun::SetDebug()
45
46
47 How to get info for tid number?
48         Header and Kinematics trees must be loaded, then possible to retrive pointer to Stack of particles
49         Int_t AliRunLoader::LoadHeader(); Int_t AliRunLoader::LoadKinematics()
50         AliStack *AliRunLoader::Stack()
51         TParticle *AliStack::Particle(tid)
52         TParticle::Print()
53
54 How to deal with AliRunDigitizer?
55         AliRunDigitizer::Exec() just call AliRunDigitizer::Digitize()   
56
57 How to avoid using gAlice?
58         Rich()->GetLoader()->GetRunLoader()->GetAliRun() returns gAlice global pointer.
59