Public Member Functions | |
PointIdAlgTriton (fhicl::Table< Config > const &table) | |
std::vector< float > | Run (std::vector< std::vector< float >> const &inp2d) const override |
std::vector< std::vector< float > > | Run (std::vector< std::vector< std::vector< float >>> const &inps, int samples=-1) const override |
Public Member Functions inherited from PointIdAlgTools::IPointIdAlg | |
virtual | ~IPointIdAlg () noexcept=default |
float | predictIdValue (unsigned int wire, float drift, size_t outIdx=0) |
std::vector< float > | predictIdVector (unsigned int wire, float drift) |
std::vector< std::vector< float > > | predictIdVectors (const std::vector< std::pair< unsigned int, float >> &points) |
std::vector< std::string > const & | outputLabels (void) const |
bool | isInsideFiducialRegion (unsigned int wire, float drift) const |
Public Member Functions inherited from img::DataProviderAlg | |
DataProviderAlg (const fhicl::ParameterSet &pset) | |
DataProviderAlg (const Config &config) | |
virtual | ~DataProviderAlg () |
bool | setWireDriftData (const detinfo::DetectorClocksData &clock_data, const detinfo::DetectorPropertiesData &det_prop, const std::vector< recob::Wire > &wires, unsigned int plane, unsigned int tpc, unsigned int cryo) |
std::vector< float > const & | wireData (size_t widx) const |
std::vector< std::vector< float > > | getPatch (size_t wire, float drift, size_t patchSizeW, size_t patchSizeD) const |
float | getPixelOrZero (int wire, int drift) const |
double | getAdcSum () const |
size_t | getAdcArea () const |
float | poolMax (int wire, int drift, size_t r=0) const |
Pool max value in a patch around the wire/drift pixel. More... | |
unsigned int | Cryo () const |
Pool sum of pixels in a patch around the wire/drift pixel. More... | |
unsigned int | TPC () const |
unsigned int | Plane () const |
unsigned int | NWires () const |
unsigned int | NScaledDrifts () const |
unsigned int | NCachedDrifts () const |
unsigned int | DriftWindow () const |
float | ZeroLevel () const |
Level of zero ADC after scaling. More... | |
double | LifetimeCorrection (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, double tick) const |
Private Attributes | |
std::string | fTritonModelName |
std::string | fTritonURL |
bool | fTritonVerbose |
std::string | fTritonModelVersion |
std::unique_ptr< nic::InferenceServerGrpcClient > | triton_client |
inference::ModelMetadataResponse | triton_modmet |
inference::ModelConfigResponse | triton_modcfg |
std::vector< int64_t > | triton_inpshape |
nic::InferOptions | triton_options |
Additional Inherited Members | |
Public Types inherited from img::DataProviderAlg | |
enum | EDownscaleMode { kMax = 1, kMaxMean = 2, kMean = 3 } |
Protected Member Functions inherited from PointIdAlgTools::IPointIdAlg | |
bool | bufferPatch (size_t wire, float drift, std::vector< std::vector< float >> &patch) |
bool | bufferPatch (size_t wire, float drift) |
void | resizePatch (void) |
Protected Member Functions inherited from img::DataProviderAlg | |
std::vector< float > | downscaleMax (std::size_t dst_size, std::vector< float > const &adc, size_t tick0) const |
std::vector< float > | downscaleMaxMean (std::size_t dst_size, std::vector< float > const &adc, size_t tick0) const |
std::vector< float > | downscaleMean (std::size_t dst_size, std::vector< float > const &adc, size_t tick0) const |
std::vector< float > | downscale (std::size_t dst_size, std::vector< float > const &adc, size_t tick0) const |
size_t | getDriftIndex (float drift) const |
std::optional< std::vector< float > > | setWireData (std::vector< float > const &adc, size_t wireIdx) const |
bool | patchFromDownsampledView (size_t wire, float drift, size_t size_w, size_t size_d, std::vector< std::vector< float >> &patch) const |
bool | patchFromOriginalView (size_t wire, float drift, size_t size_w, size_t size_d, std::vector< std::vector< float >> &patch) const |
virtual DataProviderAlgView | resizeView (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, size_t wires, size_t drifts) |
Protected Attributes inherited from PointIdAlgTools::IPointIdAlg | |
std::vector< std::string > | fNNetOutputs |
size_t | fPatchSizeW |
size_t | fPatchSizeD |
std::vector< std::vector< float > > | fWireDriftPatch |
size_t | fCurrentWireIdx |
size_t | fCurrentScaledDrift |
Protected Attributes inherited from img::DataProviderAlg | |
DataProviderAlgView | fAlgView |
EDownscaleMode | fDownscaleMode |
size_t | fDriftWindow |
bool | fDownscaleFullView |
float | fDriftWindowInv |
calo::CalorimetryAlg | fCalorimetryAlg |
geo::GeometryCore const * | fGeometry |
Definition at line 17 of file PointIdAlgTriton_tool.cc.
|
explicit |
Definition at line 41 of file PointIdAlgTriton_tool.cc.
|
overridevirtual |
Implements PointIdAlgTools::IPointIdAlg.
Definition at line 98 of file PointIdAlgTriton_tool.cc.
|
overridevirtual |
Implements PointIdAlgTools::IPointIdAlg.
Definition at line 170 of file PointIdAlgTriton_tool.cc.
|
private |
Definition at line 26 of file PointIdAlgTriton_tool.cc.
|
private |
Definition at line 29 of file PointIdAlgTriton_tool.cc.
|
private |
Definition at line 27 of file PointIdAlgTriton_tool.cc.
|
private |
Definition at line 28 of file PointIdAlgTriton_tool.cc.
|
private |
Definition at line 31 of file PointIdAlgTriton_tool.cc.
|
mutableprivate |
Definition at line 34 of file PointIdAlgTriton_tool.cc.
|
private |
Definition at line 33 of file PointIdAlgTriton_tool.cc.
|
private |
Definition at line 32 of file PointIdAlgTriton_tool.cc.
|
private |
Definition at line 35 of file PointIdAlgTriton_tool.cc.