BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnScWallAddress Class Reference

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

#include <BmnScWallAddress.h>

Static Public Member Functions

static uint32_t GetAddress (uint32_t CellId)
 Return address from system ID, Cell ID.
static uint32_t GetSystemId (uint32_t address)
 Return System identifier from address.
static uint32_t GetCellId (uint32_t address)
 Return Cell id from address.

Static Private Attributes

static const uint32_t fgkSystemIdLength = 31
static const uint32_t fgkCellIdLength = 1023
static const uint32_t fgkSystemIdShift = 0
static const uint32_t fgkCellIdShift = 5

Detailed Description

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

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

                                3         2         1         0   Shift  Bits  Values

Current definition: 10987654321098765432109876543210 System id on bits 0- 4 00000000000000000000000000011111 << 0 5 31 Cell id on bits 5-14 00000000000000000111111111100000 << 5 10 1023

Definition at line 23 of file BmnScWallAddress.h.

Member Function Documentation

◆ GetAddress()

uint32_t BmnScWallAddress::GetAddress ( uint32_t CellId)
inlinestatic
Parameters
[in]CellIdCell id.

Definition at line 30 of file BmnScWallAddress.h.

References fgkCellIdLength, fgkCellIdShift, fgkSystemIdLength, fgkSystemIdShift, and kSCWALL.

Referenced by BmnScWallDigitizer::FillHitMap(), BmnScWallGeo::GetAddressFromPath(), BmnScWallRaw2Digit::ParseCalibrationJson(), and BmnScWallRaw2Digit::ParseConfig().

Here is the caller graph for this function:

◆ GetCellId()

uint32_t BmnScWallAddress::GetCellId ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Cell id from address.

Definition at line 52 of file BmnScWallAddress.h.

References fgkCellIdLength, and fgkCellIdShift.

Referenced by BmnScWallDigit::GetCellId(), BmnScWallGeo::GetMaxCellId(), and BmnScWallReconstructor::ParseGeometry().

Here is the caller graph for this function:

◆ GetSystemId()

uint32_t BmnScWallAddress::GetSystemId ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
System identifier from address.

Definition at line 42 of file BmnScWallAddress.h.

References fgkSystemIdLength, and fgkSystemIdShift.

Referenced by BmnScWallDigit::GetSystemId().

Here is the caller graph for this function:

Member Data Documentation

◆ fgkCellIdLength

const uint32_t BmnScWallAddress::fgkCellIdLength = 1023
staticprivate

Definition at line 60 of file BmnScWallAddress.h.

Referenced by GetAddress(), and GetCellId().

◆ fgkCellIdShift

const uint32_t BmnScWallAddress::fgkCellIdShift = 5
staticprivate

Definition at line 64 of file BmnScWallAddress.h.

Referenced by GetAddress(), and GetCellId().

◆ fgkSystemIdLength

const uint32_t BmnScWallAddress::fgkSystemIdLength = 31
staticprivate

Definition at line 59 of file BmnScWallAddress.h.

Referenced by GetAddress(), and GetSystemId().

◆ fgkSystemIdShift

const uint32_t BmnScWallAddress::fgkSystemIdShift = 0
staticprivate

Definition at line 63 of file BmnScWallAddress.h.

Referenced by GetAddress(), and GetSystemId().


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