|
ATLAS Offline Software
|
Go to the documentation of this file.
21 , m_sgName(
"DFCommonPhotonsCleaning")
23 declareInterface<DerivationFramework::IAugmentationTool>(
this);
32 "No SG name provided for the output of EGPhotonCleaningWrapper");
33 return StatusCode::FAILURE;
44 return StatusCode::SUCCESS;
51 const EventContext& ctx = Gaudi::Hive::currentContext();
64 pCopies.
reserve (photons->size());
72 Error(
"addBranches()",
73 "Error applying fudge factors to current photon");
77 "Current photon has no valid fudge factors due to out-of-range");
79 Warning(
"addBranches()",
80 "Unknown correction code %d from "
81 "ElectronPhotonShowerShapeFudgeTool",
88 pCopies.
resize (photons->size());
102 if (!pCopy) pCopy =
photon;
108 return StatusCode::SUCCESS;
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
ToolHandle< IElectronPhotonShowerShapeFudgeTool > m_fudgeMCTool
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
@ 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
Pass the thinning service
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.