 |
ATLAS Offline Software
|
Go to the documentation of this file.
27 bool val_passedDefault)
28 : m_params (val_params)
29 , m_passed (val_passedDefault)
30 , m_eventContext (&
Gaudi::Hive::currentContext())
34 throw std::logic_error (
"using uninitialized FilterReporterParams");
42 bool val_passedDefault,
43 const EventContext& val_eventContext)
44 : m_params (val_params)
45 , m_passed (val_passedDefault)
46 , m_eventContext (&val_eventContext)
50 throw std::logic_error (
"using uninitialized FilterReporterParams");
65 #ifndef XAOD_STANDALONE
84 m_passed = val_passed;
void setPassed(bool val_passed=true) noexcept
report the filter decision
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
event info read handle key
CutIdentifier m_cutID
the CutIdentifier for this filter algorithm
const std::vector< float > & mcEventWeights() const
The weights of all the MC events used in the simulation.
bool m_isInitialized
whether the handle was initialized
FilterReporter(FilterReporterParams &val_params, bool val_passedDefault)
standard constructor
@ IS_SIMULATION
true: simulation, false: data
a handle for applying algorithm filter decisions
std::function< void(bool, const EventContext *ctx)> m_setFilterPassed
the function to call setFilterPassed() on the algorithm
virtual bool isValid() override final
Can the handle be successfully dereferenced?
ServiceHandle< ICutFlowSvc > m_cutFlowSvc
the handle to the service holding tables of cut-flows for filtering algs.
const FilterReporterParams & m_params
the FilterReporterParams object
std::atomic< unsigned > m_total
const EventContext * m_eventContext
current EventContext reference
~FilterReporter() noexcept
standard destructor
=============================================================================
bool m_passed
the value of passed we will set
std::atomic< unsigned > m_passed
the count of passed and total events
bool eventType(EventType type) const
Check for one particular bitmask value.