ATLAS Offline Software
Loading...
Searching...
No Matches
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
10AthJetReclusteringAlgo::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
#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)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
AthJetReclusteringAlgo(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize()
ToolHandle< IJetExecuteTool > m_jetRecTool
virtual ~AthJetReclusteringAlgo()