CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
GsfElectronAlgo::HeavyObjectCache Class Reference

#include <GsfElectronAlgo.h>

Public Member Functions

 HeavyObjectCache (const edm::ParameterSet &)
 

Public Attributes

std::unique_ptr< const ElectronMVAEstimatoriElectronMVAEstimator
 
std::unique_ptr< const SoftElectronMVAEstimatorsElectronMVAEstimator
 

Detailed Description

Definition at line 54 of file GsfElectronAlgo.h.

Constructor & Destructor Documentation

◆ HeavyObjectCache()

GsfElectronAlgo::HeavyObjectCache::HeavyObjectCache ( const edm::ParameterSet conf)

Definition at line 39 of file GsfElectronAlgo.cc.

39  {
40  // soft electron MVA
42  sconfig.vweightsfiles = conf.getParameter<std::vector<std::string>>("SoftElecMVAFilesString");
43  sElectronMVAEstimator = std::make_unique<SoftElectronMVAEstimator>(sconfig);
44  // isolated electron MVA
46  iconfig.vweightsfiles = conf.getParameter<std::vector<std::string>>("ElecMVAFilesString");
47  iElectronMVAEstimator = std::make_unique<ElectronMVAEstimator>(iconfig);
48 }

References edm::ParameterSet::getParameter(), ElectronMVAEstimator::Configuration::vweightsfiles, and SoftElectronMVAEstimator::Configuration::vweightsfiles.

Member Data Documentation

◆ iElectronMVAEstimator

std::unique_ptr<const ElectronMVAEstimator> GsfElectronAlgo::HeavyObjectCache::iElectronMVAEstimator

Definition at line 58 of file GsfElectronAlgo.h.

◆ sElectronMVAEstimator

std::unique_ptr<const SoftElectronMVAEstimator> GsfElectronAlgo::HeavyObjectCache::sElectronMVAEstimator

Definition at line 57 of file GsfElectronAlgo.h.

Referenced by GsfElectronAlgo::createElectron().

SoftElectronMVAEstimator::Configuration
Definition: SoftElectronMVAEstimator.h:16
GsfElectronAlgo::HeavyObjectCache::iElectronMVAEstimator
std::unique_ptr< const ElectronMVAEstimator > iElectronMVAEstimator
Definition: GsfElectronAlgo.h:58
SoftElectronMVAEstimator::Configuration::vweightsfiles
std::vector< std::string > vweightsfiles
Definition: SoftElectronMVAEstimator.h:17
ElectronMVAEstimator::Configuration
Definition: ElectronMVAEstimator.h:12
GsfElectronAlgo::HeavyObjectCache::sElectronMVAEstimator
std::unique_ptr< const SoftElectronMVAEstimator > sElectronMVAEstimator
Definition: GsfElectronAlgo.h:57
ElectronMVAEstimator::Configuration::vweightsfiles
std::vector< std::string > vweightsfiles
Definition: ElectronMVAEstimator.h:13
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303