]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/PetiteMacrodeNuit.C
Starting a collection of QA/Comparison macros
[u/mrichter/AliRoot.git] / PHOS / PetiteMacrodeNuit.C
CommitLineData
d8d3b5b8 1void PetiteMacroDeNuit()
83974468 2{
3Int_t evt = 0 ;
4RecAna * t = new RecAna("junk.root");
5t->GetEvent(evt);
6TObjArray * lp = t->PHOSPpsdRP ;
7 cout << "Tree macro = " << lp << endl ;
8for (int i = 0 ; i < lp->GetEntries() ; i++ ) {
9 AliPHOSPpsdRecPoint * rpp = (AliPHOSPpsdRecPoint *)lp->At(i) ;
10 rpp.Print();
11}
12TObjArray * le = t->PHOSEmcRP ;
13for (int i = 0 ; i < le->GetEntries() ; i++ ) {
14 AliPHOSEmcRecPoint * rp = (AliPHOSEmcRecPoint *)le->At(i) ;
15 rp->Print();
16}
17
18AliPHOSIndexToObject * please = AliPHOSIndexToObject::GetInstance() ;
19
20for (int i = 0 ; i < (t->PHOSTS_-1) ; i++) {
21 cout << "TrackSegment # " << i << endl
22 << "====================" << endl ;
23 int index = t->PHOSTS_fEmcRecPoint[i] ;
24 AliPHOSEmcRecPoint * emrp = (AliPHOSEmcRecPoint *) ( please->GimeRecPoint(index, TString("emc") ) ) ;
25 emrp->Print() ;
26 index = t->PHOSTS_fPpsdLowRecPoint[i] ;
27 AliPHOSPpsdRecPoint * ppsdl = (AliPHOSPpsdRecPoint *) ( please->GimeRecPoint(index, TString("ppsd") ) ) ;
28 if (ppsdl)
29 ppsdl->Print() ;
30 index = t->PHOSTS_fPpsdUpRecPoint[i] ;
31 AliPHOSPpsdRecPoint * ppsdu = (AliPHOSPpsdRecPoint *) ( please->GimeRecPoint(index, TString("ppsd") ) ) ;
32 if (ppsdu)
33 ppsdu->Print() ;
34}
35for (int i = 0 ; i < (t->PHOSRP_-1) ; i++) {
36 cout << "RecParticles # " << i << endl
37 << "====================" << endl ;
38 cout << "type = " << t->PHOSRP_fType[i] << " energy = " << t->PHOSRP_fE[i] << endl ;
39}
40delete t ;
41}