CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::MuonMvaEstimator
muonLowPtMvaEstimator_
 
std::unique_ptr< const
pat::MuonMvaEstimator
muonMvaEstimator_
 
std::unique_ptr< const
pat::SoftMuonMvaEstimator
softMuonMvaEstimator_
 

Detailed Description

Definition at line 56 of file PATMuonProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 324 of file PATMuonProducer.cc.

References edm::ParameterSet::getParameter().

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

Member Function Documentation

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

Definition at line 61 of file PATMuonProducer.cc.

References muonLowPtMvaEstimator_.

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

Definition at line 60 of file PATMuonProducer.cc.

References muonMvaEstimator_.

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

Definition at line 63 of file PATMuonProducer.cc.

References softMuonMvaEstimator_.

63 { return *softMuonMvaEstimator_; }
std::unique_ptr< const pat::SoftMuonMvaEstimator > softMuonMvaEstimator_

Member Data Documentation

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

Definition at line 66 of file PATMuonProducer.cc.

Referenced by muonLowPtMvaEstimator().

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

Definition at line 67 of file PATMuonProducer.cc.

Referenced by muonMvaEstimator().

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

Definition at line 68 of file PATMuonProducer.cc.

Referenced by softMuonMvaEstimator().