Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
14 #include "Gaudi/Interfaces/IOptionsSvc.h"
27 m_tool.setTypeAndName(
"CP::EgammaCalibrationAndSmearingTool/AutoConfiguredEgammaCalibTool");
29 josvc->set(
"ToolSvc.AutoConfiguredEgammaCalibTool.esModel",
"es2012c");
33 return StatusCode::SUCCESS;
37 const EventContext& ctx = Gaudi::Hive::currentContext();
40 if (!event_info.isValid()) {
45 if (!readHandle.isValid()) {
47 return StatusCode::FAILURE;
55 if (!output.first || !output.second) {
57 return StatusCode::FAILURE;
59 outcontainer = output.first.get();
61 ATH_CHECK(writeHandle.recordNonConst(std::move(output.first), std::move(output.second)));
64 std::pair<std::unique_ptr<xAOD::PhotonContainer>, std::unique_ptr<xAOD::ShallowAuxContainer>> output =
xAOD::shallowCopyContainer(*photons, ctx);
65 if (!output.first || !output.second) {
67 return StatusCode::FAILURE;
69 outcontainer = output.first.get();
71 ATH_CHECK(writeHandle.recordNonConst(std::move(output.first), std::move(output.second)));
74 return StatusCode::FAILURE;
78 return StatusCode::FAILURE;
86 return StatusCode::SUCCESS;
#define ATH_MSG_VERBOSE(x)
virtual StatusCode execute()
Function executing the algorithm.
Select isolated Photons, Electrons and Muons.
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
virtual StatusCode initialize()
Function initialising the algorithm.
@ Error
Some error happened during the object correction.
SG::WriteHandleKey< xAOD::EgammaContainer > m_outputKey
ToolHandle< CP::IEgammaCalibrationAndSmearingTool > m_tool
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
CalibratedEgammaProvider(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, [[maybe_unused]] const EventContext &ctx)
Function making a shallow copy of a constant container.
SG::ReadHandleKey< xAOD::EgammaContainer > m_inputKey
bool setOriginalObjectLink(const IParticle &original, IParticle ©)
This function should be used by CP tools when they make a deep copy of an object in their correctedCo...