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();
47 return StatusCode::FAILURE;
55 if (!output.first || !output.second) {
57 return StatusCode::FAILURE;
59 outcontainer = output.first.get();
65 if (!output.first || !output.second) {
67 return StatusCode::FAILURE;
69 outcontainer = output.first.get();
74 return StatusCode::FAILURE;
78 return StatusCode::FAILURE;
86 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode initialize()
Function initialising the algorithm.
CalibratedEgammaProvider(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
virtual StatusCode execute()
Function executing the algorithm.
SG::ReadHandleKey< xAOD::EgammaContainer > m_inputKey
ToolHandle< CP::IEgammaCalibrationAndSmearingTool > m_tool
SG::WriteHandleKey< xAOD::EgammaContainer > m_outputKey
@ Error
Some error happened during the object correction.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
StatusCode recordNonConst(std::unique_ptr< T > data)
Record a non-const object to the store.
Select isolated Photons, Electrons and Muons.
typename ShallowCopyResult< T >::type ShallowCopyResult_t
Return type of xAOD::shallowCopy.
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
ElectronContainer_v1 ElectronContainer
Definition of the current "electron container version".
ShallowCopyResult_t< T > shallowCopy(const T &cont, const EventContext &ctx)
Create a shallow copy of an existing container.
Egamma_v1 Egamma
Definition of the current "egamma version".
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...
EgammaContainer_v1 EgammaContainer
Definition of the current "egamma container version".