CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
CacheData Class Reference

Public Member Functions

 CacheData (const edm::ParameterSet &conf)
 

Public Attributes

std::unique_ptr< const
PhotonDNNEstimator
photonDNNEstimator
 

Detailed Description

Definition at line 54 of file GEDPhotonProducer.cc.

Constructor & Destructor Documentation

CacheData::CacheData ( const edm::ParameterSet conf)
inline

Definition at line 56 of file GEDPhotonProducer.cc.

References submitPVResolutionJobs::config, edm::ParameterSet::getParameter(), egammaTools::DNNConfiguration::inputTensorName, egammaTools::DNNConfiguration::modelsFiles, egammaTools::DNNConfiguration::outputDim, egammaTools::DNNConfiguration::outputTensorName, photonDNNEstimator, egammaTools::DNNConfiguration::scalersFiles, AlCaHLTBitMon_QueryRunRegistry::string, and parallelization::uint().

56  {
57  // Here we will have to load the DNN PFID if present in the config
59  const auto& pset_dnn = conf.getParameter<edm::ParameterSet>("PhotonDNNPFid");
60  const auto dnnEnabled = pset_dnn.getParameter<bool>("enabled");
61  if (dnnEnabled) {
62  config.inputTensorName = pset_dnn.getParameter<std::string>("inputTensorName");
63  config.outputTensorName = pset_dnn.getParameter<std::string>("outputTensorName");
64  config.modelsFiles = pset_dnn.getParameter<std::vector<std::string>>("modelsFiles");
65  config.scalersFiles = pset_dnn.getParameter<std::vector<std::string>>("scalersFiles");
66  config.outputDim = pset_dnn.getParameter<uint>("outputDim");
67  const auto useEBModelInGap = pset_dnn.getParameter<bool>("useEBModelInGap");
68  photonDNNEstimator = std::make_unique<PhotonDNNEstimator>(config, useEBModelInGap);
69  }
70  }
std::vector< std::string > modelsFiles
std::unique_ptr< const PhotonDNNEstimator > photonDNNEstimator
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
tuple config
parse the configuration file
std::vector< std::string > scalersFiles

Member Data Documentation

std::unique_ptr<const PhotonDNNEstimator> CacheData::photonDNNEstimator

Definition at line 71 of file GEDPhotonProducer.cc.

Referenced by CacheData(), and GEDPhotonProducer::GEDPhotonProducer().