ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecoAlgs
CaloRingerAlgs
src
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:
9
#include "
AthenaKernel/errorcheck.h
"
10
#include "
AthContainers/AuxElement.h
"
11
12
#include "
CaloEvent/CaloCellContainer.h
"
13
14
// xAOD includes:
15
#include "
xAODBase/IParticle.h
"
16
#include "
xAODCaloRings/CaloRingsContainer.h
"
17
18
namespace
Ringer
{
19
20
// =================================================================================
21
CaloRingerAlgorithm::CaloRingerAlgorithm
(
const
std::string& name,
22
::ISvcLocator* pSvcLocator ) :
23
::
AthAlgorithm
( name, pSvcLocator )
24
{
25
//
26
// Property declaration
27
//
28
29
}
30
31
// =================================================================================
32
CaloRingerAlgorithm::~CaloRingerAlgorithm
() =
default
;
33
34
// =================================================================================
35
StatusCode
CaloRingerAlgorithm::initialize
()
36
{
37
38
CHECK
(
retrieveReaders
() );
39
40
return
StatusCode::SUCCESS;
41
}
42
43
// =================================================================================
44
StatusCode
CaloRingerAlgorithm::retrieveReaders
()
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
// =================================================================================
54
StatusCode
CaloRingerAlgorithm::finalize
()
55
{
56
return
StatusCode::SUCCESS;
57
}
58
59
// =================================================================================
60
StatusCode
CaloRingerAlgorithm::execute
(
const
EventContext&
/*ctx*/
)
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
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
AuxElement.h
Base class for elements of a container that can have aux data.
CaloCellContainer.h
CaloRingerAlgorithm.h
errorcheck.h
Helpers for checking error return status codes and reporting errors.
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
IParticle.h
CaloRingsContainer.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
Ringer::CaloRingerAlgorithm::initialize
virtual StatusCode initialize()
Athena algorithm's Hooks:
Definition
CaloRingerAlgorithm.cxx:35
Ringer::CaloRingerAlgorithm::m_inputReaders
PublicToolHandleArray< Ringer::ICaloRingerInputReader > m_inputReaders
Tools for building CaloRings.
Definition
CaloRingerAlgorithm.h:67
Ringer::CaloRingerAlgorithm::retrieveReaders
StatusCode retrieveReaders()
Retrieve Input Reader Tools.
Definition
CaloRingerAlgorithm.cxx:44
Ringer::CaloRingerAlgorithm::execute
virtual StatusCode execute(const EventContext &ctx)
Execute method.
Definition
CaloRingerAlgorithm.cxx:60
Ringer::CaloRingerAlgorithm::finalize
virtual StatusCode finalize()
Definition
CaloRingerAlgorithm.cxx:54
Ringer::CaloRingerAlgorithm::CaloRingerAlgorithm
CaloRingerAlgorithm(const std::string &name, ::ISvcLocator *pSvcLocator)
AthAlgorithm ctor:
Definition
CaloRingerAlgorithm.cxx:21
Ringer::CaloRingerAlgorithm::~CaloRingerAlgorithm
virtual ~CaloRingerAlgorithm()
default dtor:
Ringer
Namespace dedicated for Ringer utilities.
Definition
CaloRingsDefs.h:9
Generated on
for ATLAS Offline Software by
1.17.0