#include <egammaMVASvc.h>
Definition at line 23 of file egammaMVASvc.h.
◆ ~egammaMVASvc()
virtual egammaMVASvc::~egammaMVASvc |
( |
| ) |
|
|
inlineoverridevirtual |
◆ execute() [1/2]
Main execute.
We need to calibrate the cluster. Use full egamma object instead of Type As we employ further variables than the ones present in the cluster This method needs to be valid also for reconstruction
Definition at line 177 of file egammaMVASvc.cxx.
188 ATH_MSG_DEBUG(
"MVA energy (" << mvaE <<
") < particle mass ("
189 <<
eg.m() <<
"), setting e = cluster energy (" <<
cluster.e() <<
")");
192 return StatusCode::SUCCESS;
◆ execute() [2/2]
Calibrate the cluster, when the full egamma object is not available.
Only variables related to the cluster are used (e.g. no conversion are used here) If the full egamma object use the other version.
Definition at line 195 of file egammaMVASvc.cxx.
207 ATH_MSG_DEBUG(
"MVA energy (" << mvaE <<
") < 0, setting e = cluster energy ("
211 return StatusCode::SUCCESS;
◆ getEnergy() [1/2]
Compute the calibrated energy.
Definition at line 97 of file egammaMVASvc.cxx.
102 ATH_MSG_DEBUG(
"calling egammaMVASvc::getEnergy with cluster and eg");
110 ATH_MSG_FATAL(
"Trying to calibrate an electron, but disabled");
111 return StatusCode::FAILURE;
120 ATH_MSG_FATAL(
"Trying to calibrate a converted photon, but disabled");
121 return StatusCode::FAILURE;
127 ATH_MSG_FATAL(
"Trying to calibrate an unconverted photon, but disabled");
128 return StatusCode::FAILURE;
133 return StatusCode::FAILURE;
136 ATH_MSG_DEBUG(
"Calculated MVA calibrated energy = " << mvaE );
137 return StatusCode::SUCCESS;
◆ getEnergy() [2/2]
Compute the calibrated energy when the full egamma object is not available.
Definition at line 140 of file egammaMVASvc.cxx.
145 ATH_MSG_DEBUG(
"calling egammaMVASvc::getEnergy with cluster and egType (" << egType <<
")");
153 ATH_MSG_FATAL(
"Trying to calibrate an electron, but disabled");
154 return StatusCode::FAILURE;
163 ATH_MSG_FATAL(
"Trying to calibrate an unconverted photon, but disabled");
164 return StatusCode::FAILURE;
169 return StatusCode::FAILURE;
172 ATH_MSG_DEBUG(
"Calculated MVA calibrated energy = " << mvaE );
173 return StatusCode::SUCCESS;
◆ initialize()
StatusCode egammaMVASvc::initialize |
( |
| ) |
|
|
overridevirtual |
◆ isConvCalib()
◆ resolve_flags()
StatusCode egammaMVASvc::resolve_flags |
( |
| ) |
|
|
private |
Definition at line 54 of file egammaMVASvc.cxx.
57 const bool removeTRTConvBarrelDefault =
false;
60 std::unique_ptr<TFile>
f(TFile::Open(mva_filename.c_str()));
61 if (!
f ||
f->IsZombie()) {
66 TObjString* conversionDefinitionObj =
nullptr;
67 f->GetObject(
"conversionDefinition", conversionDefinitionObj);
68 if (conversionDefinitionObj) {
80 ATH_MSG_ERROR(
"Could not determine if TRT converted photons should be removed in the barrel");
81 return StatusCode::FAILURE;
83 return StatusCode::SUCCESS;
◆ m_folder
Gaudi::Property<std::string> egammaMVASvc::m_folder |
|
private |
Initial value:{this,
"folder", "", "folder for weight files"}
Definition at line 80 of file egammaMVASvc.h.
◆ m_maxConvR
Gaudi::Property<float> egammaMVASvc::m_maxConvR |
|
private |
Initial value:{this,
"MaxConvRadius", 800.0,
"The maximum conversion radius for a photon to be considered converted"}
Definition at line 72 of file egammaMVASvc.h.
◆ m_mvaConvertedPhoton
Initial value:{this,
"ConvertedPhotonTool", "", "Tool to handle MVA trees for converted photons"}
MVA tool for converted photon.
Definition at line 69 of file egammaMVASvc.h.
◆ m_mvaElectron
Initial value:{this,
"ElectronTool", "", "Tool to handle MVA trees for electrons"}
MVA tool for electron.
Definition at line 61 of file egammaMVASvc.h.
◆ m_mvaUnconvertedPhoton
Initial value:{this,
"UnconvertedPhotonTool", "", "Tool to handle MVA trees for unconverted photons"}
MVA tool for unconverted photon.
Definition at line 65 of file egammaMVASvc.h.
◆ m_removeTRTConvBarrel
Gaudi::Property<int> egammaMVASvc::m_removeTRTConvBarrel |
|
private |
Initial value:{this,
"RemoveTRTConvBarrel", -1,
"Remove TRT converted photons in the barrel: no=0, yes=1, automatic=-1"}
Definition at line 76 of file egammaMVASvc.h.
The documentation for this class was generated from the following files: