- if ( !emcaltowerrpfound ) {
- if (fDebug)
- cout << "WARNING: AliEMCALGetter::ReadTreeR -> Cannot find TowerRecPoints with title "
- << fRecPointsTitle << endl ;
- return ;
- }
- if ( !emcalpreshorpfound ) {
- if (fDebug)
- cout << "WARNING: AliEMCALGetter::ReadTreeR -> Cannot find PreShoRecPoints with title "
- << fRecPointsTitle << endl ;
- return ;
- }
- if ( !clusterizerfound ) {
- if (fDebug)
- cout << "WARNING: AliEMCALGetter::ReadTreeR -> Can not find Clusterizer with title "
- << fRecPointsTitle << endl ;
- return ;
- }
-
- // Read and Post the RecPoints
- if(!TowerRecPoints(fRecPointsTitle) )
- PostRecPoints(fRecPointsTitle) ;
- towerbranch->SetAddress(TowerRecPointsRef(fRecPointsTitle)) ;
- towerbranch->GetEntry(0) ;
-
- preshobranch->SetAddress(PreShoRecPointsRef(fRecPointsTitle)) ;
- preshobranch->GetEntry(0) ;
-
- if(!Clusterizer(fRecPointsTitle) )
- PostClusterizer(fRecPointsTitle) ;
- clusterizerbranch->SetAddress(ClusterizerRef(fRecPointsTitle)) ;
- clusterizerbranch->GetEntry(0) ;
-
-
- //------------------- TrackSegments ---------------------
-// next.Reset() ;
-// TBranch * tsbranch = 0 ;
-// TBranch * tsmakerbranch = 0 ;
-// Bool_t emcaltsfound = kFALSE, tsmakerfound = kFALSE ;
-
-// while ( (branch = static_cast<TBranch*>(next())) && (!emcaltsfound || !tsmakerfound) )
-// if(strcmp(branch->GetTitle(), fTrackSegmentsTitle)==0) {
-// if ( strcmp(branch->GetName(), "EMCALTS")==0){
-// tsbranch = branch ;
-// emcaltsfound = kTRUE ;
-// }
-// else if(strcmp(branch->GetName(), "AliEMCALTrackSegmentMaker")==0) {
-// tsmakerbranch = branch ;
-// tsmakerfound = kTRUE ;
-// }
-// }
-
-// if ( !emcaltsfound || !tsmakerfound ) {
-// if (fDebug)
-// cout << "WARNING: AliEMCALGetter::ReadTreeR -> Cannot find TrackSegments and/or TrackSegmentMaker with name "
-// << fTrackSegmentsTitle << endl ;
-// return ;
-// }
-
-// // Read and Post the TrackSegments
-// if(!TrackSegments(fTrackSegmentsTitle))
-// PostTrackSegments(fTrackSegmentsTitle) ;
-// tsbranch->SetAddress(TrackSegmentsRef(fTrackSegmentsTitle)) ;
-// tsbranch->GetEntry(0) ;
-
-// // Read and Post the TrackSegment Maker
-// if(!TrackSegmentMaker(fTrackSegmentsTitle))
-// PostTrackSegmentMaker(fTrackSegmentsTitle) ;
-// tsmakerbranch->SetAddress(TSMakerRef(fTrackSegmentsTitle)) ;
-// tsmakerbranch->GetEntry(0) ;
-
-
-// //------------ RecParticles ----------------------------
-// next.Reset() ;
-// TBranch * rpabranch = 0 ;
-// TBranch * pidbranch = 0 ;
-// Bool_t emcalrpafound = kFALSE, pidfound = kFALSE ;
-
-// while ( (branch = static_cast<TBranch*>(next())) && (!emcalrpafound || !pidfound) )
-// if(strcmp(branch->GetTitle(), fRecParticlesTitle)==0) {
-// if ( strcmp(branch->GetName(), "EMCALRP")==0) {
-// rpabranch = branch ;
-// emcalrpafound = kTRUE ;
-// }
-// else if (strcmp(branch->GetName(), "AliEMCALPID")==0) {
-// pidbranch = branch ;
-// pidfound = kTRUE ;
-// }
-// }
-
-// if ( !emcalrpafound || !pidfound ) {
-// if (fDebug)
-// cout << "WARNING: AliEMCALGetter::ReadTreeR -> Cannot find RecParticles and/or PID with name "
-// << fRecParticlesTitle << endl ;
-// return ;
-// }
-
-// // Read and Post the RecParticles
-// if(!RecParticles(fRecParticlesTitle))
-// PostRecParticles(fRecParticlesTitle) ;
-// rpabranch->SetAddress(RecParticlesRef(fRecParticlesTitle)) ;
-// rpabranch->GetEntry(0) ;
-
-// // Read and Post the PID
-// if(!PID(fRecParticlesTitle))
-// PostPID(fRecParticlesTitle) ;
-// pidbranch->SetAddress(PIDRef(fRecParticlesTitle)) ;
-// pidbranch->GetEntry(0) ;
-
-