ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
EventBookkeeperTools
src
AllWrittenEventsCounterAlg.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
8
#include <
EventBookkeeperTools/FilterReporter.h
>
9
#include <
xAODCutFlow/CutBookkeeper.h
>
10
11
#include "
AllWrittenEventsCounterAlg.h
"
12
13
14
AllWrittenEventsCounterAlg::AllWrittenEventsCounterAlg
(
const
std::string& name,
15
ISvcLocator* pSvcLocator)
16
:
AthReentrantAlgorithm
(name, pSvcLocator)
17
{
18
}
19
20
21
StatusCode AllWrittenEventsCounterAlg::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(),
29
xAOD::CutBookkeeper::CutLogic::ALLEVENTSWRITTEN
,
30
"AllStreams"
,
31
false
);
32
33
return
StatusCode::SUCCESS;
34
}
35
36
37
StatusCode
AllWrittenEventsCounterAlg::execute
(
const
EventContext& ctx)
const
38
{
39
FilterReporter
filter(
m_filterParams
,
true
, ctx);
40
41
return
StatusCode::SUCCESS;
42
}
43
44
45
StatusCode
AllWrittenEventsCounterAlg::finalize
()
46
{
47
ATH_MSG_DEBUG
(
"Finalizing "
<< this->name() <<
"..."
);
48
49
ATH_MSG_INFO
(
m_filterParams
.summary());
50
51
return
StatusCode::SUCCESS;
52
}
ATLAS_NOT_THREAD_SAFE
StatusCode AllWrittenEventsCounterAlg::initialize ATLAS_NOT_THREAD_SAFE()
Install fatal handler with default options.
Definition
AllWrittenEventsCounterAlg.cxx:21
AllWrittenEventsCounterAlg.h
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
CutBookkeeper.h
FilterReporter.h
AllWrittenEventsCounterAlg::m_filterParams
FilterReporterParams m_filterParams
Definition
AllWrittenEventsCounterAlg.h:26
AllWrittenEventsCounterAlg::AllWrittenEventsCounterAlg
AllWrittenEventsCounterAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
AllWrittenEventsCounterAlg.cxx:14
AllWrittenEventsCounterAlg::finalize
virtual StatusCode finalize() override final
Definition
AllWrittenEventsCounterAlg.cxx:45
AllWrittenEventsCounterAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
AllWrittenEventsCounterAlg.cxx:37
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
FilterReporter
a guard class for use with ref FilterReporterParams
Definition
FilterReporter.h:35
xAOD::CutBookkeeper_v1::ALLEVENTSWRITTEN
@ ALLEVENTSWRITTEN
Definition
CutBookkeeper_v1.h:37
Generated on
for ATLAS Offline Software by
1.17.0