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 52 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");
41  sElectronMVAEstimator = std::make_unique<SoftElectronMVAEstimator>(sconfig);
42  // isolated electron MVA
44  iconfig.vweightsfiles = conf.getParameter<std::vector<std::string>>("ElecMVAFilesString");
45  iElectronMVAEstimator = std::make_unique<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 56 of file GsfElectronAlgo.h.

◆ sElectronMVAEstimator

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

Definition at line 55 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:56
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:55
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