5#ifndef PHOTONVERTEXSELECTION_BUILDVERTEXPOINTINGALG_H
6#define PHOTONVERTEXSELECTION_BUILDVERTEXPOINTINGALG_H
34 ISvcLocator* svcLoc =
nullptr);
40 this,
"PhotonContainerKey",
"Photons",
41 "The input photons (or electrons) container"};
45 this,
"PointingVertexContainerKey",
"PhotonPointingVertices",
""};
73 this,
"selectionTool",
"CP::AsgPtEtaSelectionTool/PhotonSelectionTool",
74 "the selection tool we apply to photons to compute pointing variables"};
77 this,
"goodPhotonSelectionTool",
"",
78 "the selection tool to count good photons"};
80 Gaudi::Property<float>
m_convPtCut {
this,
"convPtCut", 2E3,
"the conversion pt cut"};
81 Gaudi::Property<int>
m_nphotons_to_use {
this,
"nphotonsToUse", -1,
"the number of photons to use for the pointing computation"};
SG::ReadDecorHandleKey< xAOD::EgammaContainer > m_photon_errz_key
virtual StatusCode initialize()
void selectPhotons(const xAOD::EgammaContainer &original_photons, ConstDataVector< DataVector< xAOD::Egamma > > &photons_selected) const
SG::ReadDecorHandleKey< xAOD::EgammaContainer > m_photon_zvertex_key
ToolHandle< IAsgSelectionTool > m_goodPhotonSelectionTool
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_photons_px_key
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_photon_links_key
Gaudi::Property< int > m_nphotons_to_use
Gaudi::Property< float > m_convPtCut
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_z_common_nphotons_key
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_nphotons_good_key
virtual StatusCode execute()
SG::WriteHandleKey< xAOD::VertexContainer > m_pointingVertexContainerKey
SG::ReadHandleKey< xAOD::EgammaContainer > m_photonContainerKey
BuildVertexPointingAlg(const std::string &name, ISvcLocator *svcLoc=nullptr)
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_photons_py_key
ToolHandle< IAsgSelectionTool > m_selectionTool
SG::ReadDecorHandleKey< xAOD::EgammaContainer > m_photon_HPV_zvertex_key
SG::ReadDecorHandleKey< xAOD::EgammaContainer > m_photon_HPV_errz_key
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_photons_pz_key
DataVector adapter that acts like it holds const pointers.
the (new) base class for EventLoop algorithms
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
EgammaContainer_v1 EgammaContainer
Definition of the current "egamma container version".