ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExBasics
src
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
15
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
16
#include "GaudiKernel/ToolHandle.h"
17
#include "
TrigDecisionTool/TrigDecisionTool.h
"
18
19
class
ReadTriggerDecision
:
public
AthReentrantAlgorithm
{
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
AthReentrantAlgorithm.h
TrigDecisionTool.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
ReadTriggerDecision::finalize
virtual StatusCode finalize() override
Definition
ReadTriggerDecision.cxx:41
ReadTriggerDecision::m_triggerName
Gaudi::Property< std::string > m_triggerName
Name of the trigger to count.
Definition
ReadTriggerDecision.h:30
ReadTriggerDecision::m_trigDec
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec
Tool handle for the trigger decision tool.
Definition
ReadTriggerDecision.h:34
ReadTriggerDecision::m_triggerCounter
std::atomic< unsigned int > m_triggerCounter
Integer counter for the requested trigger.
Definition
ReadTriggerDecision.h:32
ReadTriggerDecision::ReadTriggerDecision
ReadTriggerDecision(const std::string &name, ISvcLocator *pSvcLocator)
Definition
ReadTriggerDecision.cxx:7
ReadTriggerDecision::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
ReadTriggerDecision.cxx:23
ReadTriggerDecision::initialize
virtual StatusCode initialize() override
Definition
ReadTriggerDecision.cxx:12
Generated on
for ATLAS Offline Software by
1.17.0