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

BmnHodo interface class to the unique address. More...

#include <BmnHodoAddress.h>

Static Public Member Functions

static uint32_t GetAddress (uint32_t StripId, uint32_t StripSide, uint32_t Gain)
 Return address from system ID, StripId, StripSide, Gain.
 
static uint32_t GetSystemId (uint32_t address)
 Return System identifier from address.
 
static uint32_t GetStripId (uint32_t address)
 Return Strip id from address.
 
static uint32_t GetStripSide (uint32_t address)
 Return Strip side from address.
 
static uint32_t GetGain (uint32_t address)
 Return Gain from address.
 
static uint32_t GetAddress (uint32_t StripId, uint32_t StripSide, uint32_t Gain)
 Return address from system ID, StripId, StripSide, Gain.
 
static uint32_t GetSystemId (uint32_t address)
 Return System identifier from address.
 
static uint32_t GetStripId (uint32_t address)
 Return Strip id from address.
 
static uint32_t GetStripSide (uint32_t address)
 Return Strip side from address.
 
static uint32_t GetGain (uint32_t address)
 Return Gain from address.
 

Detailed Description

BmnHodo interface class to the unique address.

Author
Nikolay Karpushkin karpu.nosp@m.shki.nosp@m.n@inr.nosp@m..ru
Version
1.0

BmnHodoAddress is the class for the concrete interfaces to the unique address, which is encoded in a 32-bit field (uint32_t), for the Hodo detector elements.

                                3         2         1         0   Shift  Bits  Values

Current definition: 10987654321098765432109876543210 System id on bits 0- 4 00000000000000000000000000011111 << 0 5 31 Strip idx on bits 6-10 00000000000000000000011111000000 << 6 5 31 Strip side on bits 11-11 00000000000000000000100000000000 <<11 1 1 Gain on bits 12-12 00000000000000000001000000000000 <<12 1 1

Definition at line 25 of file BmnHodoAddress.h.

Member Function Documentation

◆ GetAddress() [1/2]

static uint32_t BmnHodoAddress::GetAddress ( uint32_t  StripId,
uint32_t  StripSide,
uint32_t  Gain 
)
inlinestatic

◆ GetAddress() [2/2]

static uint32_t BmnHodoAddress::GetAddress ( uint32_t  StripId,
uint32_t  StripSide,
uint32_t  Gain 
)
inlinestatic

Return address from system ID, StripId, StripSide, Gain.

Parameters
[in]StripId.
[in]StripSide.
[in]Gain.
Returns
Address from system ID, StripId, StripSide, Gain.

Definition at line 35 of file BmnHodoAddress.h.

References kHODO.

◆ GetGain() [1/2]

static uint32_t BmnHodoAddress::GetGain ( uint32_t  address)
inlinestatic

Return Gain from address.

Parameters
[in]addressUnique channel address.
Returns
Gain from address.

Definition at line 80 of file BmnHodoAddress.h.

Referenced by BmnHodoDigitizer::Exec(), BmnHodoDigi::GetGain(), and BmnHodoDigit::GetGain().

◆ GetGain() [2/2]

static uint32_t BmnHodoAddress::GetGain ( uint32_t  address)
inlinestatic

Return Gain from address.

Parameters
[in]addressUnique channel address.
Returns
Gain from address.

Definition at line 80 of file BmnHodoAddress.h.

◆ GetStripId() [1/2]

static uint32_t BmnHodoAddress::GetStripId ( uint32_t  address)
inlinestatic

Return Strip id from address.

Parameters
[in]addressUnique channel address.
Returns
Strip id from address.

Definition at line 60 of file BmnHodoAddress.h.

Referenced by BmnHodoDigitizer::Exec(), BmnHodoGeo::GetMaxStripId(), and BmnHodoDigit::GetStripId().

◆ GetStripId() [2/2]

static uint32_t BmnHodoAddress::GetStripId ( uint32_t  address)
inlinestatic

Return Strip id from address.

Parameters
[in]addressUnique channel address.
Returns
Strip id from address.

Definition at line 60 of file BmnHodoAddress.h.

◆ GetStripSide() [1/2]

static uint32_t BmnHodoAddress::GetStripSide ( uint32_t  address)
inlinestatic

Return Strip side from address.

Parameters
[in]addressUnique channel address.
Returns
Strip side from address.

Definition at line 70 of file BmnHodoAddress.h.

Referenced by BmnHodoDigitizer::Exec(), BmnHodoDigi::GetStripSide(), and BmnHodoDigit::GetStripSide().

◆ GetStripSide() [2/2]

static uint32_t BmnHodoAddress::GetStripSide ( uint32_t  address)
inlinestatic

Return Strip side from address.

Parameters
[in]addressUnique channel address.
Returns
Strip side from address.

Definition at line 70 of file BmnHodoAddress.h.

◆ GetSystemId() [1/2]

static uint32_t BmnHodoAddress::GetSystemId ( uint32_t  address)
inlinestatic

Return System identifier from address.

Parameters
[in]addressUnique channel address.
Returns
System identifier from address.

Definition at line 50 of file BmnHodoAddress.h.

Referenced by BmnHodoDigit::GetSystemId().

◆ GetSystemId() [2/2]

static uint32_t BmnHodoAddress::GetSystemId ( uint32_t  address)
inlinestatic

Return System identifier from address.

Parameters
[in]addressUnique channel address.
Returns
System identifier from address.

Definition at line 50 of file BmnHodoAddress.h.


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