24{
25
29 return StatusCode::FAILURE;
30 }
31
36 return StatusCode::FAILURE;
37 }
38
40 if (!eg) continue;
43 if (!cluster) {
44 ATH_MSG_ERROR(
"Electron object without CaloCluster, storing zero");
45 electronEnergyDeco(*eg) =
value;
46 continue;
47 }
48
49 double calibratedEnergy = 0.;
51
52 egammaMVACalib::GlobalEventInfo gei;
55
58 <<
" phi=" << cluster->
phi());
59 } else {
60 value =
static_cast<float>(calibratedEnergy);
61 }
62 electronEnergyDeco(*eg) =
value;
63 }
64
65
69 return StatusCode::FAILURE;
70 }
71
74 if (!eg) continue;
77 if (!cluster) {
79 photonEnergyDeco(*eg) =
value;
80 continue;
81 }
82
83 double calibratedEnergy = 0.;
85
86 egammaMVACalib::GlobalEventInfo gei;
89
92 <<
" phi=" << cluster->
phi());
93 } else {
94 value =
static_cast<float>(calibratedEnergy);
95 }
96 photonEnergyDeco(*eg) =
value;
97 }
98
99 return StatusCode::SUCCESS;
100}
#define ATH_MSG_WARNING(x)
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo_key
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_electronEnergyDecoKey
SG::ReadHandleKey< xAOD::EgammaContainer > m_electronContainerKey
SG::ReadHandleKey< xAOD::EgammaContainer > m_photonContainerKey
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_photonEnergyDecoKey
ServiceHandle< IegammaMVASvc > m_MVACalibSvc
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
::StatusCode StatusCode
StatusCode definition for legacy code.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Egamma_v1 Egamma
Definition of the current "egamma version".
const xAOD::EventInfo * eventInfo