34 return StatusCode::SUCCESS;
39 const EventContext& ctx = Gaudi::Hive::currentContext();
44 return StatusCode::FAILURE;
57 std::pair<float, float> caloPointing =
m_pointingTool->getCaloPointing(photon);
59 caloPointingZDec(*photon) = caloPointing.first;
64 zCommonDec(*photon) = zCommon.first;
65 zCommonErrorDec(*photon) = zCommon.second;
68 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
DataVector adapter that acts like it holds const pointers.
DataVector adapter that acts like it holds const pointers.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const DV * asDataVector() const
Return a pointer to this object, as a const DataVector.
StatusCode execute() override
virtual StatusCode initialize() override
SG::ReadHandleKey< xAOD::EgammaContainer > m_photonContainerKey
Gaudi::Property< std::string > m_zCommonDecorName
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_zCommonError
ToolHandle< CP::IPhotonPointingTool > m_pointingTool
SG::ReadHandleKey< xAOD::EventInfo > m_eventInKey
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_zCommon
ToolHandle< CP::IPhotonVertexSelectionTool > m_photonVtxTool
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_caloPointingZ
Gaudi::Property< std::string > m_caloPointingZDecorName
DecoratePhotonPointingAlg(const std::string &name, ISvcLocator *svcLoc=nullptr)
Gaudi::Property< std::string > m_zCommonErrorDecorName
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Handle class for adding a decoration to an object.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
std::pair< float, float > getZCommonAndError(const xAOD::EventInfo *eventInfo, const xAOD::EgammaContainer *egammas, float convPtCut=2e3)
Return zCommon and zCommonError.
Egamma_v1 Egamma
Definition of the current "egamma version".