![]() |
ATLAS Offline Software
|
Utility functions for xAOD::CTPResult objects that rely on tdaq-common. More...
Enumerations | |
enum | WordType { WordType::TIP, WordType::TBP, WordType::TAP, WordType::TAV, WordType::Extra } |
Enum describing the different word types in the CTP result. More... | |
Functions | |
void | initialize (xAOD::CTPResult &ctpRes, uint32_t ctpVersionNumber, const uint32_t nBCs=1, uint32_t nExtraWords=0) |
Initialize with a number of bunch crossings of the readout window. More... | |
void | initialize (xAOD::CTPResult &ctpRes, uint32_t ctpVersionNumber, const std::vector< uint32_t > &data, uint32_t nExtraWords=0) |
Initialize with raw data words from one or more bunch crossings. More... | |
uint32_t | getTimeSec (const xAOD::CTPResult &ctpRes) |
Get the time in seconds. More... | |
void | setTimeSec (xAOD::CTPResult &ctpRes, const uint32_t sec) |
Set the time in seconds. More... | |
uint32_t | getTimeNanoSec (const xAOD::CTPResult &ctpRes) |
Get the time in nanoseconds. More... | |
void | setTimeNanoSec (xAOD::CTPResult &ctpRes, const uint32_t nano) |
Set the time in nanoseconds. More... | |
void | setNumberOfBunches (xAOD::CTPResult &ctpRes, const uint32_t nBCs) |
Set the number of bunch crossings. More... | |
void | setNumberOfAdditionalWords (xAOD::CTPResult &ctpRes, const uint32_t nExtraWords) |
Set the number of additional data words. More... | |
std::vector< uint32_t > | getTIPWords (const xAOD::CTPResult &ctpRes) |
Get the TIP (Trigger Inputs to the CTP) words (in Run3 512 items) More... | |
std::vector< uint32_t > | getTBPWords (const xAOD::CTPResult &ctpRes) |
Get the TBP (Trigger Before Prescale) words. More... | |
std::vector< uint32_t > | getTAPWords (const xAOD::CTPResult &ctpRes) |
Get the TAP (Trigger After Prescale) words. More... | |
std::vector< uint32_t > | getTAVWords (const xAOD::CTPResult &ctpRes) |
Get the TAV (Trigger After Veto) words. More... | |
std::vector< uint32_t > | getExtraWords (const xAOD::CTPResult &ctpRes) |
Get additional words. More... | |
std::vector< uint32_t > | getWords (const xAOD::CTPResult &ctpRes, CTPResultUtils::WordType type) |
Helper to retrieve specific words. More... | |
uint32_t | getTimeSinceLastL1A (const xAOD::CTPResult &ctpRes) |
Get the time since the last 1 accept. More... | |
Utility functions for xAOD::CTPResult objects that rely on tdaq-common.
Declared here as tdaq-common is used in TrigT1Interfaces and not xAODTrigger. Prevents using XAOD_ANALYSIS macro in xAOD class.
|
strong |
Enum describing the different word types in the CTP result.
Enumerator | |
---|---|
TIP | |
TBP | |
TAP | |
TAV | |
Extra |
Definition at line 27 of file CTPResultUtils.h.
std::vector< uint32_t > CTPResultUtils::getExtraWords | ( | const xAOD::CTPResult & | ctpRes | ) |
Get additional words.
Definition at line 120 of file CTPResultUtils.cxx.
std::vector< uint32_t > CTPResultUtils::getTAPWords | ( | const xAOD::CTPResult & | ctpRes | ) |
Get the TAP (Trigger After Prescale) words.
Definition at line 114 of file CTPResultUtils.cxx.
std::vector< uint32_t > CTPResultUtils::getTAVWords | ( | const xAOD::CTPResult & | ctpRes | ) |
Get the TAV (Trigger After Veto) words.
Definition at line 117 of file CTPResultUtils.cxx.
std::vector< uint32_t > CTPResultUtils::getTBPWords | ( | const xAOD::CTPResult & | ctpRes | ) |
Get the TBP (Trigger Before Prescale) words.
Definition at line 111 of file CTPResultUtils.cxx.
uint32_t CTPResultUtils::getTimeNanoSec | ( | const xAOD::CTPResult & | ctpRes | ) |
Get the time in nanoseconds.
Definition at line 65 of file CTPResultUtils.cxx.
uint32_t CTPResultUtils::getTimeSec | ( | const xAOD::CTPResult & | ctpRes | ) |
uint32_t CTPResultUtils::getTimeSinceLastL1A | ( | const xAOD::CTPResult & | ctpRes | ) |
Get the time since the last 1 accept.
std::vector< uint32_t > CTPResultUtils::getTIPWords | ( | const xAOD::CTPResult & | ctpRes | ) |
Get the TIP (Trigger Inputs to the CTP) words (in Run3 512 items)
Definition at line 108 of file CTPResultUtils.cxx.
std::vector< uint32_t > CTPResultUtils::getWords | ( | const xAOD::CTPResult & | ctpRes, |
CTPResultUtils::WordType | type | ||
) |
Helper to retrieve specific words.
type | The word type to retrieve. |
Definition at line 123 of file CTPResultUtils.cxx.
void CTPResultUtils::initialize | ( | xAOD::CTPResult & | ctpRes, |
uint32_t | ctpVersionNumber, | ||
const std::vector< uint32_t > & | data, | ||
uint32_t | nExtraWords = 0 |
||
) |
Initialize with raw data words from one or more bunch crossings.
ctpVersionNumber | The version number of the CTP data format. |
data | Vector of raw data words. |
nExtraWords | Number of extra data words. |
Definition at line 30 of file CTPResultUtils.cxx.
void CTPResultUtils::initialize | ( | xAOD::CTPResult & | ctpRes, |
uint32_t | ctpVersionNumber, | ||
const uint32_t | nBCs = 1 , |
||
uint32_t | nExtraWords = 0 |
||
) |
Initialize with a number of bunch crossings of the readout window.
ctpVersionNumber | The version number of the CTP data format. |
nBCs | Number of bunch crossings in the readout window. |
nExtraWords | Number of extra data words. |
Definition at line 17 of file CTPResultUtils.cxx.
void CTPResultUtils::setNumberOfAdditionalWords | ( | xAOD::CTPResult & | ctpRes, |
const uint32_t | nExtraWords | ||
) |
Set the number of additional data words.
nExtraWords | Number of extra words. |
Definition at line 96 of file CTPResultUtils.cxx.
void CTPResultUtils::setNumberOfBunches | ( | xAOD::CTPResult & | ctpRes, |
const uint32_t | nBCs | ||
) |
Set the number of bunch crossings.
nBCs | Number of bunch crossings. |
Definition at line 84 of file CTPResultUtils.cxx.
void CTPResultUtils::setTimeNanoSec | ( | xAOD::CTPResult & | ctpRes, |
const uint32_t | nano | ||
) |
Set the time in nanoseconds.
nano | Time in nanoseconds. |
Definition at line 74 of file CTPResultUtils.cxx.
void CTPResultUtils::setTimeSec | ( | xAOD::CTPResult & | ctpRes, |
const uint32_t | sec | ||
) |
Set the time in seconds.
sec | Time in seconds. |
Definition at line 55 of file CTPResultUtils.cxx.