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
 
pat::MuonMvaIDEstimator const & muonMvaIDEstimator () 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::MuonMvaIDEstimatormuonMvaIDEstimator_
 
std::unique_ptr< const pat::SoftMuonMvaEstimatorsoftMuonMvaEstimator_
 

Detailed Description

Definition at line 57 of file PATMuonProducer.cc.

Constructor & Destructor Documentation

◆ PATMuonHeavyObjectCache()

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

Definition at line 327 of file PATMuonProducer.cc.

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

327  {
328  if (iConfig.getParameter<bool>("computeMuonMVA")) {
329  edm::FileInPath mvaTrainingFile = iConfig.getParameter<edm::FileInPath>("mvaTrainingFile");
330  edm::FileInPath mvaLowPtTrainingFile = iConfig.getParameter<edm::FileInPath>("lowPtmvaTrainingFile");
331  float mvaDrMax = iConfig.getParameter<double>("mvaDrMax");
332  muonMvaEstimator_ = std::make_unique<MuonMvaEstimator>(mvaTrainingFile, mvaDrMax);
333  muonLowPtMvaEstimator_ = std::make_unique<MuonMvaEstimator>(mvaLowPtTrainingFile, mvaDrMax);
334  }
335 
336  if (iConfig.getParameter<bool>("computeMuonIDMVA")) {
337  edm::FileInPath mvaIDTrainingFile = iConfig.getParameter<edm::FileInPath>("mvaIDTrainingFile");
338  muonMvaIDEstimator_ = std::make_unique<MuonMvaIDEstimator>(mvaIDTrainingFile);
339  }
340 
341  if (iConfig.getParameter<bool>("computeSoftMuonMVA")) {
342  edm::FileInPath softMvaTrainingFile = iConfig.getParameter<edm::FileInPath>("softMvaTrainingFile");
343  softMuonMvaEstimator_ = std::make_unique<SoftMuonMvaEstimator>(softMvaTrainingFile);
344  }
345 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::unique_ptr< const pat::MuonMvaEstimator > muonLowPtMvaEstimator_
std::unique_ptr< const pat::MuonMvaEstimator > muonMvaEstimator_
std::unique_ptr< const pat::MuonMvaIDEstimator > muonMvaIDEstimator_
std::unique_ptr< const pat::SoftMuonMvaEstimator > softMuonMvaEstimator_

Member Function Documentation

◆ muonLowPtMvaEstimator()

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

Definition at line 62 of file PATMuonProducer.cc.

References muonLowPtMvaEstimator_.

62 { return *muonLowPtMvaEstimator_; }
std::unique_ptr< const pat::MuonMvaEstimator > muonLowPtMvaEstimator_

◆ muonMvaEstimator()

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

Definition at line 61 of file PATMuonProducer.cc.

References muonMvaEstimator_.

61 { return *muonMvaEstimator_; }
std::unique_ptr< const pat::MuonMvaEstimator > muonMvaEstimator_

◆ muonMvaIDEstimator()

pat::MuonMvaIDEstimator const& pat::PATMuonHeavyObjectCache::muonMvaIDEstimator ( ) const
inline

Definition at line 63 of file PATMuonProducer.cc.

References muonMvaIDEstimator_.

63 { return *muonMvaIDEstimator_; }
std::unique_ptr< const pat::MuonMvaIDEstimator > muonMvaIDEstimator_

◆ softMuonMvaEstimator()

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

Definition at line 64 of file PATMuonProducer.cc.

References softMuonMvaEstimator_.

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

Member Data Documentation

◆ muonLowPtMvaEstimator_

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

Definition at line 67 of file PATMuonProducer.cc.

Referenced by muonLowPtMvaEstimator().

◆ muonMvaEstimator_

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

Definition at line 68 of file PATMuonProducer.cc.

Referenced by muonMvaEstimator().

◆ muonMvaIDEstimator_

std::unique_ptr<const pat::MuonMvaIDEstimator> pat::PATMuonHeavyObjectCache::muonMvaIDEstimator_
private

Definition at line 69 of file PATMuonProducer.cc.

Referenced by muonMvaIDEstimator().

◆ softMuonMvaEstimator_

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

Definition at line 70 of file PATMuonProducer.cc.

Referenced by softMuonMvaEstimator().