 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef EVENT_BOOKKEEPER_TOOLS__FILTER_REPORTER_PARAMS_H
10 #define EVENT_BOOKKEEPER_TOOLS__FILTER_REPORTER_PARAMS_H
19 #ifndef XAOD_STANDALONE
21 #include <GaudiKernel/ServiceHandle.h>
71 std::string val_filterKey,
72 std::string val_filterDescription);
100 #ifndef XAOD_STANDALONE
151 #ifndef XAOD_STANDALONE
173 std::string val_filterKey,
174 std::string val_filterDescription)
175 : AsgMessagingForward (owner)
176 , m_setFilterPassed ([owner] (
bool val_setFilterPassed,
const EventContext *ctx)
178 #ifndef XAOD_STANDALONE
179 owner->execState (*ctx).setFilterPassed (val_setFilterPassed);
182 owner->setFilterPassed (val_setFilterPassed);
185 , m_filterKey (std::move (val_filterKey))
186 , m_filterDescription (std::move (val_filterDescription))
187 , m_eventInfoKey (owner,
"EventInfoKey",
"EventInfo",
"event info used for cutflow")
188 #ifndef XAOD_STANDALONE
189 , m_cutFlowSvc (
"CutFlowSvc/CutFlowSvc", owner->name())
192 owner->declareProperty(
"FilterKey", m_filterKey,
193 "output filter key");
194 owner->declareProperty(
"FilterDescription", m_filterDescription,
195 "describe to the CutFlowSvc what this filter does");
197 #ifndef XAOD_STANDALONE
198 owner->declareProperty(
"CutFlowSvc", m_cutFlowSvc,
199 "handle to the ICutFlowSvc instance this filtering algorithm"
200 " will use for building the flow of cuts.");
212 #ifndef XAOD_STANDALONE
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
event info read handle key
a guard class for use with ref FilterReporterParams
FilterReporterParams(T *owner, std::string val_filterKey, std::string val_filterDescription)
standard constructor
base class to forward messages to another class
CutIdentifier m_cutID
the CutIdentifier for this filter algorithm
bool m_isInitialized
whether the handle was initialized
std::string m_filterDescription
description what this filter does
bool const RAWDATA *ch2 const
ServiceHandle< ICutFlowSvc > & cutFlowSvc()
retrieve the CutFlowSvc handle reference
const SG::ReadHandleKey< xAOD::EventInfo > & eventInfoKey() const
retrieve the event info read handle key
bool m_isEnabled
whether the handle was initialized
a handle for applying algorithm filter decisions
const std::string & key() const
retrieve the key name
std::function< void(bool, const EventContext *ctx)> m_setFilterPassed
the function to call setFilterPassed() on the algorithm
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool enabled=true)
do anything we need to do in initialize
uint32_t CutIdentifier
InstanceIdentifier is a unique identifer used for every AthFilterAlgorithm instance.
std::string m_filterKey
output key of the filter
ServiceHandle< ICutFlowSvc > m_cutFlowSvc
the handle to the service holding tables of cut-flows for filtering algs.
std::atomic< unsigned > m_total
std::atomic< unsigned > m_passed
the count of passed and total events
setBGCode setTAP setLVL2ErrorBits bool
std::string summary()
report the status of filtering