 |
ATLAS Offline Software
|
Go to the documentation of this file.
80 return StatusCode::SUCCESS;
87 const EventContext& ctx = Gaudi::Hive::currentContext();
89 if (!m_SGKey_photons.key().empty()) {
95 m_SGKey_photons_decorations,
102 if (!m_SGKey_electrons.key().empty()) {
108 m_SGKey_electrons_decorations,
115 return StatusCode::SUCCESS;
122 const EventContext& ctx)
const
130 decoration0(decorKeys[0], ctx);
132 decoration1(decorKeys[1], ctx);
134 decoration2(decorKeys[2], ctx);
136 decoration3(decorKeys[3], ctx);
138 decoration4(decorKeys[4], ctx);
140 decoration5(decorKeys[5], ctx);
142 decoration6(decorKeys[6], ctx);
144 decoration7(decorKeys[7], ctx);
146 decoration8(decorKeys[8], ctx);
148 decoration9(decorKeys[9], ctx);
150 decoration10(decorKeys[10], ctx);
152 decoration11(decorKeys[11], ctx);
156 for (
const auto*
egamma : *importedEgamma) {
159 getDecorations(cluster, ctx);
171 decoration9(*
egamma) =
res.cells_quality;
176 return StatusCode::SUCCESS;
183 const EventContext& ctx)
const
196 ATH_MSG_ERROR(
"Do not have mapping object " << m_cablingKey.key());
197 throw std::runtime_error(
"Cabling retrieval failed");
202 int sampling =
cell->caloDDE()->getSampling();
std::vector< float > cells_phi
std::vector< float > cells_y
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current egammaContainer
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_photons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_electrons
#define ATH_MSG_VERBOSE(x)
std::vector< float > cells_eta
Property holding a SG store/key/clid from which a ReadHandle is made.
StatusCode decorateCells(const SG::ReadHandleKey< xAOD::EgammaContainer > &contKey, const SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > &decorKeys, const EventContext &ctx) const
Description of a calorimeter cluster.
virtual StatusCode addBranches() const
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
std::vector< float > cells_E
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< uint64_t > cells_onlId
Handle class for adding a decoration to an object.
std::vector< float > cells_time
std::pair< std::vector< unsigned int >, bool > res
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_photons_decorations
const CaloClusterCellLink * getCellLinks() const
Get a pointer to the CaloClusterCellLink object (const version)
std::vector< int > cells_quality
std::vector< int > cells_layer
StatusCode initialize(bool used=true)
std::vector< int > cells_gain
std::vector< float > cells_z
Data object for each calorimeter readout cell.
#define ATH_MSG_WARNING(x)
std::vector< float > cells_x
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_electrons_decorations
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
cell_decorations getDecorations(const xAOD::CaloCluster *cluster, const EventContext &ctx) const