ATLAS Offline Software
Loading...
Searching...
No Matches
TrigDecisionToolLite.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TrigDecision_TrigDecisionToolLite_h
6#define TrigDecision_TrigDecisionToolLite_h
7/**********************************************************************************
8 * @class : TrigDecisionToolLite
9 *
10 * @brief Lightweight alternate to the TrigDecisionTool, without configuration access.
11 *
12 * The TrigDecisionToolLite provides a minimal interface with the per-event trigger payload.
13 * Unlike the full version, this tool does NOT interface with the trigger configuration data.
14 * This tool will only allow access to information from the HLT navigation container which can be
15 * interpreted independently of the configuration. This includes per-chain feature access.
16 * And HLT chain isPassed information, as returned from the HLT navigation terminus node.
17 *
18 ***********************************************************************************/
19
20#include "AsgTools/AsgTool.h"
24
27
29
31
32namespace Trig {
34 {
36
37 public:
38
39 TrigDecisionToolLite(const std::string& name);
41
42 StatusCode initialize();
43
49 virtual bool isPassed(const HLT::Identifier& chain, const EventContext& ctx = Gaudi::Hive::currentContext()) const final;
50
57 virtual bool isPassed(const std::string& chain, const EventContext& ctx = Gaudi::Hive::currentContext()) const final;
58
64 virtual bool isPassed(const std::vector<HLT::Identifier>& chains, const EventContext& ctx = Gaudi::Hive::currentContext()) const final;
65
72 virtual bool isPassed(const std::vector<std::string>& chains, const EventContext& ctx = Gaudi::Hive::currentContext()) const final;
73
74 private:
75
88 virtual std::vector<TrigCompositeUtils::TypelessLinkInfo>
89 typelessFeatures( const Trig::FeatureRequestDescriptor& frd, const CLID clid, const EventContext& ctx) const final;
90
91 virtual const asg::EventStoreType* getEventStore() const final;
92
97 StatusCode fillPassingChainsSet(TrigCompositeUtils::DecisionIDContainer& setOfAllPassingChains, const EventContext& ctx) const;
98
99 SG::ReadHandleKey<TrigCompositeUtils::DecisionContainer> m_HLTSummaryKeyIn {this, "HLTSummary",
100 "HLTNav_Summary_DAODSlimmed", "HLT navigation summary container key"};
101
102 public:
103
104 static std::atomic<bool> s_printWarningMessages ATLAS_THREAD_SAFE;
105
106 };
107
108} // End of namespace
109
110#endif
#define ASG_TOOL_CLASS1
Property holding a SG store/key/clid from which a ReadHandle is made.
uint32_t CLID
The Class ID type.
std::set< DecisionID > DecisionIDContainer
xAOD::TrigCompositeContainer DecisionContainer
isPassed and features interfaces for the TrigDecisionToolLite
static std::atomic< bool > s_printWarningMessages ATLAS_THREAD_SAFE
virtual bool isPassed(const HLT::Identifier &chain, const EventContext &ctx=Gaudi::Hive::currentContext()) const final
true if the given HLT chain passed for physics
StatusCode initialize()
Dummy implementation of the initialisation function.
virtual const asg::EventStoreType * getEventStore() const final
Internal call to obtain event store pointer from concrete tool implementation. Note that evtStore() i...
StatusCode fillPassingChainsSet(TrigCompositeUtils::DecisionIDContainer &setOfAllPassingChains, const EventContext &ctx) const
Internal.
virtual std::vector< TrigCompositeUtils::TypelessLinkInfo > typelessFeatures(const Trig::FeatureRequestDescriptor &frd, const CLID clid, const EventContext &ctx) const final
Internal type erased features retrieval implementation call.
SG::ReadHandleKey< TrigCompositeUtils::DecisionContainer > m_HLTSummaryKeyIn
TrigDecisionToolLite(const std::string &name)
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
=============================================================================
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Forward declaration.
The common trigger namespace for trigger analysis tools.
STL namespace.
#define private