#include <TracksterInferenceByDNN.h>
Public Member Functions | |
void | inputData (const std::vector< reco::CaloCluster > &layerClusters, std::vector< Trackster > &tracksters) override |
void | runInference (std::vector< Trackster > &tracksters) override |
TracksterInferenceByDNN (const edm::ParameterSet &conf) | |
Public Member Functions inherited from ticl::TracksterInferenceAlgoBase | |
TracksterInferenceAlgoBase (const edm::ParameterSet &conf) | |
virtual | ~TracksterInferenceAlgoBase () |
Static Public Member Functions | |
static void | fillPSetDescription (edm::ParameterSetDescription &iDesc) |
Static Public Member Functions inherited from ticl::TracksterInferenceAlgoBase | |
static void | fillPSetDescription (edm::ParameterSetDescription &desc) |
Private Attributes | |
int | batchSize_ |
int | doPID_ |
int | doRegression_ |
const float | eidMinClusterEnergy_ |
const int | eidNClusters_ |
const int | eidNLayers_ |
const std::string | en_modelPath_ |
const std::string | id_modelPath_ |
std::vector< std::vector< float > > | input_Data_ |
std::vector< std::vector< int64_t > > | input_shapes_ |
const std::vector< std::string > | inputNames_ |
const cms::Ort::ONNXRuntime * | onnxEnergySession_ |
const cms::Ort::ONNXRuntime * | onnxPIDSession_ |
const std::vector< std::string > | output_en_ |
const std::vector< std::string > | output_id_ |
hgcal::RecHitTools | rhtools_ |
std::vector< int > | tracksterIndices_ |
Static Private Attributes | |
static constexpr int | eidNFeatures_ = 3 |
Additional Inherited Members | |
Protected Attributes inherited from ticl::TracksterInferenceAlgoBase | |
int | algo_verbosity_ |
Definition at line 9 of file TracksterInferenceByDNN.h.
|
explicit |
Definition at line 14 of file TracksterInferenceByDNN.cc.
References en_modelPath_, id_modelPath_, onnxEnergySession_, and onnxPIDSession_.
|
static |
Definition at line 128 of file TracksterInferenceByDNN.cc.
References edm::ParameterSetDescription::add().
|
overridevirtual |
Implements ticl::TracksterInferenceAlgoBase.
Definition at line 39 of file TracksterInferenceByDNN.cc.
References a, funct::abs(), b, batchSize_, eidMinClusterEnergy_, eidNClusters_, eidNFeatures_, eidNLayers_, reco::CaloCluster::energy(), reco::CaloCluster::eta(), f, hgcal::RecHitTools::getLayerWithOffset(), reco::CaloCluster::hitsAndFractions(), mps_fire::i, input_Data_, input_shapes_, dqmiolumiharvest::j, isotrackApplyRegressor::k, hltEgammaHGCALIDVarsL1Seeded_cfi::layerClusters, reco::CaloCluster::phi(), rhtools_, jetUpdater_cfi::sort, tracksterIndices_, HitToTracksterAssociation_cfi::tracksters, bphysicsOniaDQM_cfi::vertex, ticl::Trackster::vertex_multiplicity(), AlignmentTracksFromVertexSelector_cfi::vertices, and ticl::Trackster::vertices().
|
overridevirtual |
Implements ticl::TracksterInferenceAlgoBase.
Definition at line 98 of file TracksterInferenceByDNN.cc.
References batchSize_, doPID_, doRegression_, HBHEDarkening_cff::energy, mps_fire::i, input_Data_, input_shapes_, inputNames_, onnxEnergySession_, onnxPIDSession_, output_en_, output_id_, mps_fire::result, cms::Ort::ONNXRuntime::run(), tracksterIndices_, and HitToTracksterAssociation_cfi::tracksters.
|
private |
Definition at line 37 of file TracksterInferenceByDNN.h.
Referenced by inputData(), and runInference().
|
private |
Definition at line 30 of file TracksterInferenceByDNN.h.
Referenced by runInference().
|
private |
Definition at line 31 of file TracksterInferenceByDNN.h.
Referenced by runInference().
|
private |
Definition at line 26 of file TracksterInferenceByDNN.h.
Referenced by inputData().
|
private |
Definition at line 28 of file TracksterInferenceByDNN.h.
Referenced by inputData().
|
staticprivate |
Definition at line 29 of file TracksterInferenceByDNN.h.
Referenced by inputData().
|
private |
Definition at line 27 of file TracksterInferenceByDNN.h.
Referenced by inputData().
|
private |
Definition at line 22 of file TracksterInferenceByDNN.h.
Referenced by TracksterInferenceByDNN().
|
private |
Definition at line 21 of file TracksterInferenceByDNN.h.
Referenced by TracksterInferenceByDNN().
|
private |
Definition at line 36 of file TracksterInferenceByDNN.h.
Referenced by inputData(), and runInference().
|
private |
Definition at line 34 of file TracksterInferenceByDNN.h.
Referenced by inputData(), and runInference().
|
private |
Definition at line 23 of file TracksterInferenceByDNN.h.
Referenced by runInference().
|
private |
Definition at line 19 of file TracksterInferenceByDNN.h.
Referenced by runInference(), and TracksterInferenceByDNN().
|
private |
Definition at line 18 of file TracksterInferenceByDNN.h.
Referenced by runInference(), and TracksterInferenceByDNN().
|
private |
Definition at line 24 of file TracksterInferenceByDNN.h.
Referenced by runInference().
|
private |
Definition at line 25 of file TracksterInferenceByDNN.h.
Referenced by runInference().
|
private |
Definition at line 33 of file TracksterInferenceByDNN.h.
Referenced by inputData().
|
private |
Definition at line 35 of file TracksterInferenceByDNN.h.
Referenced by inputData(), and runInference().