BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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.

Static Private Attributes

static const uint32_t fgkSystemIdLength = 31
static const uint32_t fgkStripIdLength = 31
static const uint32_t fgkStripSideLength = 1
static const uint32_t fgkGainLength = 1
static const uint32_t fgkSystemIdShift = 0
static const uint32_t fgkStripIdShift = 6
static const uint32_t fgkStripSideShift = 11
static const uint32_t fgkGainShift = 12

Detailed Description

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]

uint32_t BmnHodoAddress::GetAddress ( uint32_t StripId,
uint32_t StripSide,
uint32_t Gain )
inlinestatic
Parameters
[in]StripIdStrip id.
[in]StripSideStrip side.
[in]GainGain.
Returns
Address from system ID, StripId, StripSide, Gain.

Definition at line 35 of file BmnHodoAddress.h.

References fgkGainLength, fgkGainShift, fgkStripIdLength, fgkStripIdShift, fgkStripSideLength, fgkStripSideShift, fgkSystemIdLength, fgkSystemIdShift, and kHODO.

Referenced by BmnHistHodo::~BmnHistHodo(), BmnHistHodo::ClearRefRun(), BmnHistHodo::CreateHistos(), BmnHistHodo::DrawBoth(), BmnHodoDigitizer::Exec(), BmnHistHodo::FillFromDigi(), BmnHodoGeo::GetAddressFromPath(), make_flat_index(), BmnHodoRaw2Digit::ParseCalibrationJson(), BmnHodoRaw2Digit::ParseConfig(), BmnHistHodo::Reset(), BmnHistHodo::SetDir(), and simple_analysis().

Here is the caller graph for this function:

◆ GetAddress() [2/2]

uint32_t BmnHodoAddress::GetAddress ( uint32_t StripId,
uint32_t StripSide,
uint32_t Gain )
inlinestatic
Parameters
[in]StripIdStrip id.
[in]StripSideStrip side.
[in]GainGain.
Returns
Address from system ID, StripId, StripSide, Gain.

Definition at line 35 of file BmnHodoAddress.h.

References fgkGainLength, fgkGainShift, fgkStripIdLength, fgkStripIdShift, fgkStripSideLength, fgkStripSideShift, fgkSystemIdLength, fgkSystemIdShift, and kHODO.

◆ GetGain() [1/2]

uint32_t BmnHodoAddress::GetGain ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Gain from address.

Definition at line 80 of file BmnHodoAddress.h.

References fgkGainLength, and fgkGainShift.

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

Here is the caller graph for this function:

◆ GetGain() [2/2]

uint32_t BmnHodoAddress::GetGain ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Gain from address.

Definition at line 80 of file BmnHodoAddress.h.

References fgkGainLength, and fgkGainShift.

◆ GetStripId() [1/2]

uint32_t BmnHodoAddress::GetStripId ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Strip id from address.

Definition at line 60 of file BmnHodoAddress.h.

References fgkStripIdLength, and fgkStripIdShift.

Referenced by BmnHodoGeo::GetMaxStripId(), BmnHodoDigit::GetStripId(), BmnHodoReconstructor::MarkPileup(), and BmnHodoReconstructor::ParseGeometry().

Here is the caller graph for this function:

◆ GetStripId() [2/2]

uint32_t BmnHodoAddress::GetStripId ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Strip id from address.

Definition at line 60 of file BmnHodoAddress.h.

References fgkStripIdLength, and fgkStripIdShift.

◆ GetStripSide() [1/2]

uint32_t BmnHodoAddress::GetStripSide ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Strip side from address.

Definition at line 70 of file BmnHodoAddress.h.

References fgkStripSideLength, and fgkStripSideShift.

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

Here is the caller graph for this function:

◆ GetStripSide() [2/2]

uint32_t BmnHodoAddress::GetStripSide ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Strip side from address.

Definition at line 70 of file BmnHodoAddress.h.

References fgkStripSideLength, and fgkStripSideShift.

◆ GetSystemId() [1/2]

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

Definition at line 50 of file BmnHodoAddress.h.

References fgkSystemIdLength, and fgkSystemIdShift.

Referenced by BmnHodoDigit::GetSystemId().

Here is the caller graph for this function:

◆ GetSystemId() [2/2]

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

Definition at line 50 of file BmnHodoAddress.h.

References fgkSystemIdLength, and fgkSystemIdShift.

Member Data Documentation

◆ fgkGainLength

const uint32_t BmnHodoAddress::fgkGainLength = 1
staticprivate

Definition at line 87 of file BmnHodoAddress.h.

Referenced by GetAddress(), and GetGain().

◆ fgkGainShift

const uint32_t BmnHodoAddress::fgkGainShift = 12
staticprivate

Definition at line 93 of file BmnHodoAddress.h.

Referenced by GetAddress(), and GetGain().

◆ fgkStripIdLength

const uint32_t BmnHodoAddress::fgkStripIdLength = 31
staticprivate

Definition at line 85 of file BmnHodoAddress.h.

Referenced by GetAddress(), and GetStripId().

◆ fgkStripIdShift

const uint32_t BmnHodoAddress::fgkStripIdShift = 6
staticprivate

Definition at line 91 of file BmnHodoAddress.h.

Referenced by GetAddress(), and GetStripId().

◆ fgkStripSideLength

const uint32_t BmnHodoAddress::fgkStripSideLength = 1
staticprivate

Definition at line 86 of file BmnHodoAddress.h.

Referenced by GetAddress(), and GetStripSide().

◆ fgkStripSideShift

const uint32_t BmnHodoAddress::fgkStripSideShift = 11
staticprivate

Definition at line 92 of file BmnHodoAddress.h.

Referenced by GetAddress(), and GetStripSide().

◆ fgkSystemIdLength

const uint32_t BmnHodoAddress::fgkSystemIdLength = 31
staticprivate

Definition at line 84 of file BmnHodoAddress.h.

Referenced by GetAddress(), and GetSystemId().

◆ fgkSystemIdShift

const uint32_t BmnHodoAddress::fgkSystemIdShift = 0
staticprivate

Definition at line 90 of file BmnHodoAddress.h.

Referenced by GetAddress(), and GetSystemId().


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