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 6434844..39c7ef2 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;
   }