36{
37
39
40
41 SG::WriteDecorHandle<xAOD::EgammaContainer, char> decoratorPass{
43 };
44 SG::WriteDecorHandle<xAOD::EgammaContainer, unsigned int> decoratorIsEM{
46 };
47 SG::WriteDecorHandle<xAOD::EgammaContainer, float> decoratorScore{
49 };
50
51
52
53
54
55
56
57
58
64
72 } else {
76 pCopy = ph;
77 }
79
81 Warning(
82 "addBranches()",
83 "Current photon has no valid fudge factors due to out-of-range");
84 } else {
85 Warning(
86 "addBranches()",
87 "Unknown correction code %d from ElectronPhotonShowerShapeFudgeTool",
88 (int)correctionCode);
89 }
90 pCopies.push_back (pCopy);
91 }
92 }
93 else {
95 }
96
97
98 for (
size_t ipar = 0; ipar <
particles->size(); ipar++) {
101 if (!pCopy) pCopy =
par;
102
103
105
106 unsigned int isEM = 0;
108
110
111
113 decoratorPass(*par) = static_cast<bool>(theAccept) ? 1 : 0;
114 } else {
115 decoratorPass(*par) = theAccept.getCutResult(
m_cut) ? 1 : 0;
116 }
117 decoratorIsEM(*par) = isEM;
118 decoratorScore(*par) =
score;
119 }
120
121 return StatusCode::SUCCESS;
122}
#define ATH_CHECK
Evaluate an expression and check for errors.
@ OutOfValidityRange
Input object is out of validity range.
@ Ok
The correction was done successfully.
@ NEVER_TRACK_INDICES
Never track indices, regardless of the setting of the ownership policy.
@ OWN_ELEMENTS
this data object owns its elements
ObjectType
Type of objects that have a representation in the xAOD EDM.
@ Electron
The object is an electron.
Egamma_v1 Egamma
Definition of the current "egamma version".
Photon_v1 Photon
Definition of the current "egamma version".
EgammaContainer_v1 EgammaContainer
Definition of the current "egamma container version".
Electron_v1 Electron
Definition of the current "egamma version".