CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
pat::PATMuonHeavyObjectCache Class Reference

Public Member Functions

pat::MuonMvaEstimator const & muonLowPtMvaEstimator () const
 
pat::MuonMvaEstimator const & muonMvaEstimator () const
 
 PATMuonHeavyObjectCache (const edm::ParameterSet &)
 
pat::SoftMuonMvaEstimator const & softMuonMvaEstimator () const
 

Private Attributes

std::unique_ptr< const pat::MuonMvaEstimatormuonLowPtMvaEstimator_
 
std::unique_ptr< const pat::MuonMvaEstimatormuonMvaEstimator_
 
std::unique_ptr< const pat::SoftMuonMvaEstimatorsoftMuonMvaEstimator_
 

Detailed Description

Definition at line 56 of file PATMuonProducer.cc.

Constructor & Destructor Documentation

◆ PATMuonHeavyObjectCache()

PATMuonHeavyObjectCache::PATMuonHeavyObjectCache ( const edm::ParameterSet iConfig)

Definition at line 324 of file PATMuonProducer.cc.

324  {
325  if (iConfig.getParameter<bool>("computeMuonMVA")) {
326  edm::FileInPath mvaTrainingFile = iConfig.getParameter<edm::FileInPath>("mvaTrainingFile");
327  edm::FileInPath mvaLowPtTrainingFile = iConfig.getParameter<edm::FileInPath>("lowPtmvaTrainingFile");
328  float mvaDrMax = iConfig.getParameter<double>("mvaDrMax");
329  muonMvaEstimator_ = std::make_unique<MuonMvaEstimator>(mvaTrainingFile, mvaDrMax);
330  muonLowPtMvaEstimator_ = std::make_unique<MuonMvaEstimator>(mvaLowPtTrainingFile, mvaDrMax);
331  }
332 
333  if (iConfig.getParameter<bool>("computeSoftMuonMVA")) {
334  edm::FileInPath softMvaTrainingFile = iConfig.getParameter<edm::FileInPath>("softMvaTrainingFile");
335  softMuonMvaEstimator_ = std::make_unique<SoftMuonMvaEstimator>(softMvaTrainingFile);
336  }
337 }

References edm::ParameterSet::getParameter(), muonProducer_cfi::mvaDrMax, muonProducer_cfi::mvaTrainingFile, and muonProducer_cfi::softMvaTrainingFile.

Member Function Documentation

◆ muonLowPtMvaEstimator()

pat::MuonMvaEstimator const& pat::PATMuonHeavyObjectCache::muonLowPtMvaEstimator ( ) const
inline

Definition at line 61 of file PATMuonProducer.cc.

61 { return *muonLowPtMvaEstimator_; }

References muonLowPtMvaEstimator_.

◆ muonMvaEstimator()

pat::MuonMvaEstimator const& pat::PATMuonHeavyObjectCache::muonMvaEstimator ( ) const
inline

Definition at line 60 of file PATMuonProducer.cc.

60 { return *muonMvaEstimator_; }

References muonMvaEstimator_.

◆ softMuonMvaEstimator()

pat::SoftMuonMvaEstimator const& pat::PATMuonHeavyObjectCache::softMuonMvaEstimator ( ) const
inline

Definition at line 63 of file PATMuonProducer.cc.

63 { return *softMuonMvaEstimator_; }

References softMuonMvaEstimator_.

Member Data Documentation

◆ muonLowPtMvaEstimator_

std::unique_ptr<const pat::MuonMvaEstimator> pat::PATMuonHeavyObjectCache::muonLowPtMvaEstimator_
private

Definition at line 66 of file PATMuonProducer.cc.

Referenced by muonLowPtMvaEstimator().

◆ muonMvaEstimator_

std::unique_ptr<const pat::MuonMvaEstimator> pat::PATMuonHeavyObjectCache::muonMvaEstimator_
private

Definition at line 67 of file PATMuonProducer.cc.

Referenced by muonMvaEstimator().

◆ softMuonMvaEstimator_

std::unique_ptr<const pat::SoftMuonMvaEstimator> pat::PATMuonHeavyObjectCache::softMuonMvaEstimator_
private

Definition at line 68 of file PATMuonProducer.cc.

Referenced by softMuonMvaEstimator().

muonProducer_cfi.mvaTrainingFile
mvaTrainingFile
Definition: muonProducer_cfi.py:113
muonProducer_cfi.mvaDrMax
mvaDrMax
Definition: muonProducer_cfi.py:117
muonProducer_cfi.softMvaTrainingFile
softMvaTrainingFile
Definition: muonProducer_cfi.py:124
edm::FileInPath
Definition: FileInPath.h:61
pat::PATMuonHeavyObjectCache::softMuonMvaEstimator_
std::unique_ptr< const pat::SoftMuonMvaEstimator > softMuonMvaEstimator_
Definition: PATMuonProducer.cc:68
pat::PATMuonHeavyObjectCache::muonMvaEstimator_
std::unique_ptr< const pat::MuonMvaEstimator > muonMvaEstimator_
Definition: PATMuonProducer.cc:67
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
pat::PATMuonHeavyObjectCache::muonLowPtMvaEstimator_
std::unique_ptr< const pat::MuonMvaEstimator > muonLowPtMvaEstimator_
Definition: PATMuonProducer.cc:66