#include "Cal/AliTRDCalPadStatus.h"
#include "AliTRDfeeParam.h"
#include "AliTRDSignalIndex.h"
+#include "AliLog.h"
+
ClassImp(AliTRDarrayADC)
Short_t *AliTRDarrayADC::fgLutPadNumbering = 0x0;
// AliTRDarrayADC destructor
//
- if(fADC)
- {
- delete [] fADC;
- fADC=0;
- }
+ delete [] fADC;
+ fADC=0;
}
// Get the ADC value for a given position: row, col, time
// Taking bit masking into account
//
- // Adapted from code of the class AliTRDdataArrayDigits
+ // Adapted from code of the class AliTRDclusterizer
//
Short_t tempval = GetData(row,col,time);
// Bridged Right Masking 8
// Not Connected Masking Digits
//
- // Adapted from code of the class AliTRDdataArrayDigits
+ // Adapted from code of the class AliTRDclusterizer
//
UChar_t padstatus = 0;
// Bridged Left masking: Bit 11(0), Bit 12(1)
// Bridged Right masking: Bit 11(1), Bit 12(1)
//
- // Adapted from code of the class AliTRDdataArrayDigits
+ // Adapted from code of the class AliTRDclusterizer
//
Short_t signal = GetData(row,col,time);
//
// Checks if the pad has any masking as corrupted (Bit 10 in signal set)
//
- // Adapted from code of the class AliTRDdataArrayDigits
+ // Adapted from code of the class AliTRDclusterizer
//
Short_t signal = GetData(row,col,time);
// Compress the array
//
+ if(fNAdim!=fNrow*fNumberOfChannels*fNtime)
+ {
+ AliDebug(1,"The ADC array is already compressed");
+ return;
+ }
+
Int_t counter=0;
Int_t newDim=0;
Int_t j;
buffer=0;
}
+ }
+
+ if (longz)
+ {
delete [] longz;
longz=0;
+ }
+ if (longm)
+ {
delete [] longm;
longm=0;
if(verif==0)
{
- //AliDebug(1,"Nothing to expand");
+ AliDebug(1,"Nothing to expand");
return;
}