CMS 3D CMS Logo

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

#include <PATMuonProducer.h>

Public Member Functions

std::unique_ptr< const pat::MuonMvaEstimator > const & muonLowPtMvaEstimator () const
 
std::unique_ptr< const pat::MuonMvaEstimator > const & muonMvaEstimator () const
 
 PATMuonHeavyObjectCache (const edm::ParameterSet &)
 
std::unique_ptr< const 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 44 of file PATMuonProducer.h.

Constructor & Destructor Documentation

◆ PATMuonHeavyObjectCache()

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

Definition at line 60 of file PATMuonProducer.cc.

60  {
61  if (iConfig.getParameter<bool>("computeMuonMVA")) {
62  edm::FileInPath mvaTrainingFile = iConfig.getParameter<edm::FileInPath>("mvaTrainingFile");
63  edm::FileInPath mvaLowPtTrainingFile = iConfig.getParameter<edm::FileInPath>("lowPtmvaTrainingFile");
64  float mvaDrMax = iConfig.getParameter<double>("mvaDrMax");
65  muonMvaEstimator_ = std::make_unique<MuonMvaEstimator>(mvaTrainingFile, mvaDrMax);
66  muonLowPtMvaEstimator_ = std::make_unique<MuonMvaEstimator>(mvaLowPtTrainingFile, mvaDrMax);
67  }
68 
69  if (iConfig.getParameter<bool>("computeSoftMuonMVA")) {
70  edm::FileInPath softMvaTrainingFile = iConfig.getParameter<edm::FileInPath>("softMvaTrainingFile");
71  softMuonMvaEstimator_ = std::make_unique<SoftMuonMvaEstimator>(softMvaTrainingFile);
72  }
73 }

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

Member Function Documentation

◆ muonLowPtMvaEstimator()

std::unique_ptr<const pat::MuonMvaEstimator> const& pat::PATMuonHeavyObjectCache::muonLowPtMvaEstimator ( ) const
inline

Definition at line 49 of file PATMuonProducer.h.

49 { return muonLowPtMvaEstimator_; }

References muonLowPtMvaEstimator_.

◆ muonMvaEstimator()

std::unique_ptr<const pat::MuonMvaEstimator> const& pat::PATMuonHeavyObjectCache::muonMvaEstimator ( ) const
inline

Definition at line 48 of file PATMuonProducer.h.

48 { return muonMvaEstimator_; }

References muonMvaEstimator_.

◆ softMuonMvaEstimator()

std::unique_ptr<const pat::SoftMuonMvaEstimator> const& pat::PATMuonHeavyObjectCache::softMuonMvaEstimator ( ) const
inline

Definition at line 51 of file PATMuonProducer.h.

51  {
52  return softMuonMvaEstimator_;
53  }

References softMuonMvaEstimator_.

Member Data Documentation

◆ muonLowPtMvaEstimator_

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

Definition at line 56 of file PATMuonProducer.h.

Referenced by muonLowPtMvaEstimator().

◆ muonMvaEstimator_

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

Definition at line 57 of file PATMuonProducer.h.

Referenced by muonMvaEstimator().

◆ softMuonMvaEstimator_

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

Definition at line 58 of file PATMuonProducer.h.

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:64
pat::PATMuonHeavyObjectCache::softMuonMvaEstimator_
std::unique_ptr< const pat::SoftMuonMvaEstimator > softMuonMvaEstimator_
Definition: PATMuonProducer.h:58
pat::PATMuonHeavyObjectCache::muonMvaEstimator_
std::unique_ptr< const pat::MuonMvaEstimator > muonMvaEstimator_
Definition: PATMuonProducer.h:57
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.h:56