EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmAddress Class Reference

Base class for interfaces to the unique address. More...

#include <EicRoot/blob/master/cbmbase/CbmAddress.h>

Public Member Functions

 CbmAddress ()
 
virtual ~CbmAddress ()
 

Static Public Member Functions

static Int_t GetNofSystemBits ()
 
static Int_t GetSystemId (UInt_t address)
 

Static Protected Attributes

static const Int_t fgkSystemBits = 4
 

Detailed Description

Base class for interfaces to the unique address.

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Version
1.0

CbmAddress is the base class for the concrete interfaces to the unique address, which is encoded in a 32-bit field (Int_t). The definition of this bit field is different for the various detector systems; common for all is that the first four bits are reserved for the system identifier.

Definition at line 34 of file CbmAddress.h.

View newest version in sPHENIX GitHub at line 34 of file CbmAddress.h

Constructor & Destructor Documentation

CbmAddress::CbmAddress ( )
inline

Constructor

Definition at line 40 of file CbmAddress.h.

View newest version in sPHENIX GitHub at line 40 of file CbmAddress.h

virtual CbmAddress::~CbmAddress ( )
inlinevirtual

Destructor

Definition at line 44 of file CbmAddress.h.

View newest version in sPHENIX GitHub at line 44 of file CbmAddress.h

Member Function Documentation

static Int_t CbmAddress::GetNofSystemBits ( )
inlinestatic

Number of bits for system Id in the address field

Returns
Number of bits

Definition at line 50 of file CbmAddress.h.

View newest version in sPHENIX GitHub at line 50 of file CbmAddress.h

References fgkSystemBits.

static Int_t CbmAddress::GetSystemId ( UInt_t  address)
inlinestatic

Get the system Id from the address

Parameters
addressUnique address
Returns
systemId

Definition at line 57 of file CbmAddress.h.

View newest version in sPHENIX GitHub at line 57 of file CbmAddress.h

References fgkSystemBits.

Member Data Documentation

const Int_t CbmAddress::fgkSystemBits = 4
staticprotected

Number of bits for system Id in the address field

Definition at line 65 of file CbmAddress.h.

View newest version in sPHENIX GitHub at line 65 of file CbmAddress.h

Referenced by GetNofSystemBits(), and GetSystemId().


The documentation for this class was generated from the following file: