ATLAS Offline Software
CaloRingerAlgorithm.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 // $Id: CaloRingerAlgorithm.cxx 787810 2016-12-02 05:39:13Z ssnyder $
6 #include "CaloRingerAlgorithm.h"
7 
8 // Framework includes:
11 
13 
14 // xAOD includes:
15 #include "xAODBase/IParticle.h"
17 
18 namespace Ringer {
19 
20 // =================================================================================
22  ::ISvcLocator* pSvcLocator ) :
23  ::AthAlgorithm( name, pSvcLocator )
24 {
25  //
26  // Property declaration
27  //
28 
29 }
30 
31 // =================================================================================
33 
34 // =================================================================================
36 {
37 
39 
40  return StatusCode::SUCCESS;
41 }
42 
43 // =================================================================================
45 {
46  ATH_MSG_INFO("Retrieving " << m_inputReaders.size() <<
47  " reader tools for " << name() );
48 
49  ATH_CHECK(m_inputReaders.retrieve());
50  return StatusCode::SUCCESS;
51 }
52 
53 // =================================================================================
55 {
56  return StatusCode::SUCCESS;
57 }
58 
59 // =================================================================================
61 {
62 
63  ATH_MSG_DEBUG ("Executing " << name() << ".");
64 
65  // Loop over input readers
66  for (auto& readerTool : m_inputReaders)
67  {
68  ATH_MSG_DEBUG ("Executing Reader tool " << readerTool.name() << ".");
69 
70  // Execute reader
71  ATH_CHECK( readerTool->execute() );
72 
73  }
74 
75  return StatusCode::SUCCESS;
76 }
77 
78 } // namespace Ringer
IParticle.h
Ringer::CaloRingerAlgorithm::retrieveReaders
StatusCode retrieveReaders()
Retrieve Input Reader Tools.
Definition: CaloRingerAlgorithm.cxx:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
Ringer::CaloRingerAlgorithm::m_inputReaders
PublicToolHandleArray< Ringer::ICaloRingerInputReader > m_inputReaders
Tools for building CaloRings.
Definition: CaloRingerAlgorithm.h:67
Ringer::CaloRingerAlgorithm::~CaloRingerAlgorithm
virtual ~CaloRingerAlgorithm()
default dtor:
CaloRingsContainer.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
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
AthAlgorithm
Definition: AthAlgorithm.h:47
Ringer::CaloRingerAlgorithm::CaloRingerAlgorithm
CaloRingerAlgorithm(const std::string &name, ::ISvcLocator *pSvcLocator)
AthAlgorithm ctor:
Definition: CaloRingerAlgorithm.cxx:21
Ringer::CaloRingerAlgorithm::execute
virtual StatusCode execute()
Definition: CaloRingerAlgorithm.cxx:60
Ringer::CaloRingerAlgorithm::finalize
virtual StatusCode finalize()
Definition: CaloRingerAlgorithm.cxx:54
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
errorcheck.h
Helpers for checking error return status codes and reporting errors.
CaloCellContainer.h
CaloRingerAlgorithm.h
Ringer::CaloRingerAlgorithm::initialize
virtual StatusCode initialize()
Athena algorithm's Hooks:
Definition: CaloRingerAlgorithm.cxx:35
AuxElement.h
Base class for elements of a container that can have aux data.
Ringer
Namespace dedicated for Ringer utilities.
Definition: CaloRingsDefs.h:9