ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
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
An algorithm that can be simultaneously executed in multiple threads.
RunTriggerMatching(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec
Tool handle for the trigger decision and matching tools.
std::atomic< unsigned int > m_matchCounter
Integer counter for the requested triggers.
Gaudi::Property< std::string > m_triggerString
String to select triggers to use in the matching with offline objects.
PublicToolHandle< Trig::R3MatchingTool > m_matchingTool
SG::ReadHandleKey< xAOD::IParticleContainer > m_containerKey
Read handle for the offline object container - set to muons by default.
virtual StatusCode finalize() override
virtual StatusCode execute(const EventContext &) const override
Property holding a SG store/key/clid from which a ReadHandle is made.