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 51 of file GsfElectronAlgo.h.

Constructor & Destructor Documentation

◆ HeavyObjectCache()

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

Definition at line 37 of file GsfElectronAlgo.cc.

37  {
38  // soft electron MVA
40  sconfig.vweightsfiles = conf.getParameter<std::vector<std::string>>("SoftElecMVAFilesString");
42  // isolated electron MVA
44  iconfig.vweightsfiles = conf.getParameter<std::vector<std::string>>("ElecMVAFilesString");
45  iElectronMVAEstimator.reset(new ElectronMVAEstimator(iconfig));
46 }

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 55 of file GsfElectronAlgo.h.

◆ sElectronMVAEstimator

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

Definition at line 54 of file GsfElectronAlgo.h.

Referenced by GsfElectronAlgo::createElectron().

SoftElectronMVAEstimator
Definition: SoftElectronMVAEstimator.h:12
ElectronMVAEstimator
Definition: ElectronMVAEstimator.h:10
SoftElectronMVAEstimator::Configuration
Definition: SoftElectronMVAEstimator.h:16
GsfElectronAlgo::HeavyObjectCache::iElectronMVAEstimator
std::unique_ptr< const ElectronMVAEstimator > iElectronMVAEstimator
Definition: GsfElectronAlgo.h:55
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:54
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
ElectronMVAEstimator::Configuration::vweightsfiles
std::vector< std::string > vweightsfiles
Definition: ElectronMVAEstimator.h:13