ATLAS Offline Software
Loading...
Searching...
No Matches
AllExecutedEventsCounterAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
10
12
13
15 ISvcLocator* pSvcLocator)
16 : AthReentrantAlgorithm(name, pSvcLocator)
17{
18}
19
20
21StatusCode AllExecutedEventsCounterAlg::initialize ATLAS_NOT_THREAD_SAFE ()
22{
23 ATH_MSG_DEBUG("Initializing " << this->name() << "...");
24
25 ATH_CHECK(m_filterParams.initialize());
26
27 m_filterParams.cutFlowSvc()->registerTopFilter(m_filterParams.key(),
28 m_filterParams.description(),
30 "AllStreams",
31 false);
32
33 return StatusCode::SUCCESS;
34}
35
36
37StatusCode AllExecutedEventsCounterAlg::execute(const EventContext& ctx) const
38{
39 FilterReporter filter(m_filterParams, true, ctx);
40
41 return StatusCode::SUCCESS;
42}
43
44
46{
47 ATH_MSG_DEBUG("Finalizing " << this->name() << "...");
48
50
51 return StatusCode::SUCCESS;
52}
StatusCode AllExecutedEventsCounterAlg::initialize ATLAS_NOT_THREAD_SAFE()
Install fatal handler with default options.
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
AllExecutedEventsCounterAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode finalize() override final
virtual StatusCode execute(const EventContext &ctx) const override final
An algorithm that can be simultaneously executed in multiple threads.
a guard class for use with ref FilterReporterParams