27#ifndef ELECTRONPHOTONSELECTORTOOLS_PHOTONBDTCALCULATOR_H
28#define ELECTRONPHOTONSELECTORTOOLS_PHOTONBDTCALCULATOR_H
66 Gaudi::Property<unsigned>
m_reserveVarsConv {
this,
"ReserveVarsConv", 16,
"Reserve size for input vector (converted photons)"};
67 Gaudi::Property<unsigned>
m_reserveVarsUnconv {
this,
"ReserveVarsUnconv", 16,
"Reserve size for input vector (unconverted photons)"};
70 ToolHandle<PhotonSingleBDTCalculator>
m_toolConv {
this,
"ToolConv",
"",
"BDT calculator for converted photons"};
71 ToolHandle<PhotonSingleBDTCalculator>
m_toolUnconv {
this,
"ToolUnconv",
"",
"BDT calculator for unconverted photons"};
74 Gaudi::Property<std::string>
m_decorationName {
this,
"DecorationName",
"PhotonBDTScore",
"Aux decoration name for BDT score"};
75 Gaudi::Property<bool>
m_excludeTRT {
this,
"ExcludeTRT",
true,
"Exclude TRT conversions (for Run 3 conversion definition)"};
76 Gaudi::Property<bool>
m_forceRecompute {
this,
"ForceRecompute",
false,
"If true, recompute even if decoration exists"};
StatusCode getScore(const xAOD::Photon &ph, float &score) const
Return the score (computes if needed if m_forceRecompute is true)
Gaudi::Property< bool > m_excludeTRT
StatusCode fillVariablesConv(const xAOD::Photon &ph, std::vector< float > &vars) const
virtual double evaluate(const xAOD::Photon *photon) const override
virtual ~PhotonBDTCalculator() override
Gaudi::Property< bool > m_forceRecompute
bool isConverted(const xAOD::Photon &ph) const
Gaudi::Property< unsigned > m_reserveVarsConv
StatusCode fillVariablesUnconv(const xAOD::Photon &ph, std::vector< float > &vars) const
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Gaudi::Property< std::string > m_decorationName
ToolHandle< PhotonSingleBDTCalculator > m_toolConv
ToolHandle< PhotonSingleBDTCalculator > m_toolUnconv
StatusCode decorate(const xAOD::Photon &ph) const
Compute and decorate the photon with the BDT score.
Gaudi::Property< unsigned > m_reserveVarsUnconv
PhotonBDTCalculator(const std::string &name)
Photon_v1 Photon
Definition of the current "egamma version".