class AliAltroBuffer: public TObject {
public:
- AliAltroBuffer(const char* fileName, const AliAltroMapping *mapping = NULL);
+ AliAltroBuffer(const char* fileName, AliAltroMapping *mapping = NULL);
virtual ~AliAltroBuffer();
- void FillBuffer(Int_t val);
+ virtual void FillBuffer(Int_t val);
//this method stores a word into the buffer
- Int_t GetFreeCellNumber()const {return fFreeCellBuffer;}
- //this method returns the number of free cells of the internal buffer
void WriteTrailer(Int_t wordsNumber, Int_t padNumber,
Int_t rowNumber, Int_t secNumber);
//this method is used to write the trailer
- void WriteTrailer(Int_t wordsNumber, Short_t hwAddress);
+ virtual void WriteTrailer(Int_t wordsNumber, Short_t hwAddress);
//this method is used to write the trailer
- void WriteDummyTrailer(Int_t wordsNumber, Int_t padNumber,
- Int_t rowNumber, Int_t secNumber);
- //this method is used to write a dummy trailer
void WriteChannel(Int_t padNumber, Int_t rowNumber, Int_t secNumber,
Int_t nTimeBins, const Int_t* adcValues,
void WriteDataHeader(Bool_t dummy, Bool_t compressed);
//this method is used to write the data header
- void WriteRCUTrailer(Int_t rcuId);
+ virtual UChar_t WriteRCUTrailer(Int_t rcuId);
//this method is used to write the RCU trailer
void SetVerbose(Int_t val) {fVerbose = val;}
UInt_t fDataHeaderPos;//Data header position
// Now the parameters for the mapping
- const AliAltroMapping* fMapping; // Pointer to the mapping handler
+ AliAltroMapping* fMapping; // Pointer to the mapping handler
ClassDef(AliAltroBuffer,0) // Interface to the Altro format
};