ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
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"};
31
32 mutable std::atomic<unsigned int> m_triggerCounter{0};
34 PublicToolHandle<Trig::TrigDecisionTool> m_trigDec{this, "TriggerDecisionTool", "Trig::TrigDecisionTool/TrigDecisionTool"};
35};
36
37#endif
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode finalize() override
Gaudi::Property< std::string > m_triggerName
Name of the trigger to count.
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec
Tool handle for the trigger decision tool.
std::atomic< unsigned int > m_triggerCounter
Integer counter for the requested trigger.
ReadTriggerDecision(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode initialize() override