ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAnalysis
TrigDecisionToolLite
TrigDecisionToolLite
TrigDecisionToolLite.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 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
"
21
#include <
AsgTools/PropertyWrapper.h
>
22
#include "
AsgDataHandles/ReadHandleKey.h
"
23
24
#include "
TrigCompositeUtils/TrigCompositeUtils.h
"
25
#include "
TrigCompositeUtils/TypelessLinkInfo.h
"
26
27
#include "
TrigAnalysisHelpers/FeatureRequestDescriptor.h
"
28
29
#include "
TrigDecisionInterface/ITrigDecisionToolLite.h
"
30
31
namespace
Trig
{
32
class
TrigDecisionToolLite
:
public
asg::AsgTool
,
virtual
public
ITrigDecisionToolLite
33
{
34
ASG_TOOL_CLASS1
(
TrigDecisionToolLite
,
ITrigDecisionToolLite
)
35
36
public
:
37
38
TrigDecisionToolLite
(
const
std::string& name);
39
~TrigDecisionToolLite
() =
default
;
40
41
StatusCode
initialize
();
42
48
virtual
bool
isPassed
(
const
HLT::Identifier
& chain,
const
EventContext& ctx)
const
final
;
49
56
virtual
bool
isPassed
(
const
std::string& chain,
const
EventContext& ctx)
const
final
;
57
63
virtual
bool
isPassed
(
const
std::vector<HLT::Identifier>& chains,
const
EventContext& ctx)
const
final
;
64
71
virtual
bool
isPassed
(
const
std::vector<std::string>& chains,
const
EventContext& ctx)
const
final
;
72
73
private
:
74
87
virtual
std::vector<TrigCompositeUtils::TypelessLinkInfo>
88
typelessFeatures
(
const
Trig::FeatureRequestDescriptor
& frd,
const
CLID
clid,
const
EventContext& ctx)
const
final
;
89
90
virtual
const
asg::EventStoreType
*
getEventStore
()
const
final;
91
96
StatusCode
fillPassingChainsSet
(
TrigCompositeUtils
::
DecisionIDContainer
& setOfAllPassingChains,
const
EventContext& ctx)
const
;
97
98
SG
::ReadHandleKey<
TrigCompositeUtils
::
DecisionContainer
>
m_HLTSummaryKeyIn
{
this
,
"HLTSummary"
,
99
"HLTNav_Summary_DAODSlimmed"
,
"HLT navigation summary container key"
};
100
101
public
:
102
103
static
std::atomic<bool> s_printWarningMessages
ATLAS_THREAD_SAFE
;
104
105
};
106
107
}
// End of namespace
108
109
#endif
ASG_TOOL_CLASS1
#define ASG_TOOL_CLASS1
Definition
AsgToolMacros.h:75
AsgTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
ITrigDecisionToolLite.h
DecisionIDContainer
std::set< DecisionID > DecisionIDContainer
Definition
TrigComposite_v1.h:28
DecisionContainer
xAOD::TrigCompositeContainer DecisionContainer
Definition
TrigCompositeContainer.h:21
PropertyWrapper.h
FeatureRequestDescriptor.h
TrigCompositeUtils.h
TypelessLinkInfo.h
HLT::Identifier
Definition
TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:19
Trig::FeatureRequestDescriptor
Definition
TrigAnalysisHelpers/TrigAnalysisHelpers/FeatureRequestDescriptor.h:26
Trig::ITrigDecisionToolLite
isPassed and features interfaces for the TrigDecisionToolLite
Definition
ITrigDecisionToolLite.h:42
Trig::TrigDecisionToolLite::ATLAS_THREAD_SAFE
static std::atomic< bool > s_printWarningMessages ATLAS_THREAD_SAFE
Definition
TrigDecisionToolLite.h:103
Trig::TrigDecisionToolLite::initialize
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition
TrigDecisionToolLite.cxx:15
Trig::TrigDecisionToolLite::getEventStore
virtual const asg::EventStoreType * getEventStore() const final
Internal call to obtain event store pointer from concrete tool implementation. Note that evtStore() i...
Definition
TrigDecisionToolLite.cxx:73
Trig::TrigDecisionToolLite::fillPassingChainsSet
StatusCode fillPassingChainsSet(TrigCompositeUtils::DecisionIDContainer &setOfAllPassingChains, const EventContext &ctx) const
Internal.
Definition
TrigDecisionToolLite.cxx:20
Trig::TrigDecisionToolLite::typelessFeatures
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.
Definition
TrigDecisionToolLite.cxx:69
Trig::TrigDecisionToolLite::~TrigDecisionToolLite
~TrigDecisionToolLite()=default
Trig::TrigDecisionToolLite::m_HLTSummaryKeyIn
SG::ReadHandleKey< TrigCompositeUtils::DecisionContainer > m_HLTSummaryKeyIn
Definition
TrigDecisionToolLite.h:98
Trig::TrigDecisionToolLite::TrigDecisionToolLite
TrigDecisionToolLite(const std::string &name)
Definition
TrigDecisionToolLite.cxx:13
Trig::TrigDecisionToolLite::isPassed
virtual bool isPassed(const HLT::Identifier &chain, const EventContext &ctx) const final
true if the given HLT chain passed for physics
Definition
TrigDecisionToolLite.cxx:48
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
const
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
TrigCompositeUtils
Definition
TrigComposite.h:19
Trig
The common trigger namespace for trigger analysis tools.
Definition
LArCellMonAlg.h:33
asg::EventStoreType
StoreGateSvc EventStoreType
the type returned by AsgTool::evtStore
Definition
EventStoreType.h:27
Generated on
for ATLAS Offline Software by
1.17.0