ATLAS Offline Software
AllExecutedEventsCounterAlg.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 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 
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  "Number of processed events before any cut",
29  xAOD::CutBookkeeper::CutLogic::ALLEVENTSPROCESSED,
30  "AllStreams",
31  false);
32 
33  return StatusCode::SUCCESS;
34 }
35 
36 
37 StatusCode AllExecutedEventsCounterAlg::execute(const EventContext& ctx) const
38 {
40 
41  return StatusCode::SUCCESS;
42 }
43 
44 
46 {
47  ATH_MSG_DEBUG("Finalizing " << this->name() << "...");
48 
50 
51  return StatusCode::SUCCESS;
52 }
FilterReporter
a guard class for use with ref FilterReporterParams
Definition: FilterReporter.h:35
CutBookkeeper.h
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AllExecutedEventsCounterAlg.h
initialize
void initialize()
Definition: run_EoverP.cxx:894
AllExecutedEventsCounterAlg::finalize
virtual StatusCode finalize() override final
Definition: AllExecutedEventsCounterAlg.cxx:45
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
covarianceTool.filter
filter
Definition: covarianceTool.py:514
ATLAS_NOT_THREAD_SAFE
StatusCode AllExecutedEventsCounterAlg::initialize ATLAS_NOT_THREAD_SAFE()
Install fatal handler with default options.
Definition: AllExecutedEventsCounterAlg.cxx:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AllExecutedEventsCounterAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: AllExecutedEventsCounterAlg.cxx:37
FilterReporter.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
AllExecutedEventsCounterAlg::m_filterParams
FilterReporterParams m_filterParams
Definition: AllExecutedEventsCounterAlg.h:26
AllExecutedEventsCounterAlg::AllExecutedEventsCounterAlg
AllExecutedEventsCounterAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AllExecutedEventsCounterAlg.cxx:14
FilterReporterParams::summary
std::string summary()
report the status of filtering
Definition: FilterReporterParams.cxx:60