|
ATLAS Offline Software
|
Go to the documentation of this file.
17 declareServiceInterface<IegammaMVASvc>();
48 return StatusCode::SUCCESS;
56 ATH_MSG_DEBUG(
"calling egammaMVASvc::getEnergy with cluster and eg");
64 ATH_MSG_FATAL(
"Trying to calibrate an electron, but disabled");
65 return StatusCode::FAILURE;
76 const bool isTRTEndcap = std::abs(ph->
eta()) > 0.8;
77 isConvCalib = isConvCalib && (isTRTEndcap || !isTRTConv);
83 ATH_MSG_FATAL(
"Trying to calibrate a converted photon, but disabled");
84 return StatusCode::FAILURE;
90 ATH_MSG_FATAL(
"Trying to calibrate an unconverted photon, but disabled");
91 return StatusCode::FAILURE;
96 return StatusCode::FAILURE;
99 ATH_MSG_DEBUG(
"Calculated MVA calibrated energy = " << mvaE );
100 return StatusCode::SUCCESS;
108 ATH_MSG_DEBUG(
"calling egammaMVASvc::getEnergy with cluster and egType (" << egType <<
")");
116 ATH_MSG_FATAL(
"Trying to calibrate an electron, but disabled");
117 return StatusCode::FAILURE;
126 ATH_MSG_FATAL(
"Trying to calibrate an unconverted photon, but disabled");
127 return StatusCode::FAILURE;
132 return StatusCode::FAILURE;
135 ATH_MSG_DEBUG(
"Calculated MVA calibrated energy = " << mvaE );
136 return StatusCode::SUCCESS;
151 ATH_MSG_DEBUG(
"MVA energy (" << mvaE <<
") < particle mass ("
152 <<
eg.m() <<
"), setting e = cluster energy (" << cluster.
e() <<
")");
155 return StatusCode::SUCCESS;
170 ATH_MSG_DEBUG(
"MVA energy (" << mvaE <<
") < 0, setting e = cluster energy ("
171 << cluster.
e() <<
")");
174 return StatusCode::SUCCESS;
virtual StatusCode initialize() override
set up/tear down functions
Gaudi::Property< float > m_maxConvR
ToolHandle< IegammaMVACalibTool > m_mvaElectron
MVA tool for electron.
Description of a calorimeter cluster.
bool isConvertedPhoton(const xAOD::Egamma *eg, bool excludeTRT=false)
is the object a converted photon
::StatusCode StatusCode
StatusCode definition for legacy code.
bool isElectron(const xAOD::Egamma *eg)
is the object an electron (not Fwd)
AthROOTErrorHandlerSvc * svc
@ singleTRT
one track only, no Si hits (TRT only)
StatusCode getEnergy(const xAOD::CaloCluster &cluster, const xAOD::Egamma &eg, double &mvaE) const override final
Compute the calibrated energy.
float conversionRadius(const xAOD::Vertex *vx)
return the conversion radius or 9999.
void setCalE(flt_t)
Set Energy for signal state CALIBRATED.
bool isPhoton(const xAOD::Egamma *eg)
is the object a photon
egammaMVASvc(const std::string &name, ISvcLocator *svc)
xAOD::EgammaParameters::ConversionType conversionType(const xAOD::Photon *ph)
return the photon conversion type (see EgammaEnums)
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
@ doubleTRT
two tracks, none with Si hits (TRT only)
Gaudi::Property< bool > m_removeTRTConvBarrel
ToolHandle< IegammaMVACalibTool > m_mvaUnconvertedPhoton
MVA tool for unconverted photon.
StatusCode execute(xAOD::CaloCluster &cluster, const xAOD::Egamma &eg) const override final
Main execute.
virtual double e() const
The total energy of the particle.
ToolHandle< IegammaMVACalibTool > m_mvaConvertedPhoton
MVA tool for converted photon.