Additional protection
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Mar 2009 12:01:00 +0000 (12:01 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Mar 2009 12:01:00 +0000 (12:01 +0000)
ACORDE/AliACORDEQAChecker.cxx

index d68f6a8..d4008bb 100755 (executable)
@@ -147,7 +147,7 @@ Double_t AliACORDEQAChecker::CheckAcordeRefHits(TObjArray *AcordeList, TObjArray
        {
                while ( (histo = dynamic_cast<TH1 *>(next())) )
                {       
-                       if ( (histo->GetBinContent(i)/histo->GetMaximum())<1.0 ) acoTest = 0.86;
+                 if (histo->GetMaximum() && ((histo->GetBinContent(i)/histo->GetMaximum())<1.0) ) acoTest = 0.86;
 //             if( histo->KolmogorovTest((TH1F *)AcordeRef->At(0))<0.8)  acoTest = 0.86;
                        //printf("href:%f\n",histo->GetMaximum());
                }