+ esd->Print();
+ Int_t index ;
+ AliESDCaloTrack * ct ;
+ AliPHOSRecParticle * pp ;
+ AliEMCALRecParticle * ep ;
+ for (index = 0 ; index < esd->GetNumberOfCaloTracks() ; index++) {
+ ct = esd->GetCaloTrack(index) ;
+ pp = dynamic_cast<AliPHOSRecParticle*>(ct->GetRecParticle()) ;
+ ep = dynamic_cast<AliEMCALRecParticle*>(ct->GetRecParticle()) ;
+ if (pp)
+ cout << "particle # " << index << " is from PHOS " << endl ;
+ if(ep)
+ cout << "particle # " << index << " is from EMCAL " << endl ;
+ }