4#ifndef MUONINFERENCETOOLS_BUCKETINFERENCETOOLBASE_H
5#define MUONINFERENCETOOLS_BUCKETINFERENCETOOLBASE_H
16#include <onnxruntime_cxx_api.h>
24class ActsGeometryContext;
42 using base_class::base_class;
56 "segmentPositionX_m",
"segmentPositionY_m",
"segmentPositionZ_m",
57 "segmentDirectionX",
"segmentDirectionY",
"segmentDirectionZ",
58 "bucket_chamberIndex",
"bucket_layers",
"bucket_sector",
"bucket_segments"};
61 Ort::Session&
model()
const;
75 const std::vector<const char*>& inputNames,
76 const std::vector<const char*>& outputNames)
const;
82 Gaudi::Property<std::string>
m_outputName{
this,
"OutputName",
"logits"};
88 Gaudi::Property<double>
m_maxDistXY{
this,
"MaxDistXY", 6800.0};
89 Gaudi::Property<double>
m_maxAbsDz{
this,
"MaxAbsDz", 15000.0};
96 this,
"SanitizeNonFinitePredictions",
false,
97 "When true, replace non-finite ONNX outputs with -100 and log a warning."};
105 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.
SG::ReadHandleKey< GeometryContext > GeoContextReadKey_t
Abrivate the ReadHandleKey to declare the data dependency on the Geometry context.
Helper struct to ship the Graph from the space point buckets to ONNX.