17 #include "GaudiKernel/SystemOfUnits.h"
24 FexBase(
name, pSvcLocator),
33 ATH_MSG_ERROR(
"Failed to find NN configuration file'" << m_filename <<
"'!");
34 return StatusCode::FAILURE;
38 if (m_configNN.inputs.size() != 1)
return StatusCode::FAILURE;
39 m_graphNN = std::make_unique<lwt::LightweightGraph>(m_configNN);
40 CHECK(m_triggerMETs.initialize());
41 return initializeBase({
"HLTMET"});
46 const EventContext& context,
47 MonGroupBuilder&)
const
50 std::map<std::string, std::map<std::string, double> >
inputs;
58 return StatusCode::FAILURE;
63 inputs[
"node_0"].insert(std::pair<std::string, double>(
name+
".met",-1) );
64 inputs[
"node_0"].insert(std::pair<std::string, double>(
name+
".sumet",-1) );
69 float mpx = metObj.
ex();
70 float mpy = metObj.
ey();
76 std::map<std::string, double> outputNN = m_graphNN->compute(
inputs);
82 return StatusCode::SUCCESS;