 |
ATLAS Offline Software
|
Go to the documentation of this file.
21 , m_sgName(
"DFCommonPhotonsCleaning")
23 declareProperty(
"StoreGateEntryName",
m_sgName);
31 "No SG name provided for the output of EGPhotonCleaningWrapper");
32 return StatusCode::FAILURE;
43 return StatusCode::SUCCESS;
62 pCopies.
reserve (photons->size());
70 Error(
"addBranches()",
71 "Error applying fudge factors to current photon");
75 "Current photon has no valid fudge factors due to out-of-range");
77 Warning(
"addBranches()",
78 "Unknown correction code %d from "
79 "ElectronPhotonShowerShapeFudgeTool",
86 pCopies.
resize (photons->size());
100 if (!pCopy) pCopy =
photon;
106 return StatusCode::SUCCESS;
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
ToolHandle< IElectronPhotonShowerShapeFudgeTool > m_fudgeMCTool
@ NEVER_TRACK_INDICES
Never track indices, regardless of the setting of the ownership policy.
SG::WriteDecorHandleKey< xAOD::PhotonContainer > m_decoratorPass
bool passOQquality(const xAOD::Photon &ph)
Helper to ease the implemmantation of the pass Quality requirements.
@ OutOfValidityRange
Input object is out of validity range.
@ Error
Some error happened during the object correction.
@ OWN_ELEMENTS
this data object owns its elements
virtual StatusCode initialize() override final
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
#define CHECK(...)
Evaluate an expression and check for errors.
void resize(size_type sz)
Resizes the collection to the specified number of elements.
SG::WriteDecorHandleKey< xAOD::PhotonContainer > m_decoratorPassDelayed
value_type push_back(value_type pElem)
Add an element to the end of the collection.
@ Ok
The correction was done successfully.
EGPhotonCleaningWrapper(const std::string &t, const std::string &n, const IInterface *p)
SG::ReadHandleKey< xAOD::PhotonContainer > m_containerName
Return value from object correction CP tools.
bool passOQqualityDelayed(const xAOD::Photon &ph)
Helpers to ease the implementation of the pass Quality requirements.
virtual StatusCode addBranches(const EventContext &ctx) const override final