1 void PetiteMacroDeNuit()
4 RecAna * t = new RecAna("junk.root");
6 TObjArray * lp = t->PHOSPpsdRP ;
7 cout << "Tree macro = " << lp << endl ;
8 for (int i = 0 ; i < lp->GetEntries() ; i++ ) {
9 AliPHOSPpsdRecPoint * rpp = (AliPHOSPpsdRecPoint *)lp->At(i) ;
12 TObjArray * le = t->PHOSEmcRP ;
13 for (int i = 0 ; i < le->GetEntries() ; i++ ) {
14 AliPHOSEmcRecPoint * rp = (AliPHOSEmcRecPoint *)le->At(i) ;
18 AliPHOSIndexToObject * please = AliPHOSIndexToObject::GetInstance() ;
20 for (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") ) ) ;
26 index = t->PHOSTS_fPpsdLowRecPoint[i] ;
27 AliPHOSPpsdRecPoint * ppsdl = (AliPHOSPpsdRecPoint *) ( please->GimeRecPoint(index, TString("ppsd") ) ) ;
30 index = t->PHOSTS_fPpsdUpRecPoint[i] ;
31 AliPHOSPpsdRecPoint * ppsdu = (AliPHOSPpsdRecPoint *) ( please->GimeRecPoint(index, TString("ppsd") ) ) ;
35 for (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 ;