]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Prevents to post clusterizer in case no data in TreeR
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Jun 2002 10:02:54 +0000 (10:02 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Jun 2002 10:02:54 +0000 (10:02 +0000)
PHOS/AliPHOSGetter.cxx

index b144bff00d8102c8592e2d5d83df38abbf89f0a8..bb00188540723910eb7b90702ffc0eb1277bf6a2 100644 (file)
@@ -1561,9 +1561,9 @@ Int_t AliPHOSGetter::ReadTreeR(Bool_t any)
       }
     }
 
-  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 { 
@@ -1571,22 +1571,10 @@ Int_t AliPHOSGetter::ReadTreeR(Bool_t any)
       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