Project
Loading...
Searching...
No Matches
o2::mid::CrateMapper Class Reference

#include <CrateMapper.h>

Public Member Functions

 CrateMapper ()
 
 ~CrateMapper ()=default
 
uint8_t deLocalBoardToRO (uint8_t deId, uint8_t columnId, uint8_t lineId) const
 Converts the LOC ID expressed in the offline convention into the readout convention.
 
uint16_t roLocalBoardToDE (uint8_t uniqueLocId) const
 Converts the LOC ID expressed in readout convention into the LOC ID in MT11 right in the offline convention.
 
bool hasDirectInputY (uint8_t uniqueLocId) const
 Checks if local board ID (RO convention) has direct input from FEE y strips.
 
std::unordered_set< uint8_t > getLocalBoardsWithDirectInputY () const
 Gets the local boards with a direct input from FEE y strips.
 
std::vector< uint8_t > getROBoardIds (uint16_t gbtUniqueId=0xFFFF) const
 Returns the list of local board IDs (RO convention)
 

Detailed Description

Definition at line 28 of file CrateMapper.h.

Constructor & Destructor Documentation

◆ CrateMapper()

o2::mid::CrateMapper::CrateMapper ( )

Ctor

Definition at line 32 of file CrateMapper.cxx.

◆ ~CrateMapper()

o2::mid::CrateMapper::~CrateMapper ( )
default

Member Function Documentation

◆ deLocalBoardToRO()

uint8_t o2::mid::CrateMapper::deLocalBoardToRO ( uint8_t  deId,
uint8_t  columnId,
uint8_t  lineId 
) const

Converts the LOC ID expressed in the offline convention into the readout convention.

Parameters
deIdDetection element ID
columnIdColumn ID
lineIdLine ID
Returns
LOC ID for readout electronics

Definition at line 158 of file CrateMapper.cxx.

◆ getLocalBoardsWithDirectInputY()

std::unordered_set< uint8_t > o2::mid::CrateMapper::getLocalBoardsWithDirectInputY ( ) const
inline

Gets the local boards with a direct input from FEE y strips.

Returns
An unordered set with the local boards IDs (offline convention) with a direct input from FEE y strips

Definition at line 53 of file CrateMapper.h.

◆ getROBoardIds()

std::vector< uint8_t > o2::mid::CrateMapper::getROBoardIds ( uint16_t  gbtUniqueId = 0xFFFF) const

Returns the list of local board IDs (RO convention)

Parameters
gbtUniqueIdLimit the query to the links belonging to the specified gbtUniqueId. If gbtUniqueId is 0xFFFF, return all
Returns
Sorted vector of local board unique IDs (offline convention)

Definition at line 176 of file CrateMapper.cxx.

◆ hasDirectInputY()

bool o2::mid::CrateMapper::hasDirectInputY ( uint8_t  uniqueLocId) const
inline

Checks if local board ID (RO convention) has direct input from FEE y strips.

Parameters
uniqueLocIdLOC ID in the RO convention
Returns
true if local board ID has direct input from FEE y strips

Definition at line 49 of file CrateMapper.h.

◆ roLocalBoardToDE()

uint16_t o2::mid::CrateMapper::roLocalBoardToDE ( uint8_t  uniqueLocId) const

Converts the LOC ID expressed in readout convention into the LOC ID in MT11 right in the offline convention.

Parameters
uniqueLocIdLOC ID for the readout electronics
Returns
LOC ID in the offline way

Definition at line 167 of file CrateMapper.cxx.


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