]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added protection (P. Hristov)
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Sep 2008 09:33:14 +0000 (09:33 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Sep 2008 09:33:14 +0000 (09:33 +0000)
ITS/AliITSQASPDChecker.cxx

index 6c76131f34f1d425823399d66f06798d7d733ed8..4fb407fe611d847ba1cf51f0b5769067a7b99bff 100644 (file)
@@ -62,9 +62,13 @@ const Double_t AliITSQASPDChecker::Check(AliQA::ALITASK_t /*index*/, TObjArray *
         Double_t rv = 0.;
         if (hdata->GetEntries()>0) rv = 1;
         if (histName.Contains("LayPattern")) {
+         if (hdata->GetBinContent(1)) {
            Double_t ratio=hdata->GetBinContent(2)/hdata->GetBinContent(1);
            AliInfo(Form("%s: ratio RecPoints lay2 / lay1 = %f", hdata->GetName(), ratio));
-        }
+         }
+         else
+           AliInfo("No RecPoints in lay1");
+       }
         else if(histName.Contains("ModPattern")) {
            Int_t ndead=0;
            for(Int_t ibin=0;ibin<hdata->GetNbinsX();ibin++) {