 |
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;
50 const EventContext& ctx = Gaudi::Hive::currentContext();
63 pCopies.
reserve (photons->size());
71 Error(
"addBranches()",
72 "Error applying fudge factors to current photon");
76 "Current photon has no valid fudge factors due to out-of-range");
78 Warning(
"addBranches()",
79 "Unknown correction code %d from "
80 "ElectronPhotonShowerShapeFudgeTool",
87 pCopies.
resize (photons->size());
101 if (!pCopy) pCopy =
photon;
107 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.
virtual StatusCode addBranches() const override final
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.