]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/api.txt
Now renamed to RichConfig.C
[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         all methodes return 0 on success. 
14 How to deal with the stack of particles?
15         - first of all, the stack includes primary as well as secondary particles
16         - pointer to the stack is taken:
17                 AliRun::Stack() (global gAlice of type AliRun - depricated way to do)
18                 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:        
22                 AliStack::GetNtrack() 
23                 AliRun::GetEvent() (after LoadHeader())
24         - total amount of primary particles in stack for a given event (after LoadHeader()): 
25                 AliStack::GetNprimary() 
26 How to retrive hits:
27   -Hits are stored on primary by primary basis. Hits for the given primary is TClonesArray.
28    To retrieve all hits one needs to do:
29      -initialise the root tree and containers:    AliLoader::LoadHits() 
30      -read number of entries in TreeH:           TreeH()->GetEntries()
31      -loop on the list of entires:
32 How to retrive sdigits? 
33         Sdigits stored in tree S with the branch of TClonesArray, all sdigits in a single TClonesArray
34         So the tree has only one entry.
35         One needs to say:
36         pRich->GetLoader()->LoadSDigits(); this one open file, get the tree and invoke AliRICH::SetTreeAddress()    
37 What are the debug methodes avail:
38         AliModule::GetDebug() now depricated, use AliDebug printout instead
39         AliModule::SetDebug()
40         AliRun::GetDebug()
41         AliRun::SetDebug()
42 How to get info for a given particle number:
43         Header and Kinematics trees must be loaded, then possible to retrive pointer to Stack of particles
44         Int_t AliRunLoader::LoadHeader(); Int_t AliRunLoader::LoadKinematics()
45         AliStack *AliRunLoader::Stack()
46         TParticle *AliStack::Particle(tid)
47         TParticle::Print()
48 How to deal with AliRunDigitizer:
49         AliRunDigitizer::Exec() just call AliRunDigitizer::Digitize()   
50 How to avoid using gAlice:
51         Rich()->GetLoader()->GetRunLoader()->GetAliRun() returns gAlice global pointer.
52 What are hte meanings of different VMC flags:         
53         gMC->IsTrackAlive()
54         gMC->IsTrackStop()
55         gMC->IsTrackDisappeared()
56 How is sdigit prodiced from hit:
57         Responsible methode is AliRICH::
58         One hit may affect one or more pads.
59         Hit position is taken on the anod wires plane as the most of avalanche is developed there.
60         This poistion is not directly avalable, track intersections with entrance and exit of amplification gap are only store.
61         So the position in the middle of the gap is calculated as average out of In and Out position.
62         Then, total charge collected for this hit is calculated by AliRICHParam::Hit2Qdc.        
63 How to get pad number for a local position:
64         use static TVector AliRICHParam::Loc2Pad(TVector2 position)
65 Why list of chambers belongs to AliRICHParam:
66         
67