Int_t Volume[5];
AliRawReader *rawReader = new AliRawReaderDate((void*)event);
AliTOFRawStream *rawStreamTOF = new AliTOFRawStream(rawReader);
- AliTOFDecoder * decoderTOF = new AliTOFDecoder();
+ const AliRawDataHeader *currentCDH;
+ AliTOFDecoder * decoderTOF = new AliTOFDecoder();
AliTOFHitDataBuffer *DataBuffer[72];
AliTOFHitDataBuffer *PackedDataBuffer[72];
for (Int_t i=0;i<AliDAQ::NumberOfDdls("TOF");i++){
//get equipment infos
currentEquipment = rawReader->GetEquipmentId();
currentDDL = rawReader->GetDDLID();
+ currentCDH = rawReader->GetDataHeader();
Int_t nchDDL = 0;
if (currentDDL%2==0) {
nchDDL = 2160;
data = 0x0;
continue;
}
- if (decoderTOF->Decode((UInt_t *)data, kDataWords) == kTRUE) {
+ if (decoderTOF->Decode((UInt_t *)data, kDataWords, currentCDH) == kTRUE) {
rawReader->AddMajorErrorLog(AliTOFRawStream::kDDLDecoder,Form("DDL # = %d",currentDDL));
printf("Error while decoding DDL # %d: decoder returned with errors \n", currentDDL);
}
/* free resources */
free(event);
}
+
}
delete geom;