- void PackWord(ULong_t &BaseWord, ULong_t Word, Int_t StartBit, Int_t StopBit);
- //This method stores the value of the variable Word of StopBit-StartBit+1 bits
- //in BaseWord, starting from the bit StartBit
- void UnpackWord(ULong_t PackedWord, Int_t StartBit, Int_t StopBit, ULong_t &Word);
- //This method extracts a group of adjacent bits, specified by StartBit and StopBit,
- //from the word PackedWord. The resulting word is saved in the Word variable
- void WriteChipHeader(Int_t ChipAddr,Int_t EventCnt,ULong_t &BaseWord);
- void WriteChipTrailer(ULong_t *buf,Int_t ChipHitCount,ULong_t &BaseWord);
- void WriteHit(ULong_t *buf,Int_t RowAddr,Int_t HitAddr,ULong_t &BaseWord);
+ void WriteChipHeader(Int_t ChipAddr,Int_t halfStave,UInt_t &BaseWord);
+ void WriteChipTrailer(UInt_t *buf, Int_t ChipHitCount, Bool_t foBit, UInt_t &BaseWord);
+ void WriteHit(UInt_t *buf,Int_t RowAddr,Int_t HitAddr,UInt_t &BaseWord);