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)
 
 AnyMVAEstimatorRun2Base (const ::std::string &mvaName, const ::std::string &mvaTag, int nCategories, bool debug)
 
virtual int findCategory (const reco::Candidate *candidate) const =0
 
const std::string & getName () const
 
int getNCategories () const
 
const std::string & getTag () const
 
bool isDebug () const
 
virtual float mvaValue (const reco::Candidate *candidate, std::vector< float > const &auxVariables, int &iCategory) const =0
 
float mvaValue (const reco::Candidate *candidate, std::vector< float > const &auxVariables) const
 
virtual ~AnyMVAEstimatorRun2Base ()
 

Private Attributes

const bool debug_
 
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 14 of file AnyMVAEstimatorRun2Base.h.

15  : tag_(conf.getParameter<std::string>("mvaTag")),
16  nCategories_(conf.getParameter<int>("nCategories")),
17  debug_(conf.getUntrackedParameter<bool>("debug", false)) {}
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
AnyMVAEstimatorRun2Base::AnyMVAEstimatorRun2Base ( const ::std::string &  mvaName,
const ::std::string &  mvaTag,
int  nCategories,
bool  debug 
)
inline
virtual AnyMVAEstimatorRun2Base::~AnyMVAEstimatorRun2Base ( )
inlinevirtual

Definition at line 21 of file AnyMVAEstimatorRun2Base.h.

References mvaValue().

21 {};

Member Function Documentation

virtual int AnyMVAEstimatorRun2Base::findCategory ( const reco::Candidate candidate) const
pure virtual

Implemented in ElectronMVAEstimatorRun2, and PhotonMVAEstimator.

Referenced by mvaValue().

const std::string& AnyMVAEstimatorRun2Base::getName ( void  ) const
inline

Definition at line 40 of file AnyMVAEstimatorRun2Base.h.

References name_.

Referenced by plotting.Plot::draw(), and ElectronMVAEstimatorRun2::ElectronMVAEstimatorRun2().

40 { return name_; }
int AnyMVAEstimatorRun2Base::getNCategories ( ) const
inline
const std::string& AnyMVAEstimatorRun2Base::getTag ( ) const
inline
bool AnyMVAEstimatorRun2Base::isDebug ( ) const
inline

Definition at line 46 of file AnyMVAEstimatorRun2Base.h.

References debug_.

Referenced by ElectronMVAEstimatorRun2::init(), and PhotonMVAEstimator::mvaValue().

46 { return debug_; }
virtual float AnyMVAEstimatorRun2Base::mvaValue ( const reco::Candidate candidate,
std::vector< float > const &  auxVariables,
int &  iCategory 
) const
pure virtual
float AnyMVAEstimatorRun2Base::mvaValue ( const reco::Candidate candidate,
std::vector< float > const &  auxVariables 
) const
inline

Definition at line 30 of file AnyMVAEstimatorRun2Base.h.

References findCategory(), and mvaValue().

30  {
31  int iCategory;
32  return mvaValue(candidate, auxVariables, iCategory);
33  };
virtual float mvaValue(const reco::Candidate *candidate, std::vector< float > const &auxVariables, int &iCategory) const =0

Member Data Documentation

const bool AnyMVAEstimatorRun2Base::debug_
private

Definition at line 68 of file AnyMVAEstimatorRun2Base.h.

Referenced by isDebug().

const std::string AnyMVAEstimatorRun2Base::name_
private

Definition at line 58 of file AnyMVAEstimatorRun2Base.h.

Referenced by getName().

const int AnyMVAEstimatorRun2Base::nCategories_
private

Definition at line 66 of file AnyMVAEstimatorRun2Base.h.

Referenced by getNCategories().

const std::string AnyMVAEstimatorRun2Base::tag_
private

Definition at line 63 of file AnyMVAEstimatorRun2Base.h.

Referenced by getTag().