]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Missing code protection (Plamen)
authorlietava <lietava@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Aug 2011 16:36:29 +0000 (16:36 +0000)
committerlietava <lietava@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Aug 2011 16:36:29 +0000 (16:36 +0000)
STEER/STEER/AliTriggerRunScalers.cxx

index 6434844bdf8a1cb663c038e54630876c804c0cdf..39c7ef24cf712124d16c7880fec85fd0788111c6 100644 (file)
@@ -835,6 +835,7 @@ TGraphErrors* AliTriggerRunScalers::GetGraphScalerRate(const char* className, TS
 TGraphErrors* AliTriggerRunScalers::GetGraphScalerL2L0Ratio(const char* className, AliTriggerConfiguration* cfg)
 {
   Int_t classIndex = cfg->GetClassIndexFromName(className);
+  if (classIndex == -1) return 0;
   if (fScalersRecordESD.GetEntriesFast()==0) {
      if (CorrectScalersOverflow()==1) return 0;
   }