First cloned histo was not reset in ResetDetector
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Nov 2011 00:21:04 +0000 (00:21 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Nov 2011 00:21:04 +0000 (00:21 +0000)
STEER/STEER/AliQADataMakerRec.cxx

index 7bb825d..d47d8dd 100644 (file)
@@ -374,7 +374,7 @@ void AliQADataMakerRec::ResetDetector(AliQAv1::TASKINDEX_t task)
     list = fESDsQAList ; 
   }
   //list was not initialized, skip
-  if (!list) return ; 
+  if (!list) return; 
   
   for (int spec = 0; spec < AliRecoParam::kNSpecies; spec++) {
     if (!AliQAv1::Instance()->IsEventSpecieSet(AliRecoParam::ConvertIndex(spec))) continue;
@@ -385,7 +385,7 @@ void AliQADataMakerRec::ResetDetector(AliQAv1::TASKINDEX_t task)
        TObjArray* arr = (TObjArray*)obj;
        for (int ih=arr->GetEntriesFast();ih--;) {
          TH1* histo = (TH1*)arr->At(ih); 
-         if (!ih) continue;
+         if (!histo) continue;
          histo->Reset("ICE");
          histo->ResetStats();
        }