BmnRoot
Loading...
Searching...
No Matches
BmnAddress Class Reference

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

#include <BmnAddress.h>

Public Member Functions

 BmnAddress ()
 
virtual ~BmnAddress ()
 

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.

Version
1.0

BmnAddress 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 24 of file BmnAddress.h.

Constructor & Destructor Documentation

◆ BmnAddress()

BmnAddress::BmnAddress ( )
inline

Constructor

Definition at line 30 of file BmnAddress.h.

◆ ~BmnAddress()

virtual BmnAddress::~BmnAddress ( )
inlinevirtual

Destructor

Definition at line 34 of file BmnAddress.h.

Member Function Documentation

◆ GetNofSystemBits()

static Int_t BmnAddress::GetNofSystemBits ( )
inlinestatic

Number of bits for system Id in the address field

Returns
Number of bits

Definition at line 40 of file BmnAddress.h.

References fgkSystemBits.

◆ GetSystemId()

static Int_t BmnAddress::GetSystemId ( UInt_t  address)
inlinestatic

Get the system Id from the address

Parameters
addressUnique address
Returns
systemId

Definition at line 47 of file BmnAddress.h.

References fgkSystemBits.

Member Data Documentation

◆ fgkSystemBits

const Int_t BmnAddress::fgkSystemBits = 4
staticprotected

Number of bits for system Id in the address field

Definition at line 55 of file BmnAddress.h.

Referenced by GetNofSystemBits(), and GetSystemId().


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