#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
-
+ fFlag=kFALSE; // This way it can be expanded afterwards
}
//________________________________________________________________________________
// Expand the array
//
+ if(fNDdim==0)
+ {
+ AliError("Called expand with dimension zero");
+ return;
+ }
+
+
Int_t dimexp=0;
- if(!IsCompressed())
+
+// if(WasExpandCalled())
+// return;
+
+ if(fNDdim==fNrow*fNumberOfChannels*fNtime)
return;
if(fDictionary&&fNDdim==1)
fNDdim = dimexp;
// Re-initialize the array
memset(fDictionary,-1,sizeof(Int_t)*dimexp);
+ fFlag=kTRUE; // Not expand again
return;
}
Int_t contaexp =0;
Int_t h=0;
Int_t* bufferE = new Int_t[dimexp];
- memset(bufferE,-1,sizeof(Int_t)*dimexp);
if(bufferE)
{
-
+ memset(bufferE,-1,sizeof(Int_t)*dimexp);
for(Int_t i=0; i<dimexp; i++)
{
if(fDictionary[contaexp]>=-1)
{
delete [] longArr;
}
-
- fFlag=kFALSE; // flag to signal that is not compressed anymore
+ fFlag=kTRUE; // Not expand again
}
//________________________________________________________________________________