ATLAS Offline Software
CTPUnpackingTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 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 
17 public:
18 
19  CTPUnpackingTool( const std::string& type,
20  const std::string& name,
21  const IInterface* parent );
22 
24  virtual StatusCode decode(const ROIB::RoIBResult& roib, HLT::IDVec& enabledChains) const override;
25 
26  virtual StatusCode initialize() override;
27 
28  virtual StatusCode start() override;
29 
31  const std::vector<std::string>& l1ItemNames,
32  bool& pass) const override;
33 
34 private:
35  // Menu objects (that act here as configuration) need to be available in the detector store. They are provided by
36  // the HLT and LVL1 ConfigSvc during initialize. Therefore, these services have to be configured & instantiated
37  // in jobs that use this tool (and HLTSeeding itself).
39  this, "HLTTriggerMenu", "DetectorStore+HLTTriggerMenu", "HLT Menu"};
41  this, "L1TriggerMenu", "DetectorStore+L1TriggerMenu", "L1 Menu"};
42 
43  Gaudi::Property<bool> m_useTBPBit{
44  this, "UseTBPBits", false,
45  "When true, use Trigger Before Prescale bits instead of Trigger After Veto (for testing only)"};
46 
47  std::map<std::string, size_t> m_itemNametoCTPIDMap;
48 };
49 
50 #endif
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:47
CTPUnpackingToolBase
Base class for CTP unpacking tools.
Definition: CTPUnpackingToolBase.h:24
CTPUnpackingTool::decode
virtual StatusCode decode(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:93
CTPUnpackingTool::m_L1MenuKey
SG::ReadHandleKey< TrigConf::L1Menu > m_L1MenuKey
Definition: CTPUnpackingTool.h:40
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:38
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:139
CTPUnpackingToolBase.h
HLT::IDVec
std::vector< HLT::Identifier > IDVec
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:62
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::m_useTBPBit
Gaudi::Property< bool > m_useTBPBit
Definition: CTPUnpackingTool.h:43
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CTPUnpackingTool::start
virtual StatusCode start() override
Definition: CTPUnpackingTool.cxx:33
CTPUnpackingTool
Definition: CTPUnpackingTool.h:16
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
HLTIdentifier.h
HLTMenu.h
L1Menu.h