#include <CTPUnpackingTool.h>
Definition at line 16 of file CTPUnpackingTool.h.
◆ CTPUnpackingTool()
CTPUnpackingTool::CTPUnpackingTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ decode()
Fills the list of chains that should be activated in a given event (note HLT prescaling happens at a later stage)
Reimplemented from CTPUnpackingToolBase.
Definition at line 93 of file CTPUnpackingTool.cxx.
98 const size_t bitsSize = ctpBits.size();
99 constexpr
static size_t wordSize{32};
101 for (
size_t wordCounter = 0; wordCounter < bitsSize; ++wordCounter ) {
102 for (
size_t bitCounter = 0; bitCounter < wordSize; ++bitCounter ) {
103 const size_t ctpIndex = wordSize*wordCounter + bitCounter;
104 const bool decision = ( ctpBits[wordCounter].roIWord() & ((
uint32_t)1 << bitCounter) ) > 0;
109 ATH_MSG_DEBUG(
"L1 item " << ctpIndex <<
" active, enabling chains "
110 << (
m_forceEnable ?
" due to the forceEnable flag" :
" due to the seed"));
115 enabledChains.insert( enabledChains.end(), itr->second.begin(), itr->second.end() );
123 enabledChains.insert( enabledChains.end(), itr->second.begin(), itr->second.end());
126 nChains = enabledChains.size();
127 for (
auto chain: enabledChains ) {
131 ATH_MSG_ERROR(
"All CTP bits were disabled, this event should not have shown here" );
132 return StatusCode::FAILURE;
135 return StatusCode::SUCCESS;
◆ initialize()
StatusCode CTPUnpackingTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ isEmulated()
virtual bool CTPUnpackingToolBase::isEmulated |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ passBeforePrescaleSelection()
StatusCode CTPUnpackingTool::passBeforePrescaleSelection |
( |
const ROIB::RoIBResult * |
roib, |
|
|
const std::vector< std::string > & |
l1ItemNames, |
|
|
bool & |
pass |
|
) |
| const |
|
overridevirtual |
Reimplemented from CTPUnpackingToolBase.
Definition at line 139 of file CTPUnpackingTool.cxx.
147 for (
const std::string& l1name : l1ItemNames) {
151 const size_t bitCounter = ctpId % 32;
152 const size_t wordCounter = ctpId / 32;
154 const bool decision = (ctpBits[wordCounter].roIWord() & ((
uint32_t)1 << bitCounter)) > 0;
156 pass = (pass || decision);
160 return StatusCode::FAILURE;
164 return StatusCode::SUCCESS;
◆ start()
StatusCode CTPUnpackingTool::start |
( |
| ) |
|
|
overridevirtual |
Definition at line 33 of file CTPUnpackingTool.cxx.
34 ATH_MSG_INFO(
"Updating CTP bits decoding configuration");
54 return StatusCode::SUCCESS;
58 ATH_MSG_WARNING(itemName <<
" used to seed the chain " <<
id <<
" not in the configuration ");
59 return StatusCode::SUCCESS;
61 ATH_MSG_ERROR(itemName <<
" used to seed the chain " <<
id <<
" not in the configuration ");
62 return StatusCode::FAILURE;
69 if (
chain.l1item().empty() ) {
71 }
else if (
chain.l1item().find(
',') != std::string::npos ) {
73 std::vector<std::string>
items;
75 for (
const std::string&
i:
items ) {
76 ATH_CHECK( addIfItemExists(
i, chainID,
true ) );
84 for (
auto chain: ctpIDtoChain.second ) {
89 return StatusCode::SUCCESS;
◆ m_ctpToChain
std::unordered_map<int, HLT::IDVec> CTPUnpackingToolBase::m_ctpToChain |
|
protectedinherited |
◆ m_forceEnable
Gaudi::Property<bool> CTPUnpackingToolBase::m_forceEnable |
|
protectedinherited |
Initial value:{
this, "ForceEnableAllChains", false, "Enables all chains in each event, testing mode"}
Definition at line 47 of file CTPUnpackingToolBase.h.
◆ m_HLTMenuKey
Initial value:{
this, "HLTTriggerMenu", "DetectorStore+HLTTriggerMenu", "HLT Menu"}
Definition at line 38 of file CTPUnpackingTool.h.
◆ m_itemNametoCTPIDMap
std::map<std::string, size_t> CTPUnpackingTool::m_itemNametoCTPIDMap |
|
private |
◆ m_L1MenuKey
Initial value:{
this, "L1TriggerMenu", "DetectorStore+L1TriggerMenu", "L1 Menu"}
Definition at line 40 of file CTPUnpackingTool.h.
◆ m_monTool
◆ m_useTBPBit
Gaudi::Property<bool> CTPUnpackingTool::m_useTBPBit |
|
private |
Initial value:{
this, "UseTBPBits", false,
"When true, use Trigger Before Prescale bits instead of Trigger After Veto (for testing only)"}
Definition at line 43 of file CTPUnpackingTool.h.
◆ s_CTPIDForUnseededChains
constexpr int CTPUnpackingToolBase::s_CTPIDForUnseededChains = -1 |
|
staticconstexprprotectedinherited |
The documentation for this class was generated from the following files: