]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/TOFnoiseda.cxx
Changes to match mods in AliTOFDecoder.
[u/mrichter/AliRoot.git] / TOF / TOFnoiseda.cxx
index 68881d545b09ba69852840d97e787eda307a092b..feea2459ea0bc6755299f1a52c9fc5dfe78f2537 100644 (file)
@@ -126,6 +126,7 @@ int main(int argc, char **argv) {
        Int_t Volume[5];
        AliRawReader *rawReader = new AliRawReaderDate((void*)event);
        AliTOFRawStream *rawStreamTOF = new AliTOFRawStream(rawReader);
+        const AliRawDataHeader *currentCDH;
        AliTOFDecoder * decoderTOF = new AliTOFDecoder();
        AliTOFHitDataBuffer *DataBuffer[72]; 
        AliTOFHitDataBuffer *PackedDataBuffer[72];      
@@ -146,6 +147,7 @@ int main(int argc, char **argv) {
          //get equipment infos
          currentEquipment = rawReader->GetEquipmentId();
          currentDDL = rawReader->GetDDLID();
+         currentCDH = rawReader->GetDataHeader();
          Int_t nchDDL = 0;
          if (currentDDL%2==0) {
            nchDDL = 2160;
@@ -174,7 +176,7 @@ int main(int argc, char **argv) {
            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);
          }