ClassImp(AliAltroBuffer)
//_____________________________________________________________________________
-AliAltroBuffer::AliAltroBuffer(const char* fileName, const AliAltroMapping *mapping):
+AliAltroBuffer::AliAltroBuffer(const char* fileName, AliAltroMapping *mapping):
fShift(0),
fCurrentCell(0),
fFreeCellBuffer(16),
//Write all ADC values and the trailer of a channel
Int_t nWords = WriteBunch(nTimeBins,adcValues,threshold);
// write the trailer
- WriteTrailer(nWords, padNumber, rowNumber, secNumber);
+ if (nWords) WriteTrailer(nWords, padNumber, rowNumber, secNumber);
}
//_____________________________________________________________________________
//Write all ADC values and the trailer of a channel
Int_t nWords = WriteBunch(nTimeBins,adcValues,threshold);
// write the trailer
- WriteTrailer(nWords, hwAddress);
+ if (nWords) WriteTrailer(nWords, hwAddress);
}
//_____________________________________________________________________________
// Now the RCU identifier and size of the trailer
// FOr the moment the triler size is 2 32-bit words
- UInt_t buffer = 2;
- buffer |= ((rcuId & 0x3FF) << 22);
+ UInt_t buffer = (2 & 0x7F);
+ buffer |= ((rcuId & 0x1FF) << 7);
+ buffer |= 0xAAAA << 16;
fFile->WriteBuffer((char *)(&buffer),sizeof(UInt_t));
}