#include <PhysicsTools/PatAlgos/plugins/BaseMVAValueMapProducer.cc>
Public Member Functions | |
BaseMVAValueMapProducer (const edm::ParameterSet &iConfig) | |
void | setValue (const std::string var, float val) |
~BaseMVAValueMapProducer () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () const final |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
static edm::ParameterSetDescription | getDescription () |
Private Member Functions | |
void | beginStream (edm::StreamID) override |
void | endStream () override |
virtual void | fillAdditionalVariables (const T &) |
void | produce (edm::Event &, const edm::EventSetup &) override |
virtual void | readAdditionalCollections (edm::Event &, const edm::EventSetup &) |
to be implemented in derived classes, filling values for additional variables More... | |
Private Attributes | |
std::string | backend_ |
std::vector< std::pair< std::string, StringObjectFunction< T, true > > > | funcs_ |
tensorflow::GraphDef * | graph_ |
std::string | inputTensorName_ |
bool | isClassifier_ |
std::string | name_ |
std::vector< StringObjectFunction< std::vector< float > > > | output_formulas_ |
std::vector< std::string > | output_names_ |
std::string | outputTensorName_ |
std::map< std::string, size_t > | positions_ |
TMVA::Reader * | reader_ |
tensorflow::Session * | session_ |
edm::EDGetTokenT< edm::View< T > > | src_ |
bool | tf_ |
bool | tmva_ |
std::vector< float > | values_ |
std::vector< std::string > | variablesOrder_ |
std::string | weightfilename_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 59 of file BaseMVAValueMapProducer.h.
|
inlineexplicit |
Definition at line 61 of file BaseMVAValueMapProducer.h.
|
inlineoverride |
Definition at line 111 of file BaseMVAValueMapProducer.h.
|
inlineoverrideprivate |
Definition at line 122 of file BaseMVAValueMapProducer.h.
|
inlineoverrideprivate |
Definition at line 124 of file BaseMVAValueMapProducer.h.
|
inlineprivatevirtual |
Reimplemented in BJetEnergyRegressionMVA.
Definition at line 128 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< T >::produce().
|
static |
Definition at line 229 of file BaseMVAValueMapProducer.h.
References edm::ConfigurationDescriptions::add(), BaseMVAValueMapProducer< T >::getDescription(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by BaseMVAValueMapProducer< pat::Jet >::setValue().
|
static |
Definition at line 205 of file BaseMVAValueMapProducer.h.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::setAllowAnything(), edm::ParameterDescriptionNode::setComment(), AlCaHLTBitMon_QueryRunRegistry::string, and objects.autophobj::variables.
Referenced by BJetEnergyRegressionMVA::fillDescriptions(), BaseMVAValueMapProducer< T >::fillDescriptions(), and BaseMVAValueMapProducer< pat::Jet >::setValue().
|
overrideprivate |
Definition at line 155 of file BaseMVAValueMapProducer.h.
References pat::helper::ParametrizationHelper::dimension(), edm::helper::Filler< Map >::fill(), BaseMVAValueMapProducer< T >::fillAdditionalVariables(), objects.autophobj::filler, BaseMVAValueMapProducer< T >::funcs_, edm::Event::getByToken(), BaseMVAValueMapProducer< T >::inputTensorName_, edm::helper::Filler< Map >::insert(), createfilelist::int, BaseMVAValueMapProducer< T >::isClassifier_, gen::k, funct::m, eostools::move(), BaseMVAValueMapProducer< T >::name_, names, connectstrParser::o, BaseMVAValueMapProducer< T >::output_formulas_, BaseMVAValueMapProducer< T >::output_names_, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, BaseMVAValueMapProducer< T >::outputTensorName_, AlCaHLTBitMon_ParallelJobs::p, BaseMVAValueMapProducer< T >::positions_, edm::Event::put(), BaseMVAValueMapProducer< T >::readAdditionalCollections(), BaseMVAValueMapProducer< T >::reader_, tensorflow::run(), BaseMVAValueMapProducer< T >::session_, BaseMVAValueMapProducer< T >::setValue(), TrackRefitter_38T_cff::src, BaseMVAValueMapProducer< T >::src_, BaseMVAValueMapProducer< T >::tf_, BaseMVAValueMapProducer< T >::tmva_, findQualityFiles::v, and BaseMVAValueMapProducer< T >::values_.
Referenced by BaseMVAValueMapProducer< pat::Jet >::beginStream().
|
inlineprivatevirtual |
to be implemented in derived classes, filling values for additional variables
Reimplemented in BJetEnergyRegressionMVA.
Definition at line 127 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< T >::produce().
|
inline |
Definition at line 113 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 141 of file BaseMVAValueMapProducer.h.
|
private |
Definition at line 133 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), and BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 137 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer().
|
private |
Definition at line 146 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), and BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 143 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 140 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), and BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 149 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), and BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 148 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), and BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 147 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), and BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 132 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), BaseMVAValueMapProducer< T >::produce(), and BaseMVAValueMapProducer< pat::Jet >::setValue().
|
private |
Definition at line 136 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), and BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 138 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), and BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 131 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 145 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), and BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 144 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), and BaseMVAValueMapProducer< T >::produce().
|
private |
Definition at line 135 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), BaseMVAValueMapProducer< T >::produce(), and BaseMVAValueMapProducer< pat::Jet >::setValue().
|
private |
Definition at line 134 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer().
|
private |
Definition at line 142 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer().