ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigSteer
HLTSeeding
src
CTPUnpackingTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef HLTSEEDING_CTPUNPACKINGTOOL_H
6
#define HLTSEEDING_CTPUNPACKINGTOOL_H
7
8
#include "
CTPUnpackingToolBase.h
"
9
#include "
TrigCompositeUtils/HLTIdentifier.h
"
10
#include "
TrigConfData/HLTMenu.h
"
11
#include "
TrigConfData/L1Menu.h
"
12
#include "
xAODTrigger/CTPResult.h
"
13
17
class
CTPUnpackingTool
:
public
CTPUnpackingToolBase
{
18
public
:
19
20
CTPUnpackingTool
(
const
std::string&
type
,
21
const
std::string& name,
22
const
IInterface* parent );
23
25
virtual
StatusCode
decode
(
const
EventContext& ctx,
const
ROIB::RoIBResult
& roib,
HLT::IDVec
& enabledChains)
const override
;
26
27
virtual
StatusCode
initialize
()
override
;
28
29
virtual
StatusCode
start
()
override
;
30
31
virtual
StatusCode
passBeforePrescaleSelection
(
const
ROIB::RoIBResult
* roib,
32
const
std::vector<std::string>& l1ItemNames,
33
bool
& pass)
const override
;
34
35
private
:
36
// Menu objects (that act here as configuration) need to be available in the detector store. They are provided by
37
// the HLT and LVL1 ConfigSvc during initialize. Therefore, these services have to be configured & instantiated
38
// in jobs that use this tool (and HLTSeeding itself).
39
SG::ReadHandleKey<TrigConf::HLTMenu>
m_HLTMenuKey
{
40
this
,
"HLTTriggerMenu"
,
"DetectorStore+HLTTriggerMenu"
,
"HLT Menu"
};
41
SG::ReadHandleKey<TrigConf::L1Menu>
m_L1MenuKey
{
42
this
,
"L1TriggerMenu"
,
"DetectorStore+L1TriggerMenu"
,
"L1 Menu"
};
43
44
SG::ReadHandleKey<xAOD::CTPResult>
m_ctpResultKey
{
45
this
,
"CTPResult"
,
"StoreGateSvc+CTPResult"
,
"CTP Result"
};
46
47
Gaudi::Property<bool>
m_useTBPBit
{
48
this
,
"UseTBPBits"
,
false
,
49
"When true, use Trigger Before Prescale bits instead of Trigger After Veto (for testing only)"
};
50
51
Gaudi::Property<bool>
m_useEDMxAOD
{
52
this
,
"UseEDMxAOD"
,
false
,
53
"When true, use xAOD::CTPResult object when decoding instead of relying on ROIB::RoIBResult for CTP words"
};
54
55
std::map<std::string, size_t>
m_itemNametoCTPIDMap
;
56
};
57
58
#endif
CTPUnpackingToolBase.h
CTPResult.h
HLTMenu.h
L1Menu.h
HLTIdentifier.h
CTPUnpackingToolBase::CTPUnpackingToolBase
CTPUnpackingToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
CTPUnpackingToolBase.cxx:8
CTPUnpackingTool::m_ctpResultKey
SG::ReadHandleKey< xAOD::CTPResult > m_ctpResultKey
Definition
CTPUnpackingTool.h:44
CTPUnpackingTool::m_HLTMenuKey
SG::ReadHandleKey< TrigConf::HLTMenu > m_HLTMenuKey
Definition
CTPUnpackingTool.h:39
CTPUnpackingTool::passBeforePrescaleSelection
virtual StatusCode passBeforePrescaleSelection(const ROIB::RoIBResult *roib, const std::vector< std::string > &l1ItemNames, bool &pass) const override
Definition
CTPUnpackingTool.cxx:163
CTPUnpackingTool::CTPUnpackingTool
CTPUnpackingTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
CTPUnpackingTool.cxx:16
CTPUnpackingTool::start
virtual StatusCode start() override
Definition
CTPUnpackingTool.cxx:34
CTPUnpackingTool::m_L1MenuKey
SG::ReadHandleKey< TrigConf::L1Menu > m_L1MenuKey
Definition
CTPUnpackingTool.h:41
CTPUnpackingTool::initialize
virtual StatusCode initialize() override
Definition
CTPUnpackingTool.cxx:22
CTPUnpackingTool::m_useTBPBit
Gaudi::Property< bool > m_useTBPBit
Definition
CTPUnpackingTool.h:47
CTPUnpackingTool::m_itemNametoCTPIDMap
std::map< std::string, size_t > m_itemNametoCTPIDMap
Definition
CTPUnpackingTool.h:55
CTPUnpackingTool::m_useEDMxAOD
Gaudi::Property< bool > m_useEDMxAOD
Definition
CTPUnpackingTool.h:51
CTPUnpackingTool::decode
virtual StatusCode decode(const EventContext &ctx, const ROIB::RoIBResult &roib, HLT::IDVec &enabledChains) const override
Fills the list of chains that should be activated in a given event (note HLT prescaling happens at a ...
Definition
CTPUnpackingTool.cxx:94
ROIB::RoIBResult
Class holding the LVL1 RoIB result build by the RoIBuilder.
Definition
RoIBResult.h:47
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
HLT::IDVec
std::vector< HLT::Identifier > IDVec
Definition
TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:55
type
Generated on
for ATLAS Offline Software by
1.17.0