ATLAS Offline Software
Loading...
Searching...
No Matches
EventDensityAthAlg.cxx
Go to the documentation of this file.
1
2
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
14
15// Athena Algorithm's Hooks
18{
19 ATH_MSG_INFO ("Initializing " << name() << "...");
20
21 ATH_CHECK( m_densityTool.retrieve() );
22 return StatusCode::SUCCESS;
23}
24
26{
27 return StatusCode::SUCCESS;
28}
29
30StatusCode 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
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
static Double_t sc
virtual StatusCode finalize() override
ToolHandle< IEventShapeTool > m_densityTool
virtual StatusCode execute(const EventContext &) const override
virtual StatusCode initialize() override