1 #ifndef ALIBITPACKING_H
2 #define ALIBITPACKING_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////////////////////////////////
10 /// This is a service class for packing and unpacking bits in a 32 bit word.
12 ///////////////////////////////////////////////////////////////////////////////
17 class AliBitPacking: public TObject {
19 static Bool_t PackWord(UInt_t data, UInt_t &word,
20 Int_t startBit, Int_t stopBit);
21 static UInt_t UnpackWord(UInt_t word, Int_t startBit, Int_t stopBit);
23 ClassDef(AliBitPacking, 0) // class for packing and unpacking bits