ATLAS Offline Software
ReadTriggerDecision.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_READTRIGGERDECISION_H
10 #define ATHEXBASICS_READTRIGGERDECISION_H
11 
12 #include <string>
13 #include <atomic>
14 
16 #include "GaudiKernel/ToolHandle.h"
18 
20  public:
21  ReadTriggerDecision(const std::string &name, ISvcLocator *pSvcLocator);
22 
23  virtual StatusCode initialize() override;
24  virtual StatusCode execute(const EventContext& ctx) const override;
25  virtual StatusCode finalize() override;
26 
27  private:
29  Gaudi::Property<std::string> m_triggerName
30  {this, "TriggerName", "HLT_e5_idperf_tight_L1EM3", "Name of the trigger to be counted"};
32  mutable std::atomic<unsigned int> m_triggerCounter{0};
34  PublicToolHandle<Trig::TrigDecisionTool> m_trigDec{this, "TriggerDecisionTool", "Trig::TrigDecisionTool/TrigDecisionTool"};
35 };
36 
37 #endif
TrigDecisionTool.h
ReadTriggerDecision::m_triggerCounter
std::atomic< unsigned int > m_triggerCounter
Integer counter for the requested trigger.
Definition: ReadTriggerDecision.h:32
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
ReadTriggerDecision::m_triggerName
Gaudi::Property< std::string > m_triggerName
Name of the trigger to count.
Definition: ReadTriggerDecision.h:30
ReadTriggerDecision
Algorithm demonstrating use of trigger decision information.
Definition: ReadTriggerDecision.h:19
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadTriggerDecision::initialize
virtual StatusCode initialize() override
Definition: ReadTriggerDecision.cxx:12
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ReadTriggerDecision::finalize
virtual StatusCode finalize() override
Definition: ReadTriggerDecision.cxx:41
ReadTriggerDecision::m_trigDec
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec
Tool handle for the trigger decision tool.
Definition: ReadTriggerDecision.h:34
ReadTriggerDecision::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: ReadTriggerDecision.cxx:23
ReadTriggerDecision::ReadTriggerDecision
ReadTriggerDecision(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ReadTriggerDecision.cxx:7