ATLAS Offline Software
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"
10 #include "TrigConfData/HLTMenu.h"
11 #include "TrigConfData/L1Menu.h"
12 #include "xAODTrigger/CTPResult.h"
13 
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 
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).
40  this, "HLTTriggerMenu", "DetectorStore+HLTTriggerMenu", "HLT Menu"};
42  this, "L1TriggerMenu", "DetectorStore+L1TriggerMenu", "L1 Menu"};
43 
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
CTPResult.h
ROIB::RoIBResult
Class holding the LVL1 RoIB result build by the RoIBuilder.
Definition: RoIBResult.h:47
CTPUnpackingTool::m_itemNametoCTPIDMap
std::map< std::string, size_t > m_itemNametoCTPIDMap
Definition: CTPUnpackingTool.h:55
CTPUnpackingToolBase
Base class for CTP unpacking tools.
Definition: CTPUnpackingToolBase.h:24
CTPUnpackingTool::m_L1MenuKey
SG::ReadHandleKey< TrigConf::L1Menu > m_L1MenuKey
Definition: CTPUnpackingTool.h:41
CTPUnpackingTool::initialize
virtual StatusCode initialize() override
Definition: CTPUnpackingTool.cxx:22
SG::ReadHandleKey< TrigConf::HLTMenu >
CTPUnpackingTool::m_HLTMenuKey
SG::ReadHandleKey< TrigConf::HLTMenu > m_HLTMenuKey
Definition: CTPUnpackingTool.h:39
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
CTPUnpackingTool::CTPUnpackingTool
CTPUnpackingTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: CTPUnpackingTool.cxx:16
CTPUnpackingTool::passBeforePrescaleSelection
virtual StatusCode passBeforePrescaleSelection(const ROIB::RoIBResult *roib, const std::vector< std::string > &l1ItemNames, bool &pass) const override
Definition: CTPUnpackingTool.cxx:163
CTPUnpackingToolBase.h
HLT::IDVec
std::vector< HLT::Identifier > IDVec
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:55
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
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
CTPUnpackingTool::m_useTBPBit
Gaudi::Property< bool > m_useTBPBit
Definition: CTPUnpackingTool.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
CTPUnpackingTool::start
virtual StatusCode start() override
Definition: CTPUnpackingTool.cxx:34
CTPUnpackingTool
Definition: CTPUnpackingTool.h:17
HLTIdentifier.h
HLTMenu.h
L1Menu.h
CTPUnpackingTool::m_useEDMxAOD
Gaudi::Property< bool > m_useEDMxAOD
Definition: CTPUnpackingTool.h:51
CTPUnpackingTool::m_ctpResultKey
SG::ReadHandleKey< xAOD::CTPResult > m_ctpResultKey
Definition: CTPUnpackingTool.h:44