ATLAS Offline Software
|
#include <CTP_Decoder.h>
Public Member Functions | |
CTP_Decoder () | |
Helper class to decode the CTP data fragment. More... | |
void | setRDO (const CTP_RDO *rdo) |
Set RDO and fill internal variables from the data object. More... | |
const CTP_RDO * | getRDO () const |
Accessor function to retrieve pointer to RDO object. More... | |
const std::vector< CTP_BC > & | getBunchCrossings () |
Get vector reference of bunch-crossing data of the current event. More... | |
const CTP_BC & | getBunchCrossing (unsigned int pos) |
Get data of a single bunch-crossing. More... | |
bool | checkTrigger (unsigned int itemNo, unsigned int bcPos) |
Test the LVL1 trigger result for a certain trigger item. More... | |
bool | checkTriggerAfterPrescale (unsigned int itemNo, unsigned int bcPos) |
Test the LVL1 trigger result after pre-scale factors are applied, before the final trigger decision, which includes the trigger masks, is taken. More... | |
std::vector< unsigned int > | getAllTriggers (unsigned int bcPos) |
Function to obtain a vector with the numbers of the trigger items that fired for the current event. More... | |
void | dumpData () const |
Helper to dump data for debugging. More... | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
const CTP_RDO * | m_rdo |
The RDO member. More... | |
std::vector< CTP_BC > | m_BCs |
Vector of BCs for the current event. More... | |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
Definition at line 142 of file CTP_Decoder.h.
CTP_Decoder::CTP_Decoder | ( | ) |
Helper class to decode the CTP data fragment.
The CTP ROD data fragment contains the LVL1 trigger inputs (160 PITs), and the final trigger result in three stages, before pre-scale factors, after pre-scale factors, and after veto (dead-time, busy). All of these trigger bits can be stored for a number of bunch-crossings (BCs), up to 63, where the L1A can be almost anywhere within this window. In addition, the GPS time-stamp of the LVL1 trigger decision is stored as part of the data fragment.
Definition at line 15 of file CTP_Decoder.cxx.
bool CTP_Decoder::checkTrigger | ( | unsigned int | itemNo, |
unsigned int | bcPos | ||
) |
Test the LVL1 trigger result for a certain trigger item.
itemNo | The trigger item that shall be tested |
bcPos | The bunch-crossing in the readout window that is to be checked |
Definition at line 143 of file CTP_Decoder.cxx.
bool CTP_Decoder::checkTriggerAfterPrescale | ( | unsigned int | itemNo, |
unsigned int | bcPos | ||
) |
Test the LVL1 trigger result after pre-scale factors are applied, before the final trigger decision, which includes the trigger masks, is taken.
Here one sees all triggers of an event, irrespective of the trigger mask.
itemNo | The trigger item that shall be tested |
bcPos | The bunch-crossing in the readout window that is to be checked |
Definition at line 157 of file CTP_Decoder.cxx.
void CTP_Decoder::dumpData | ( | ) | const |
std::vector< unsigned int > CTP_Decoder::getAllTriggers | ( | unsigned int | bcPos | ) |
Function to obtain a vector with the numbers of the trigger items that fired for the current event.
bcPos | The bunch-crossing in the readout window that is to be used |
Definition at line 172 of file CTP_Decoder.cxx.
Get data of a single bunch-crossing.
Definition at line 185 of file CTP_Decoder.h.
Get vector reference of bunch-crossing data of the current event.
Definition at line 181 of file CTP_Decoder.h.
Accessor function to retrieve pointer to RDO object.
Definition at line 177 of file CTP_Decoder.h.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
lvl | The message level to test against |
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
Set RDO and fill internal variables from the data object.
Definition at line 20 of file CTP_Decoder.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Vector of BCs for the current event.
Definition at line 226 of file CTP_Decoder.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
The RDO member.
Definition at line 224 of file CTP_Decoder.h.