20 return StatusCode::SUCCESS;
27 if (!electrons.isValid()) {
29 return StatusCode::FAILURE;
36 return StatusCode::FAILURE;
44 ATH_MSG_ERROR(
"Electron object without CaloCluster, storing zero");
45 electronEnergyDeco(*eg) = value;
49 double calibratedEnergy = 0.;
50 StatusCode
sc = StatusCode::FAILURE;
58 <<
" phi=" << cluster->
phi());
60 value =
static_cast<float>(calibratedEnergy);
62 electronEnergyDeco(*eg) = value;
69 return StatusCode::FAILURE;
79 photonEnergyDeco(*eg) = value;
83 double calibratedEnergy = 0.;
84 StatusCode
sc = StatusCode::FAILURE;
92 <<
" phi=" << cluster->
phi());
94 value =
static_cast<float>(calibratedEnergy);
96 photonEnergyDeco(*eg) = value;
99 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo_key
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_electronEnergyDecoKey
SG::ReadHandleKey< xAOD::EgammaContainer > m_electronContainerKey
StatusCode initialize() override final
SG::ReadHandleKey< xAOD::EgammaContainer > m_photonContainerKey
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_photonEnergyDecoKey
ServiceHandle< IegammaMVASvc > m_MVACalibSvc
StatusCode addBranches(const EventContext &ctx) const override final
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Handle class for adding a decoration to an object.
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Egamma_v1 Egamma
Definition of the current "egamma version".
A structure holding some global event information.
const xAOD::EventInfo * eventInfo