ATLAS Offline Software
AthJetReclusteringAlgo.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // JetReclustering includes
7 
9 
10 AthJetReclusteringAlgo::AthJetReclusteringAlgo( const std::string& name, ISvcLocator* pSvcLocator )
11  : AthAlgorithm( name, pSvcLocator ),
12  m_jetRecTool("JetReclusteringTool/"+this->name()+"JetReclusteringTool")
13 {
14  declareProperty( "JetReclusteringTool", m_jetRecTool );
15 }
16 
17 
19 
20 
22  ATH_MSG_INFO ("Initializing " << name() << "...");
23 
24  ATH_CHECK( m_jetRecTool.retrieve() );
25  return StatusCode::SUCCESS;
26 }
27 
29  ATH_MSG_INFO ("Finalizing " << name() << "...");
30 
31  return StatusCode::SUCCESS;
32 }
33 
35  ATH_MSG_DEBUG ("Executing " << name() << "...");
36 
37  int retCode = m_jetRecTool->execute();
38  if (retCode != 0) {
39  ATH_MSG_ERROR( "JetReclusteringTool failed in execution with code: " << retCode );
40  return StatusCode::FAILURE;
41  }
42 
43  return StatusCode::SUCCESS;
44 }
45 
46 
AthJetReclusteringAlgo::initialize
virtual StatusCode initialize()
Definition: AthJetReclusteringAlgo.cxx:21
AthJetReclusteringAlgo.h
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
AthJetReclusteringAlgo::finalize
virtual StatusCode finalize()
Definition: AthJetReclusteringAlgo.cxx:28
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
IJetExecuteTool.h
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
AthJetReclusteringAlgo::m_jetRecTool
ToolHandle< IJetExecuteTool > m_jetRecTool
Definition: AthJetReclusteringAlgo.h:23
AthJetReclusteringAlgo::~AthJetReclusteringAlgo
virtual ~AthJetReclusteringAlgo()
AthJetReclusteringAlgo::AthJetReclusteringAlgo
AthJetReclusteringAlgo(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AthJetReclusteringAlgo.cxx:10
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AthJetReclusteringAlgo::execute
virtual StatusCode execute()
Definition: AthJetReclusteringAlgo.cxx:34