]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AOD/AliAODCaloCells.h
Small fix:
[u/mrichter/AliRoot.git] / STEER / AOD / AliAODCaloCells.h
index 0b0cc42e2f0f163256a11009c7a3d0b491c0f4f6..9797f54aab31ceb56850845e6172fdac1d7a8e03 100644 (file)
@@ -125,10 +125,14 @@ Bool_t AliAODCaloCells::GetCellHighGain(Short_t cellNumber)
   if (pos>=0 && pos < fNCells && fCellNumber[pos] == cellNumber ) {
     if(fHGLG)
       return fHGLG[pos];
-    else //old version of AOD, 
-      return !(fMCLabel[pos]==-2) ;
+    else{
+      if(fMCLabel) //old version of AOD, 
+         return !(fMCLabel[pos]==-2) ;
+      else
+        return kTRUE ;
+    }
   } else {
-    return 0.;
+    return kFALSE;
   }
 }
 
@@ -162,10 +166,14 @@ Bool_t AliAODCaloCells::GetHighGain(Short_t pos) const
   if (pos>=0 && pos<fNCells) {
     if(fHGLG)
       return fHGLG[pos];
-    else //Old version of AOD store this flag in MCLabel
-      return !(fMCLabel[pos]==-2) ;
+    else{
+      if(fMCLabel)    //Old version of AOD store this flag in MCLabel
+        return !(fMCLabel[pos]==-2) ;
+      else
+       return kTRUE ;
+    }
   } else {
-    return 0.;
+    return kFALSE;
   }
 }