ATLAS Offline Software
Loading...
Searching...
No Matches
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 $
7
8// Framework includes:
11
13
14// xAOD includes:
15#include "xAODBase/IParticle.h"
17
18namespace 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
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
Base class for elements of a container that can have aux data.
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode initialize()
Athena algorithm's Hooks:
PublicToolHandleArray< Ringer::ICaloRingerInputReader > m_inputReaders
Tools for building CaloRings.
StatusCode retrieveReaders()
Retrieve Input Reader Tools.
CaloRingerAlgorithm(const std::string &name, ::ISvcLocator *pSvcLocator)
AthAlgorithm ctor:
virtual ~CaloRingerAlgorithm()
default dtor:
Namespace dedicated for Ringer utilities.