Project
Loading...
Searching...
No Matches
o2::mid::raw Namespace Reference

Functions

bool isLoc (uint8_t statusWord)
 
bool isCalibration (uint8_t triggerWord)
 
uint8_t getCrateId (uint8_t uniqueLocId)
 
uint8_t getLocId (uint8_t uniqueLocId)
 
uint8_t makeUniqueLocID (uint8_t crateId, uint8_t locId)
 
bool isBare (const o2::header::RDHAny &rdh)
 Test if the data comes from the common logic.
 

Function Documentation

◆ getCrateId()

uint8_t o2::mid::raw::getCrateId ( uint8_t  uniqueLocId)
inline

Gets the crate ID from the absolute local board ID

Parameters
uniqueLocIdUnique board ID
Returns
Crate ID

Definition at line 75 of file ROBoard.h.

◆ getLocId()

uint8_t o2::mid::raw::getLocId ( uint8_t  uniqueLocId)
inline

Gets the loc ID in the crate from the unique local board ID

Parameters
uniqueLocIdUnique board ID
Returns
Local board ID in crate

Definition at line 80 of file ROBoard.h.

◆ isBare()

bool o2::mid::raw::isBare ( const o2::header::RDHAny rdh)
inline

Test if the data comes from the common logic.

Definition at line 31 of file Utils.h.

◆ isCalibration()

bool o2::mid::raw::isCalibration ( uint8_t  triggerWord)
inline

Tests the calibration bit of the card

Parameters
triggerWordTrigger word
Returns
true if calibration trigger is fired

Definition at line 70 of file ROBoard.h.

◆ isLoc()

bool o2::mid::raw::isLoc ( uint8_t  statusWord)
inline

Tests the local card bit

Parameters
statusWordStatus word
Returns
false if this is a regional board

Definition at line 65 of file ROBoard.h.

◆ makeUniqueLocID()

uint8_t o2::mid::raw::makeUniqueLocID ( uint8_t  crateId,
uint8_t  locId 
)
inline

Builds the unique loc ID from the crate ID and the loc ID in the crate

Parameters
crateIdCrate ID
locIdBoard ID
Returns
Unique board ID

Definition at line 86 of file ROBoard.h.