#include "AliTRDarrayDictionary.h"
#include "AliTRDfeeParam.h"
+#include "AliLog.h"
ClassImp(AliTRDarrayDictionary)
,fNDdim(0)
,fDictionary(0)
,fFlag(kFALSE)
-
{
//
// AliTRDarrayDictionary contructor
delete [] longArr;
longArr=0;
}
- fFlag=kTRUE; // flag to signal compression
}
// Expand the array
//
+ if(fNDdim==0)
+ {
+ AliError("Called expand with dimension zero");
+ return;
+ }
+
+
Int_t dimexp=0;
- if(!IsCompressed())
+
+ if(WasExpandCalled())
return;
if(fDictionary&&fNDdim==1)
fNDdim = dimexp;
// Re-initialize the array
memset(fDictionary,-1,sizeof(Int_t)*dimexp);
+ fFlag=kTRUE; // Not expand again
return;
}
{
delete [] longArr;
}
-
- fFlag=kFALSE; // flag to signal that is not compressed anymore
+ fFlag=kTRUE; // Not expand again
}
//________________________________________________________________________________