ATLAS Offline Software
Reconstruction
EventShapes
EventShapeTools
src
EventDensityAthAlg.cxx
Go to the documentation of this file.
1
3
/*
4
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// EventDensityAthAlg.cxx
8
// Implementation file for class EventDensityAthAlg
9
// Author: S.Binet<binet@cern.ch>
11
12
// EventShapeTools includes
13
#include "
EventShapeTools/EventDensityAthAlg.h
"
14
15
// Athena Algorithm's Hooks
17
StatusCode
EventDensityAthAlg::initialize
()
18
{
19
ATH_MSG_INFO
(
"Initializing "
<<
name
() <<
"..."
);
20
21
ATH_CHECK
(
m_densityTool
.retrieve() );
22
return
StatusCode::SUCCESS;
23
}
24
25
StatusCode
EventDensityAthAlg::finalize
()
26
{
27
return
StatusCode::SUCCESS;
28
}
29
30
StatusCode
EventDensityAthAlg::execute
(
const
EventContext&
/*ctx*/
)
const
31
{
32
ATH_MSG_DEBUG
(
"Executing "
<<
name
() <<
"..."
);
33
StatusCode
sc
=
m_densityTool
->fillEventShape();
34
if
(!
sc
.isSuccess() ) {
35
ATH_MSG_ERROR
(
" Error while computing density with tool "
<<
m_densityTool
->name() );
36
return
StatusCode::RECOVERABLE;
37
}
38
return
StatusCode::SUCCESS;
39
}
40
41
42
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition:
AthMsgStreamMacros.h:31
EventDensityAthAlg.h
AthenaPoolTestRead.sc
sc
Definition:
AthenaPoolTestRead.py:27
EventDensityAthAlg::m_densityTool
ToolHandle< IEventShapeTool > m_densityTool
Definition:
EventDensityAthAlg.h:40
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition:
AthMsgStreamMacros.h:33
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
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
EventDensityAthAlg::finalize
virtual StatusCode finalize() override
Definition:
EventDensityAthAlg.cxx:25
EventDensityAthAlg::initialize
virtual StatusCode initialize() override
Definition:
EventDensityAthAlg.cxx:17
EventDensityAthAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition:
EventDensityAthAlg.cxx:30
Generated on Mon Dec 23 2024 21:10:16 for ATLAS Offline Software by
1.8.18