BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnNdetAddress Class Reference

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

#include <BmnNdetAddress.h>

Public Member Functions

virtual ~BmnNdetAddress ()
virtual ~BmnNdetAddress ()

Static Public Member Functions

static uint32_t GetAddress (uint32_t ArmId, uint32_t RowId, uint32_t ColumnId, uint32_t LayerId)
 Return address.
static std::string GetInfoString (uint32_t address)
 Return a formatted string with all address components.
static uint32_t GetSystemId (uint32_t address)
 Return System identifier from address.
static uint32_t GetArmId (uint32_t address)
 Return Arm id from address.
static uint32_t GetRowId (uint32_t address)
 Return Row id from address.
static uint32_t GetColumnId (uint32_t address)
 Return Column id from address.
static uint32_t GetLayerId (uint32_t address)
 Return Layer id from address.
static uint32_t GetAddress (uint32_t ArmId, uint32_t RowId, uint32_t ColumnId, uint32_t LayerId)
 Return address.
static std::string GetInfoString (uint32_t address)
 Return a formatted string with all address components.
static uint32_t GetSystemId (uint32_t address)
 Return System identifier from address.
static uint32_t GetArmId (uint32_t address)
 Return Arm id from address.
static uint32_t GetRowId (uint32_t address)
 Return Row id from address.
static uint32_t GetColumnId (uint32_t address)
 Return Column id from address.
static uint32_t GetLayerId (uint32_t address)
 Return Layer id from address.

Static Private Attributes

static const uint32_t fgkSystemIdLength = 31
static const uint32_t fgkArmIdLength = 3
static const uint32_t fgkRowIdLength = 15
static const uint32_t fgkColumnIdLength = 15
static const uint32_t fgkLayerIdLength = 31
static const uint32_t fgkSystemIdShift = 0
static const uint32_t fgkArmIdShift = 5
static const uint32_t fgkRowIdShift = 7
static const uint32_t fgkColumnIdShift = 11
static const uint32_t fgkLayerIdShift = 15

Detailed Description

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

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

                                3         2         1         0   Shift  Bits  Values

Current definition: 10987654321098765432109876543210 System id on bits 0- 4 00000000000000000000000000011111 << 0 5 31 ArmId on bits 5- 6 00000000000000000000000001100000 << 5 2 3 RowId on bits 7-10 00000000000000000000011110000000 << 7 4 15 ColumnId on bits 11-14 00000000000000000111100000000000 << 11 4 15 LayerId on bits 15-19 00000000000011111000000000000000 <<15 5 31

Definition at line 27 of file BmnNdetAddress.h.

Constructor & Destructor Documentation

◆ ~BmnNdetAddress() [1/2]

virtual BmnNdetAddress::~BmnNdetAddress ( )
inlinevirtual

Definition at line 30 of file BmnNdetAddress.h.

◆ ~BmnNdetAddress() [2/2]

virtual BmnNdetAddress::~BmnNdetAddress ( )
inlinevirtual

Definition at line 30 of file BmnNdetAddress.h.

Member Function Documentation

◆ GetAddress() [1/2]

uint32_t BmnNdetAddress::GetAddress ( uint32_t ArmId,
uint32_t RowId,
uint32_t ColumnId,
uint32_t LayerId )
inlinestatic
Parameters
[in]ArmIdarm id.
[in]RowIdrow id.
[in]ColumnIdcolumn id.
[in]LayerIdlayer id.
Returns
Address from system ID, ArmId, RowId, ColumnId, LayerId.

Definition at line 39 of file BmnNdetAddress.h.

References fgkArmIdLength, fgkArmIdShift, fgkColumnIdLength, fgkColumnIdShift, fgkLayerIdLength, fgkLayerIdShift, fgkRowIdLength, fgkRowIdShift, fgkSystemIdLength, fgkSystemIdShift, and kNDET.

Referenced by BmnHistHgnd::FillFromDigi(), BmnNdetGeo::GetAddressFromPath(), BmnNdetEvent::GetCell(), BmnHistHgnd::InitializeAddresses(), BmnHgndRaw2Digit::ParseCalibration(), BmnNdetRaw2Digit::ParseCalibration(), BmnHgndRaw2Digit::ParseConfig(), and BmnNdetRaw2Digit::ParseConfig().

Here is the caller graph for this function:

◆ GetAddress() [2/2]

uint32_t BmnNdetAddress::GetAddress ( uint32_t ArmId,
uint32_t RowId,
uint32_t ColumnId,
uint32_t LayerId )
inlinestatic
Parameters
[in]ArmIdarm id.
[in]RowIdrow id.
[in]ColumnIdcolumn id.
[in]LayerIdlayer id.
Returns
Address from system ID, ArmId, RowId, ColumnId, LayerId.

Definition at line 39 of file BmnNdetAddress.h.

References fgkArmIdLength, fgkArmIdShift, fgkColumnIdLength, fgkColumnIdShift, fgkLayerIdLength, fgkLayerIdShift, fgkRowIdLength, fgkRowIdShift, fgkSystemIdLength, fgkSystemIdShift, and kNDET.

◆ GetArmId() [1/2]

uint32_t BmnNdetAddress::GetArmId ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Arm id from address.

Definition at line 79 of file BmnNdetAddress.h.

References fgkArmIdLength, and fgkArmIdShift.

Referenced by BmnHistHgnd::CreateHistos(), BmnNdetAddressMixin< T >::GetArmId(), and GetInfoString().

Here is the caller graph for this function:

◆ GetArmId() [2/2]

uint32_t BmnNdetAddress::GetArmId ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Arm id from address.

Definition at line 79 of file BmnNdetAddress.h.

References fgkArmIdLength, and fgkArmIdShift.

◆ GetColumnId() [1/2]

uint32_t BmnNdetAddress::GetColumnId ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Column id from address.

Definition at line 99 of file BmnNdetAddress.h.

References fgkColumnIdLength, and fgkColumnIdShift.

Referenced by BmnHistHgnd::CreateHistos(), BmnNdetAddressMixin< T >::GetColumnId(), and GetInfoString().

Here is the caller graph for this function:

◆ GetColumnId() [2/2]

uint32_t BmnNdetAddress::GetColumnId ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Column id from address.

Definition at line 99 of file BmnNdetAddress.h.

References fgkColumnIdLength, and fgkColumnIdShift.

◆ GetInfoString() [1/2]

std::string BmnNdetAddress::GetInfoString ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Formatted string with address components

Definition at line 55 of file BmnNdetAddress.h.

References GetArmId(), GetColumnId(), GetLayerId(), GetRowId(), and GetSystemId().

Referenced by BmnNdetDigi::DrawWfm(), BmnNdetDigitizer::Exec(), BmnNdet::FinaliseTrackProcessing(), BmnNdetCell::Print(), BmnNdetDigit::Print(), BmnNdetPoint::Print(), and BmnNdet::ProcessHits().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetInfoString() [2/2]

std::string BmnNdetAddress::GetInfoString ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Formatted string with address components

Definition at line 55 of file BmnNdetAddress.h.

References GetArmId(), GetColumnId(), GetLayerId(), GetRowId(), and GetSystemId().

Here is the call graph for this function:

◆ GetLayerId() [1/2]

uint32_t BmnNdetAddress::GetLayerId ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Layer id from address.

Definition at line 109 of file BmnNdetAddress.h.

References fgkLayerIdLength, and fgkLayerIdShift.

Referenced by BmnHistHgnd::CreateHistos(), BmnHgndRaw2Digit::FillEvent(), GetInfoString(), and BmnNdetAddressMixin< T >::GetLayerId().

Here is the caller graph for this function:

◆ GetLayerId() [2/2]

uint32_t BmnNdetAddress::GetLayerId ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Layer id from address.

Definition at line 109 of file BmnNdetAddress.h.

References fgkLayerIdLength, and fgkLayerIdShift.

◆ GetRowId() [1/2]

uint32_t BmnNdetAddress::GetRowId ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Row id from address.

Definition at line 89 of file BmnNdetAddress.h.

References fgkRowIdLength, and fgkRowIdShift.

Referenced by BmnHistHgnd::CreateHistos(), GetInfoString(), and BmnNdetAddressMixin< T >::GetRowId().

Here is the caller graph for this function:

◆ GetRowId() [2/2]

uint32_t BmnNdetAddress::GetRowId ( uint32_t address)
inlinestatic
Parameters
[in]addressUnique channel address.
Returns
Row id from address.

Definition at line 89 of file BmnNdetAddress.h.

References fgkRowIdLength, and fgkRowIdShift.

◆ GetSystemId() [1/2]

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

Definition at line 69 of file BmnNdetAddress.h.

References fgkSystemIdLength, and fgkSystemIdShift.

Referenced by GetInfoString(), and BmnNdetAddressMixin< T >::GetSystemId().

Here is the caller graph for this function:

◆ GetSystemId() [2/2]

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

Definition at line 69 of file BmnNdetAddress.h.

References fgkSystemIdLength, and fgkSystemIdShift.

Member Data Documentation

◆ fgkArmIdLength

const uint32_t BmnNdetAddress::fgkArmIdLength = 3
staticprivate

Definition at line 117 of file BmnNdetAddress.h.

Referenced by GetAddress(), and GetArmId().

◆ fgkArmIdShift

const uint32_t BmnNdetAddress::fgkArmIdShift = 5
staticprivate

Definition at line 124 of file BmnNdetAddress.h.

Referenced by GetAddress(), and GetArmId().

◆ fgkColumnIdLength

const uint32_t BmnNdetAddress::fgkColumnIdLength = 15
staticprivate

Definition at line 119 of file BmnNdetAddress.h.

Referenced by GetAddress(), and GetColumnId().

◆ fgkColumnIdShift

const uint32_t BmnNdetAddress::fgkColumnIdShift = 11
staticprivate

Definition at line 126 of file BmnNdetAddress.h.

Referenced by GetAddress(), and GetColumnId().

◆ fgkLayerIdLength

const uint32_t BmnNdetAddress::fgkLayerIdLength = 31
staticprivate

Definition at line 120 of file BmnNdetAddress.h.

Referenced by GetAddress(), and GetLayerId().

◆ fgkLayerIdShift

const uint32_t BmnNdetAddress::fgkLayerIdShift = 15
staticprivate

Definition at line 127 of file BmnNdetAddress.h.

Referenced by GetAddress(), and GetLayerId().

◆ fgkRowIdLength

const uint32_t BmnNdetAddress::fgkRowIdLength = 15
staticprivate

Definition at line 118 of file BmnNdetAddress.h.

Referenced by GetAddress(), and GetRowId().

◆ fgkRowIdShift

const uint32_t BmnNdetAddress::fgkRowIdShift = 7
staticprivate

Definition at line 125 of file BmnNdetAddress.h.

Referenced by GetAddress(), and GetRowId().

◆ fgkSystemIdLength

const uint32_t BmnNdetAddress::fgkSystemIdLength = 31
staticprivate

Definition at line 116 of file BmnNdetAddress.h.

Referenced by GetAddress(), and GetSystemId().

◆ fgkSystemIdShift

const uint32_t BmnNdetAddress::fgkSystemIdShift = 0
staticprivate

Definition at line 123 of file BmnNdetAddress.h.

Referenced by GetAddress(), and GetSystemId().


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