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