ATLAS Offline Software
RunTriggerMatching.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 #ifndef ATHEXBASICS_RUNTRIGGERMATCHING_H
10 #define ATHEXBASICS_RUNTRIGGERMATCHING_H
11 
13 #include "GaudiKernel/ToolHandle.h"
17 #include <string>
18 #include <atomic>
19 
21  public:
22  RunTriggerMatching(const std::string &name, ISvcLocator *pSvcLocator);
23 
24  virtual StatusCode initialize() override;
25  virtual StatusCode execute(const EventContext& /*ctx*/) const override;
26  virtual StatusCode finalize() override;
27 
28  private:
30  mutable std::atomic<unsigned int> m_matchCounter{0};
32  Gaudi::Property<std::string> m_triggerString{this, "TriggerString", "HLT_mu24.*"};
36  PublicToolHandle<Trig::TrigDecisionTool> m_trigDec{this, "TriggerDecisionTool", "Trig::TrigDecisionTool/TrigDecisionTool"};
37  PublicToolHandle<Trig::R3MatchingTool> m_matchingTool{this, "R3MatchingTool", "Trig::R3MatchingTool", "R3MatchingTool"};
38 };
39 
40 #endif
RunTriggerMatching::m_containerKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_containerKey
Read handle for the offline object container - set to muons by default.
Definition: RunTriggerMatching.h:34
TrigDecisionTool.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
RunTriggerMatching::m_trigDec
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec
Tool handle for the trigger decision and matching tools.
Definition: RunTriggerMatching.h:36
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
RunTriggerMatching::m_triggerString
Gaudi::Property< std::string > m_triggerString
String to select triggers to use in the matching with offline objects.
Definition: RunTriggerMatching.h:32
RunTriggerMatching::initialize
virtual StatusCode initialize() override
Definition: RunTriggerMatching.cxx:13
RunTriggerMatching::execute
virtual StatusCode execute(const EventContext &) const override
Definition: RunTriggerMatching.cxx:25
RunTriggerMatching::RunTriggerMatching
RunTriggerMatching(const std::string &name, ISvcLocator *pSvcLocator)
Definition: RunTriggerMatching.cxx:9
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
RunTriggerMatching::m_matchCounter
std::atomic< unsigned int > m_matchCounter
Integer counter for the requested triggers.
Definition: RunTriggerMatching.h:30
RunTriggerMatching::finalize
virtual StatusCode finalize() override
Definition: RunTriggerMatching.cxx:56
R3MatchingTool.h
RunTriggerMatching::m_matchingTool
PublicToolHandle< Trig::R3MatchingTool > m_matchingTool
Definition: RunTriggerMatching.h:37
RunTriggerMatching
Algorithm demonstrating trigger matching in Athena User provides a trigger string (wildcards possible...
Definition: RunTriggerMatching.h:20