9#ifndef DERIVATIONFRAMEWORK_DiphotonVertexDecorator_H
10#define DERIVATIONFRAMEWORK_DiphotonVertexDecorator_H
18#include "GaudiKernel/ToolHandle.h"
19#include "GaudiKernel/SystemOfUnits.h"
42 using base_class::base_class;
45 virtual StatusCode
initialize()
override final;
47 virtual StatusCode
addBranches(
const EventContext& ctx)
const override final;
62 Gaudi::Property<double>
m_minPhotonPt{
this,
"MinimumPhotonPt", 20.*Gaudi::Units::GeV};
64 Gaudi::Property<double>
m_maxEta{
this,
"MaxEta", 2.37};
65 Gaudi::Property<bool>
m_ignoreConv{
this,
"IgnoreConvPointing",
false};
72 if (
part1->charge()==0 &&
part2->charge()!=0)
return false;
73 if (
part1->charge()!=0 &&
part2->charge()==0)
return true;
Gaudi::Property< double > m_tcMatch_dR
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonKey
bool PhotonPreselect(const xAOD::Photon *ph) const
static bool greaterPtFlowElement(const xAOD::FlowElement *part1, const xAOD::FlowElement *part2)
Gaudi::Property< double > m_tcMatch_maxRat
Gaudi::Property< double > m_minPhotonPt
SG::ReadHandleKey< xAOD::FlowElementContainer > m_FEContainerHandleKey
virtual StatusCode addBranches(const EventContext &ctx) const override final
SG::WriteHandleKey< xAOD::VertexContainer > m_diphotonVertexKey
Gaudi::Property< bool > m_ignoreConv
virtual StatusCode initialize() override final
Gaudi::Property< double > m_maxEta
SG::ReadHandleKey< xAOD::VertexContainer > m_primaryVertexKey
ToolHandle< CP::IPhotonVertexSelectionTool > m_photonVertexSelectionTool
Gaudi::Property< bool > m_removeCrack
StatusCode matchFlowElement(const xAOD::Photon *eg, const xAOD::FlowElementContainer *pfoCont) const
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
FlowElementContainer_v1 FlowElementContainer
Definition of the current "pfo container version".
FlowElement_v1 FlowElement
Definition of the current "pfo version".
Photon_v1 Photon
Definition of the current "egamma version".