28{
29
31
32
33
34
35
36
37
38
39
42 pCopies.reserve (photons->size());
44
50 Error(
"addBranches()",
51 "Error applying fudge factors to current photon");
53 Warning(
54 "addBranches()",
55 "Current photon has no valid fudge factors due to out-of-range");
56 } else {
57 Warning("addBranches()",
58 "Unknown correction code %d from "
59 "ElectronPhotonShowerShapeFudgeTool",
60 (int)correctionCode);
61 }
62 pCopies.push_back (ph);
63 }
64 }
65 else {
66 pCopies.resize (photons->size());
67 }
68
69 SG::WriteDecorHandle<xAOD::PhotonContainer, char> decoratorPass{
71 };
72 SG::WriteDecorHandle<xAOD::PhotonContainer, char> decoratorPassDelayed{
74 };
75
76
78
80 if (!pCopy) pCopy =
photon;
81
82
85 }
86 return StatusCode::SUCCESS;
87}
@ Error
Some error happened during the object correction.
@ OutOfValidityRange
Input object is out of validity range.
@ Ok
The correction was done successfully.
SG::WriteDecorHandleKey< xAOD::PhotonContainer > m_decoratorPassDelayed
SG::WriteDecorHandleKey< xAOD::PhotonContainer > m_decoratorPass
SG::ReadHandleKey< xAOD::PhotonContainer > m_containerName
ToolHandle< IElectronPhotonShowerShapeFudgeTool > m_fudgeMCTool
Error
The different types of error that can be flagged in the L1TopoRDO.
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".