31 return StatusCode::SUCCESS;
61 pCopies.
reserve (particles->size());
83 "Current photon has no valid fudge factors due to out-of-range");
87 "Unknown correction code %d from ElectronPhotonShowerShapeFudgeTool",
94 pCopies.
resize (particles->size());
98 for (
size_t ipar = 0; ipar < particles->size(); ipar++) {
101 if (!pCopy) pCopy = par;
106 unsigned int isEM = 0;
113 decoratorPass(*par) =
static_cast<bool>(theAccept) ? 1 : 0;
117 decoratorIsEM(*par) = isEM;
118 decoratorScore(*par) = score;
121 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
Return value from object correction CP tools.
@ 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.
Handle class for adding a decoration to an object.
bool getCutResult(const std::string &cutName) const
Get the result of a cut, based on the cut name (safer)
::StatusCode StatusCode
StatusCode definition for legacy code.
@ 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".