7#ifndef EGAMMAMVACALIB_EGAMMAMVASVC_H
8#define EGAMMAMVACALIB_EGAMMAMVASVC_H
26 using extends::extends;
40 const xAOD::EgammaParameters::EgammaType egType,
58 const xAOD::EgammaParameters::EgammaType egType,
66 "ElectronTool",
"",
"Tool to handle MVA trees for electrons"};
70 "FwdElectronTool",
"",
"Tool to handle MVA trees for forward electrons"};
74 "UnconvertedPhotonTool",
"",
"Tool to handle MVA trees for unconverted photons"};
78 "ConvertedPhotonTool",
"",
"Tool to handle MVA trees for converted photons"};
81 "MaxConvRadius", 800.0,
82 "The maximum conversion radius for a photon to be considered converted"};
85 "RemoveTRTConvBarrel", -1,
86 "Remove TRT converted photons in the barrel: no=0, yes=1, automatic=-1"};
89 "folder",
"",
"folder for weight files"};
Principal data class for CaloCell clusters.
ToolHandle< IegammaMVACalibTool > m_mvaElectron
MVA tool for electron.
virtual ~egammaMVASvc() override
virtual StatusCode initialize() override
StatusCode execute(xAOD::CaloCluster &cluster, const xAOD::Egamma &eg, const egammaMVACalib::GlobalEventInfo &gei=egammaMVACalib::GlobalEventInfo()) const override final
Main execute.
ToolHandle< IegammaMVACalibTool > m_mvaUnconvertedPhoton
MVA tool for unconverted photon.
Gaudi::Property< float > m_maxConvR
StatusCode resolve_flags()
Gaudi::Property< int > m_removeTRTConvBarrel
StatusCode getEnergy(const xAOD::CaloCluster &cluster, const xAOD::Egamma &eg, double &mvaE, const egammaMVACalib::GlobalEventInfo &gei=egammaMVACalib::GlobalEventInfo()) const override final
Compute the calibrated energy.
ToolHandle< IegammaMVACalibTool > m_mvaConvertedPhoton
MVA tool for converted photon.
ToolHandle< IegammaMVACalibTool > m_mvaFwdElectron
MVA tool for forward electron.
Gaudi::Property< std::string > m_folder
bool isConvCalib(const xAOD::Photon &ph) const
Decide if the photon is converted or not.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Egamma_v1 Egamma
Definition of the current "egamma version".
Photon_v1 Photon
Definition of the current "egamma version".
A structure holding some global event information.