5#ifndef MUONINFERENCETOOLS_BUCKETINFERENCETOOLBASE_H
6#define MUONINFERENCETOOLS_BUCKETINFERENCETOOLBASE_H
17#include <onnxruntime_cxx_api.h>
25class ActsGeometryContext;
43 using base_class::base_class;
57 "segmentPositionX_m",
"segmentPositionY_m",
"segmentPositionZ_m",
58 "segmentDirectionX",
"segmentDirectionY",
"segmentDirectionZ",
59 "bucket_chamberIndex",
"bucket_layers",
"bucket_sector",
"bucket_segments"};
62 Ort::Session&
model()
const;
76 const std::vector<const char*>& inputNames,
77 const std::vector<const char*>& outputNames)
const;
83 Gaudi::Property<std::string>
m_outputName{
this,
"OutputName",
"logits"};
89 Gaudi::Property<double>
m_maxDistXY{
this,
"MaxDistXY", 6800.0};
90 Gaudi::Property<double>
m_maxAbsDz{
this,
"MaxAbsDz", 15000.0};
97 this,
"SanitizeNonFinitePredictions",
false,
98 "When true, replace non-finite ONNX outputs with -100 and log a warning."};
106 this,
"ModelSession",
""};
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Helper struct to ship the Graph from the space point buckets to ONNX.