Short_t pos = TMath::BinarySearch(fNCells, fCellNumber, cellNumber);
if (pos>=0 && pos < fNCells && fCellNumber[pos] == cellNumber ) {
- return fHGLG[pos];
+ if(fHGLG)
+ return fHGLG[pos];
+ else //old version of AOD,
+ return !(fMCLabel[pos]==-2) ;
} else {
return 0.;
}
Bool_t AliAODCaloCells::GetHighGain(Short_t pos) const
{
if (pos>=0 && pos<fNCells) {
- return fHGLG[pos];
+ if(fHGLG)
+ return fHGLG[pos];
+ else //Old version of AOD store this flag in MCLabel
+ return !(fMCLabel[pos]==-2) ;
} else {
return 0.;
}