EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmAddress.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CbmAddress.h
1 
6 #ifndef CBMADDRESS_H
7 #define CBMADDRESS_H 1
8 
9 #include "Rtypes.h"
10 #include "CbmModuleList.h"
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
35 {
36  public:
37 
38 
40  CbmAddress() { };
41 
42 
44  virtual ~CbmAddress() { };
45 
46 
50  static Int_t GetNofSystemBits() { return fgkSystemBits; }
51 
52 
57  static Int_t GetSystemId(UInt_t address) {
58  return address & ( ( 1 << fgkSystemBits ) - 1 );
59  }
60 
61 
62  protected:
63 
65  static const Int_t fgkSystemBits = 4;
66 
67 };
68 
69 #endif /* CBMADDRESS_H */