#include <DeepSCGraphEvaluation.h>
Public Member Functions | |
DeepSCGraphEvaluation (const DeepSCConfiguration &) | |
std::vector< std::vector< float > > | evaluate (const DeepSCInputs::Inputs &inputs) const |
std::vector< float > | getScaledInputs (const DeepSCInputs::FeaturesMap &variables, const DeepSCInputs::InputConfigs &config) const |
~DeepSCGraphEvaluation () | |
Public Attributes | |
DeepSCInputs::InputConfigs | inputFeaturesClusters |
DeepSCInputs::InputConfigs | inputFeaturesHits |
DeepSCInputs::InputConfigs | inputFeaturesWindows |
Static Public Attributes | |
static const std::vector< std::string > | availableClusterInputs |
static const std::vector< std::string > | availableHitsInputs = {"ieta", "iphi", "iz", "en_withfrac"} |
static const std::vector< std::string > | availableWindowInputs |
Private Member Functions | |
void | initTensorFlowGraphAndSession () |
DeepSCInputs::InputConfigs | readInputFeaturesConfig (std::string file, const std::vector< std::string > &availableInputs) const |
Private Attributes | |
const DeepSCConfiguration | cfg_ |
std::unique_ptr< tensorflow::GraphDef > | graphDef_ |
tensorflow::Session * | session_ |
Definition at line 63 of file DeepSCGraphEvaluation.h.
DeepSCGraphEvaluation::DeepSCGraphEvaluation | ( | const DeepSCConfiguration & | cfg | ) |
Definition at line 30 of file DeepSCGraphEvaluation.cc.
References availableClusterInputs, availableHitsInputs, availableWindowInputs, cfg_, reco::DeepSCConfiguration::configFileClusterFeatures, reco::DeepSCConfiguration::configFileHitsFeatures, reco::DeepSCConfiguration::configFileWindowFeatures, Exception, initTensorFlowGraphAndSession(), inputFeaturesClusters, inputFeaturesHits, inputFeaturesWindows, reco::DeepSCConfiguration::nClusterFeatures, reco::DeepSCConfiguration::nHitsFeatures, reco::DeepSCConfiguration::nWindowFeatures, readInputFeaturesConfig(), and tensorflow::setLogging().
DeepSCGraphEvaluation::~DeepSCGraphEvaluation | ( | ) |
Definition at line 54 of file DeepSCGraphEvaluation.cc.
References tensorflow::closeSession(), and session_.
std::vector< std::vector< float > > DeepSCGraphEvaluation::evaluate | ( | const DeepSCInputs::Inputs & | inputs | ) | const |
Definition at line 120 of file DeepSCGraphEvaluation.cc.
References b, reco::DeepSCConfiguration::batchSize, cfg_, JetChargeProducer_cfi::exp, dqmMemoryStats::float, PixelMapPlotter::inputs, dqmiolumiharvest::j, dqmdumpme::k, LogDebug, reco::DeepSCConfiguration::maxNClusters, reco::DeepSCConfiguration::maxNRechits, reco::DeepSCConfiguration::nClusterFeatures, reco::DeepSCConfiguration::nHitsFeatures, reco::DeepSCConfiguration::nWindowFeatures, convertSQLiteXML::ok, tensorflow::run(), session_, and parallelization::uint.
std::vector< float > DeepSCGraphEvaluation::getScaledInputs | ( | const DeepSCInputs::FeaturesMap & | variables, |
const DeepSCInputs::InputConfigs & | config | ||
) | const |
Definition at line 100 of file DeepSCGraphEvaluation.cc.
References PixelMapPlotter::inputs, reco::DeepSCInputs::MeanRms, reco::DeepSCInputs::MinMax, None, pfMETCorrectionType0_cfi::par1, pfMETCorrectionType0_cfi::par2, and L1TEGammaDiff_cfi::variables.
|
private |
Definition at line 59 of file DeepSCGraphEvaluation.cc.
References cfg_, tensorflow::createSession(), edm::FileInPath::fullPath(), graphDef_, tensorflow::loadGraphDef(), LogDebug, reco::DeepSCConfiguration::modelFile, and session_.
Referenced by DeepSCGraphEvaluation().
|
private |
Definition at line 69 of file DeepSCGraphEvaluation.cc.
References Exception, lowptgsfeleseed::features(), geometryDiff::file, spr::find(), edm::FileInPath::fullPath(), LogDebug, reco::DeepSCInputs::MeanRms, reco::DeepSCInputs::MinMax, None, pfMETCorrectionType0_cfi::par1, pfMETCorrectionType0_cfi::par2, AlCaHLTBitMon_QueryRunRegistry::string, and reco::DeepSCInputs::InputConfig::varName.
Referenced by DeepSCGraphEvaluation().
|
static |
Definition at line 76 of file DeepSCGraphEvaluation.h.
Referenced by DeepSCGraphEvaluation().
|
static |
Definition at line 78 of file DeepSCGraphEvaluation.h.
Referenced by DeepSCGraphEvaluation().
|
static |
Definition at line 77 of file DeepSCGraphEvaluation.h.
Referenced by DeepSCGraphEvaluation().
|
private |
Definition at line 91 of file DeepSCGraphEvaluation.h.
Referenced by DeepSCGraphEvaluation(), evaluate(), and initTensorFlowGraphAndSession().
|
private |
Definition at line 92 of file DeepSCGraphEvaluation.h.
Referenced by initTensorFlowGraphAndSession().
DeepSCInputs::InputConfigs reco::DeepSCGraphEvaluation::inputFeaturesClusters |
Definition at line 82 of file DeepSCGraphEvaluation.h.
Referenced by DeepSCGraphEvaluation().
DeepSCInputs::InputConfigs reco::DeepSCGraphEvaluation::inputFeaturesHits |
Definition at line 84 of file DeepSCGraphEvaluation.h.
Referenced by DeepSCGraphEvaluation().
DeepSCInputs::InputConfigs reco::DeepSCGraphEvaluation::inputFeaturesWindows |
Definition at line 83 of file DeepSCGraphEvaluation.h.
Referenced by DeepSCGraphEvaluation().
|
private |
Definition at line 93 of file DeepSCGraphEvaluation.h.
Referenced by evaluate(), initTensorFlowGraphAndSession(), and ~DeepSCGraphEvaluation().