CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
AnyMVAEstimatorRun2Base Class Referenceabstract

#include <AnyMVAEstimatorRun2Base.h>

Inheritance diagram for AnyMVAEstimatorRun2Base:
ElectronMVAEstimatorRun2 PhotonMVAEstimator

Public Member Functions

 AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf)
 
virtual int findCategory (const edm::Ptr< reco::Candidate > &candPtr) const =0
 
const std::string & getName () const
 
int getNCategories () const
 
const std::string & getTag () const
 
bool isDebug () const
 
virtual float mvaValue (const edm::Ptr< reco::Candidate > &particle, const edm::EventBase &, int &iCategory) const =0
 
float mvaValue (const edm::Ptr< reco::Candidate > &candPtr, const edm::EventBase &iEvent) const
 
virtual void setConsumes (edm::ConsumesCollector &&cc)
 
virtual ~AnyMVAEstimatorRun2Base ()
 

Private Attributes

const edm::ParameterSet conf_
 
const bool debug_
 
const std::string methodName_
 
const std::string name_
 
const int nCategories_
 
const std::string tag_
 

Detailed Description

Definition at line 11 of file AnyMVAEstimatorRun2Base.h.

Constructor & Destructor Documentation

AnyMVAEstimatorRun2Base::AnyMVAEstimatorRun2Base ( const edm::ParameterSet conf)
inline

Definition at line 15 of file AnyMVAEstimatorRun2Base.h.

16  : conf_ (conf)
17  , name_ (conf.getParameter<std::string>("mvaName"))
18  , tag_ (conf.getParameter<std::string>("mvaTag"))
19  , nCategories_ (conf.getParameter<int>("nCategories"))
20  , methodName_ ("BDTG method")
21  , debug_ (conf.getUntrackedParameter<bool>("debug", false))
22  {}
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const edm::ParameterSet conf_
virtual AnyMVAEstimatorRun2Base::~AnyMVAEstimatorRun2Base ( )
inlinevirtual

Definition at line 23 of file AnyMVAEstimatorRun2Base.h.

References mvaValue().

23 {};

Member Function Documentation

virtual int AnyMVAEstimatorRun2Base::findCategory ( const edm::Ptr< reco::Candidate > &  candPtr) const
pure virtual

Implemented in ElectronMVAEstimatorRun2, and PhotonMVAEstimator.

Referenced by mvaValue().

const std::string& AnyMVAEstimatorRun2Base::getName ( void  ) const
inline
int AnyMVAEstimatorRun2Base::getNCategories ( ) const
inline
const std::string& AnyMVAEstimatorRun2Base::getTag ( ) const
inline
bool AnyMVAEstimatorRun2Base::isDebug ( ) const
inline
virtual float AnyMVAEstimatorRun2Base::mvaValue ( const edm::Ptr< reco::Candidate > &  particle,
const edm::EventBase ,
int &  iCategory 
) const
pure virtual
float AnyMVAEstimatorRun2Base::mvaValue ( const edm::Ptr< reco::Candidate > &  candPtr,
const edm::EventBase iEvent 
) const
inline

Definition at line 30 of file AnyMVAEstimatorRun2Base.h.

References findCategory(), and mvaValue().

30  {
31  int iCategory;
32  return mvaValue(candPtr, iEvent, iCategory);
33  };
virtual float mvaValue(const edm::Ptr< reco::Candidate > &particle, const edm::EventBase &, int &iCategory) const =0
virtual void AnyMVAEstimatorRun2Base::setConsumes ( edm::ConsumesCollector &&  cc)
inlinevirtual

Reimplemented in ElectronMVAEstimatorRun2, and PhotonMVAEstimator.

Definition at line 57 of file AnyMVAEstimatorRun2Base.h.

References conf_.

57 {};

Member Data Documentation

const edm::ParameterSet AnyMVAEstimatorRun2Base::conf_
private

Definition at line 57 of file AnyMVAEstimatorRun2Base.h.

Referenced by setConsumes().

const bool AnyMVAEstimatorRun2Base::debug_
private

Definition at line 83 of file AnyMVAEstimatorRun2Base.h.

Referenced by isDebug().

const std::string AnyMVAEstimatorRun2Base::methodName_
private

Definition at line 81 of file AnyMVAEstimatorRun2Base.h.

const std::string AnyMVAEstimatorRun2Base::name_
private

Definition at line 71 of file AnyMVAEstimatorRun2Base.h.

Referenced by getName().

const int AnyMVAEstimatorRun2Base::nCategories_
private

Definition at line 79 of file AnyMVAEstimatorRun2Base.h.

Referenced by getNCategories().

const std::string AnyMVAEstimatorRun2Base::tag_
private

Definition at line 76 of file AnyMVAEstimatorRun2Base.h.

Referenced by getTag().