ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMatchTestAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGGERMATCHINGTOOL_TRIGMATCHTESTALG_H
6#define TRIGGERMATCHINGTOOL_TRIGMATCHTESTALG_H
7
11#include "AsgTools/ToolHandle.h"
15
16#include <vector>
17#include <string>
18#include <map>
19
20namespace Trig {
22 public:
23 TrigMatchTestAlg(const std::string &name, ISvcLocator *pSvcLocator);
24 virtual ~TrigMatchTestAlg() override = default;
25
26 virtual StatusCode initialize() override;
27 virtual StatusCode execute() override;
28 virtual StatusCode finalize() override;
29 private:
30 Gaudi::Property<std::vector<std::string>> m_chains{
31 this, "Chains", {}, "List of trigger chains to check"};
32 std::map<std::string, SG::ReadHandleKey<xAOD::IParticleContainer>> m_offlineKeys;
33 ToolHandle<Trig::TrigDecisionTool> m_tdt{"Trig::TrigDecisionTool/TrigDecisionTool"};
34 ToolHandle<Trig::IMatchingTool> m_matchingTool{
35 this, "MatchingTool", "Trig::R3MatchingTool/MatchingTool", "The trigger matching tool"};
36 std::map<std::string, std::map<std::string, std::size_t>> m_chainInfos;
37
38 struct MatchData {
39 std::size_t nEventsPassed{0};
40 std::size_t nEventsMatched{0};
41 };
42 std::size_t m_nEvents{0};
43 std::map<std::string, MatchData> m_chainData;
44
45 }; //> end class TrigMatchTestAlg
46}
47
48#endif //> !TRIGGERMATCHINGTOOL_TRIGMATCHTESTALG_H
Property holding a SG store/key/clid from which a ReadHandle is made.
the (new) base class for EventLoop algorithms
Gaudi::Property< std::vector< std::string > > m_chains
virtual ~TrigMatchTestAlg() override=default
TrigMatchTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
ToolHandle< Trig::IMatchingTool > m_matchingTool
std::map< std::string, SG::ReadHandleKey< xAOD::IParticleContainer > > m_offlineKeys
virtual StatusCode execute() override
std::map< std::string, std::map< std::string, std::size_t > > m_chainInfos
ToolHandle< Trig::TrigDecisionTool > m_tdt
virtual StatusCode finalize() override
std::map< std::string, MatchData > m_chainData
The common trigger namespace for trigger analysis tools.