}
}
- if ( !phosemcrpfound ) {
+ if ( !phosemcrpfound || !phoscpvrpfound || !clusterizerfound) {
if (fDebug)
- cout << "WARNING: AliPHOSGetter::ReadTreeR -> Cannot find EmcRecPoints with title "
+ cout << "WARNING: AliPHOSGetter::ReadTreeR -> Cannot find RecPoints and/or Clusterizer with name "
<< fRecPointsTitle << endl ;
} else {
PostRecPoints(fRecPointsTitle) ;
emcbranch->SetAddress(EmcRecPointsRef(fRecPointsTitle)) ;
emcbranch->GetEntry(0) ;
- }
-
- if ( !phoscpvrpfound ) {
- if (fDebug)
- cout << "WARNING: AliPHOSGetter::ReadTreeR -> Cannot find CpvRecPoints with title "
- << fRecPointsTitle << endl ;
- } else {
+
cpvbranch->SetAddress(CpvRecPointsRef(fRecPointsTitle)) ;
- cpvbranch->GetEntry(0) ;
- }
-
- if ( !clusterizerfound ) {
- if (fDebug)
- cout << "WARNING: AliPHOSGetter::ReadTreeR -> Can not find Clusterizer with title "
- << fRecPointsTitle << endl ;
- } else {
+ cpvbranch->GetEntry(0) ;
+
if(!Clusterizer(fRecPointsTitle) )
PostClusterizer(fRecPointsTitle) ;
//!!!!!!!!!!!!!!!!!!!!!!!!!! Weird problem, the following line causes a seg fault