ATLAS Offline Software
Calorimeter
CaloRec
src
CaloCellContainerAliasAlg.cxx
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
3
*/
12
#include "
CaloCellContainerAliasAlg.h
"
13
#include "
StoreGate/ReadHandle.h
"
14
15
19
StatusCode
CaloCellContainerAliasAlg::initialize
()
20
{
21
ATH_CHECK
(
m_cells
.
initialize
() );
22
ATH_CHECK
(
m_alias
.
initialize
() );
23
return
StatusCode::SUCCESS;
24
}
25
26
31
StatusCode
CaloCellContainerAliasAlg::execute
(
const
EventContext& ctx)
const
32
{
33
SG::ReadHandle<CaloCellContainer>
cells
(
m_cells
, ctx);
34
ATH_CHECK
(
cells
.alias (
m_alias
) );
35
return
StatusCode::SUCCESS;
36
}
37
38
RunTileCalibRec.cells
cells
Definition:
RunTileCalibRec.py:271
SG::ReadHandle
Definition:
StoreGate/StoreGate/ReadHandle.h:70
CaloCellContainerAliasAlg::initialize
virtual StatusCode initialize() override
Gaudi initialize method.
Definition:
CaloCellContainerAliasAlg.cxx:19
CaloCellContainerAliasAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Execute the algorithm.
Definition:
CaloCellContainerAliasAlg.cxx:31
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloCellContainerAliasAlg.h
Add an alias to a cell container.
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition:
AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
ReadHandle.h
Handle class for reading from StoreGate.
CaloCellContainerAliasAlg::m_alias
SG::WriteHandleKey< CaloCellContainer > m_alias
Definition:
CaloCellContainerAliasAlg.h:49
CaloCellContainerAliasAlg::m_cells
SG::ReadHandleKey< CaloCellContainer > m_cells
Definition:
CaloCellContainerAliasAlg.h:46
Generated on Thu Nov 7 2024 21:11:12 for ATLAS Offline Software by
1.8.18