 |
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef RingerSelectorTools_tools_onnx_RingerSelector_h
5 #define RingerSelectorTools_tools_onnx_RingerSelector_h
9 #include "GaudiKernel/StatusCode.h"
10 #include "GaudiKernel/ServiceHandle.h"
15 #include <onnxruntime_cxx_api.h>
19 #include "GaudiKernel/SystemOfUnits.h"
71 template <
typename T>
bool strtof(
const std::string& input, T&
f);
73 template <
typename T> std::vector<T>
GetValues (
const std::string& input, TEnv&
env);
75 std::vector<std::string>
GetPaths(
const std::string& input, TEnv&
env);
Service used for managing global objects used by Onnx Runtime.
Class describing an electron reconstructed in the HLT.
path
python interpreter configuration --------------------------------------—
std::vector< Ringer::onnx::Threshold > m_thresholds
hold all thresholds definitions
float predict(const xAOD::TrigRingerRings *, const xAOD::TrigElectron *) const
Calculation of model output.
std::string GetBasePath(const std::string &path) const
Get basepath from calib path.
bool strtof(const std::string &input, T &f)
parse tenv string into list with type T
~RingerSelector()=default
Standard destructor.
std::vector< T > GetValues(const std::string &input, TEnv &env)
Get the list of values inside of tenv.
bool accept(const xAOD::TrigRingerRings *, float discr, float mu) const
Accept method.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode read_from(const std::string &, AthOnnx::IOnnxRuntimeSvc *)
read tunings from configuration file
RingerSelector(const std::string &name)
Standard constructor.
Class mimicking the AthMessaging class from the offline software.
std::vector< std::string > GetPaths(const std::string &input, TEnv &env)
Get the list of paths inside of tenv.
std::vector< Ringer::onnx::Model > m_models
hold all onnx sessions
std::vector< std::vector< float > > prepare_inputs(unsigned barcode, const xAOD::TrigRingerRings *, const xAOD::TrigElectron *) const
prepare all inputs
Namespace dedicated for Ringer utilities.