23 return StatusCode::SUCCESS;
42 pCopies.
reserve (photons->size());
50 Error(
"addBranches()",
51 "Error applying fudge factors to current photon");
55 "Current photon has no valid fudge factors due to out-of-range");
57 Warning(
"addBranches()",
58 "Unknown correction code %d from "
59 "ElectronPhotonShowerShapeFudgeTool",
66 pCopies.
resize (photons->size());
77 for (
size_t ipar = 0;
const xAOD::Photon* photon : *photons) {
80 if (!pCopy) pCopy = photon;
86 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Return value from object correction CP tools.
@ Error
Some error happened during the object correction.
@ OutOfValidityRange
Input object is out of validity range.
@ Ok
The correction was done successfully.
void resize(size_type sz)
Resizes the collection to the specified number of elements.
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
SG::WriteDecorHandleKey< xAOD::PhotonContainer > m_decoratorPassDelayed
SG::WriteDecorHandleKey< xAOD::PhotonContainer > m_decoratorPass
SG::ReadHandleKey< xAOD::PhotonContainer > m_containerName
virtual StatusCode initialize() override final
ToolHandle< IElectronPhotonShowerShapeFudgeTool > m_fudgeMCTool
virtual StatusCode addBranches(const EventContext &ctx) const override final
Handle class for adding a decoration to an object.
::StatusCode StatusCode
StatusCode definition for legacy code.
bool passOQqualityDelayed(const xAOD::Photon &ph)
Helpers to ease the implementation of the pass Quality requirements.
bool passOQquality(const xAOD::Photon &ph)
Helper to ease the implemmantation of the pass Quality requirements.
@ NEVER_TRACK_INDICES
Never track indices, regardless of the setting of the ownership policy.
@ OWN_ELEMENTS
this data object owns its elements
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
Photon_v1 Photon
Definition of the current "egamma version".