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 43 of file PATMuonProducer.h.

Constructor & Destructor Documentation

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

Definition at line 61 of file PATMuonProducer.cc.

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

61  {
62 
63  if (iConfig.getParameter<bool>("computeMuonMVA")) {
64  edm::FileInPath mvaTrainingFile = iConfig.getParameter<edm::FileInPath>("mvaTrainingFile");
65  edm::FileInPath mvaLowPtTrainingFile = iConfig.getParameter<edm::FileInPath>("lowPtmvaTrainingFile");
66  float mvaDrMax = iConfig.getParameter<double>("mvaDrMax");
67  muonMvaEstimator_ = std::make_unique<MuonMvaEstimator>(mvaTrainingFile, mvaDrMax);
68  muonLowPtMvaEstimator_ = std::make_unique<MuonMvaEstimator>(mvaLowPtTrainingFile, mvaDrMax);
69  }
70 
71  if (iConfig.getParameter<bool>("computeSoftMuonMVA")) {
72  edm::FileInPath softMvaTrainingFile = iConfig.getParameter<edm::FileInPath>("softMvaTrainingFile");
73  softMuonMvaEstimator_ = std::make_unique<SoftMuonMvaEstimator>(softMvaTrainingFile);
74  }
75 }
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 51 of file PATMuonProducer.h.

References muonLowPtMvaEstimator_.

51  {
53  }
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  {
49  return muonMvaEstimator_;
50  }
std::unique_ptr< const pat::MuonMvaEstimator > muonMvaEstimator_
std::unique_ptr<const pat::SoftMuonMvaEstimator> const& pat::PATMuonHeavyObjectCache::softMuonMvaEstimator ( ) const
inline

Definition at line 55 of file PATMuonProducer.h.

References softMuonMvaEstimator_.

55  {
56  return softMuonMvaEstimator_;
57  }
std::unique_ptr< const pat::SoftMuonMvaEstimator > softMuonMvaEstimator_

Member Data Documentation

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

Definition at line 60 of file PATMuonProducer.h.

Referenced by muonLowPtMvaEstimator().

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

Definition at line 61 of file PATMuonProducer.h.

Referenced by muonMvaEstimator().

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

Definition at line 62 of file PATMuonProducer.h.

Referenced by softMuonMvaEstimator().