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 ( const edm::ParameterSet iConfig)

Definition at line 60 of file PATMuonProducer.cc.

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

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 }
T getParameter(std::string const &) const
std::unique_ptr< const pat::MuonMvaEstimator > muonLowPtMvaEstimator_
std::unique_ptr< const pat::MuonMvaEstimator > muonMvaEstimator_
std::unique_ptr< const pat::SoftMuonMvaEstimator > softMuonMvaEstimator_

Member Function Documentation

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

Definition at line 49 of file PATMuonProducer.h.

References muonLowPtMvaEstimator_.

49 { return muonLowPtMvaEstimator_; }
std::unique_ptr< const pat::MuonMvaEstimator > muonLowPtMvaEstimator_
std::unique_ptr<const pat::MuonMvaEstimator> const& pat::PATMuonHeavyObjectCache::muonMvaEstimator ( ) const
inline

Definition at line 48 of file PATMuonProducer.h.

References muonMvaEstimator_.

48 { return muonMvaEstimator_; }
std::unique_ptr< const pat::MuonMvaEstimator > muonMvaEstimator_
std::unique_ptr<const pat::SoftMuonMvaEstimator> const& pat::PATMuonHeavyObjectCache::softMuonMvaEstimator ( ) const
inline

Definition at line 51 of file PATMuonProducer.h.

References softMuonMvaEstimator_.

51  {
52  return softMuonMvaEstimator_;
53  }
std::unique_ptr< const pat::SoftMuonMvaEstimator > softMuonMvaEstimator_

Member Data Documentation

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

Definition at line 56 of file PATMuonProducer.h.

Referenced by muonLowPtMvaEstimator().

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

Definition at line 57 of file PATMuonProducer.h.

Referenced by muonMvaEstimator().

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

Definition at line 58 of file PATMuonProducer.h.

Referenced by softMuonMvaEstimator().