BmnRoot
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.
 

Detailed Description

BmnNdet interface class to the unique address.

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]

static uint32_t BmnNdetAddress::GetAddress ( uint32_t  ArmId,
uint32_t  RowId,
uint32_t  ColumnId,
uint32_t  LayerId 
)
inlinestatic

Return address.

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 kNDET.

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

◆ GetAddress() [2/2]

static uint32_t BmnNdetAddress::GetAddress ( uint32_t  ArmId,
uint32_t  RowId,
uint32_t  ColumnId,
uint32_t  LayerId 
)
inlinestatic

Return address.

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 kNDET.

◆ GetArmId() [1/2]

static uint32_t BmnNdetAddress::GetArmId ( uint32_t  address)
inlinestatic

Return Arm id from address.

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

Definition at line 79 of file BmnNdetAddress.h.

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

◆ GetArmId() [2/2]

static uint32_t BmnNdetAddress::GetArmId ( uint32_t  address)
inlinestatic

Return Arm id from address.

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

Definition at line 79 of file BmnNdetAddress.h.

◆ GetColumnId() [1/2]

static uint32_t BmnNdetAddress::GetColumnId ( uint32_t  address)
inlinestatic

Return Column id from address.

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

Definition at line 99 of file BmnNdetAddress.h.

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

◆ GetColumnId() [2/2]

static uint32_t BmnNdetAddress::GetColumnId ( uint32_t  address)
inlinestatic

Return Column id from address.

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

Definition at line 99 of file BmnNdetAddress.h.

◆ GetInfoString() [1/2]

static std::string BmnNdetAddress::GetInfoString ( uint32_t  address)
inlinestatic

Return a formatted string with all address components.

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(), BmnNdetDigit::Print(), BmnNdetPoint::Print(), BmnNdetCell::Print(), and BmnNdet::ProcessHits().

◆ GetInfoString() [2/2]

static std::string BmnNdetAddress::GetInfoString ( uint32_t  address)
inlinestatic

Return a formatted string with all address components.

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().

◆ GetLayerId() [1/2]

static uint32_t BmnNdetAddress::GetLayerId ( uint32_t  address)
inlinestatic

Return Layer id from address.

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

Definition at line 109 of file BmnNdetAddress.h.

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

◆ GetLayerId() [2/2]

static uint32_t BmnNdetAddress::GetLayerId ( uint32_t  address)
inlinestatic

Return Layer id from address.

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

Definition at line 109 of file BmnNdetAddress.h.

◆ GetRowId() [1/2]

static uint32_t BmnNdetAddress::GetRowId ( uint32_t  address)
inlinestatic

Return Row id from address.

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

Definition at line 89 of file BmnNdetAddress.h.

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

◆ GetRowId() [2/2]

static uint32_t BmnNdetAddress::GetRowId ( uint32_t  address)
inlinestatic

Return Row id from address.

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

Definition at line 89 of file BmnNdetAddress.h.

◆ GetSystemId() [1/2]

static uint32_t BmnNdetAddress::GetSystemId ( uint32_t  address)
inlinestatic

Return System identifier from address.

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

Definition at line 69 of file BmnNdetAddress.h.

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

◆ GetSystemId() [2/2]

static uint32_t BmnNdetAddress::GetSystemId ( uint32_t  address)
inlinestatic

Return System identifier from address.

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

Definition at line 69 of file BmnNdetAddress.h.


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