CbmRoot
CbmAddress.h
Go to the documentation of this file.
1 
6 #ifndef CBMADDRESS_H
7 #define CBMADDRESS_H 1
8 
9 #include <RtypesCore.h> // for ROOT data classes
10 
23 class CbmAddress {
24 public:
26  CbmAddress() {};
27 
28 
30  virtual ~CbmAddress() {};
31 
32 
36  static Int_t GetNofSystemBits() { return fgkSystemBits; }
37 
38 
43  static Int_t GetSystemId(UInt_t address) {
44  return address & ((1 << fgkSystemBits) - 1);
45  }
46 
47 
48 protected:
50  static const Int_t fgkSystemBits = 4;
51 };
52 
53 #endif /* CBMADDRESS_H */
CbmAddress::fgkSystemBits
static const Int_t fgkSystemBits
Definition: CbmAddress.h:50
CbmAddress::~CbmAddress
virtual ~CbmAddress()
Definition: CbmAddress.h:30
CbmAddress
Base class for interfaces to the unique address.
Definition: CbmAddress.h:23
CbmAddress::GetNofSystemBits
static Int_t GetNofSystemBits()
Definition: CbmAddress.h:36
CbmAddress::CbmAddress
CbmAddress()
Definition: CbmAddress.h:26
CbmAddress::GetSystemId
static Int_t GetSystemId(UInt_t address)
Definition: CbmAddress.h:43