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 20 of file AnyMVAEstimatorRun2Base.h.

Constructor & Destructor Documentation

◆ AnyMVAEstimatorRun2Base() [1/2]

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

Definition at line 5 of file AnyMVAEstimatorRun2Base.cc.

6  : tag_(conf.getParameter<std::string>("mvaTag")),
7  nCategories_(conf.getParameter<int>("nCategories")),
8  debug_(conf.getUntrackedParameter<bool>("debug", false)) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
T getUntrackedParameter(std::string const &, T const &) const

◆ AnyMVAEstimatorRun2Base() [2/2]

AnyMVAEstimatorRun2Base::AnyMVAEstimatorRun2Base ( const ::std::string &  mvaName,
const ::std::string &  mvaTag,
int  nCategories,
bool  debug 
)
inline

◆ ~AnyMVAEstimatorRun2Base()

virtual AnyMVAEstimatorRun2Base::~AnyMVAEstimatorRun2Base ( )
inlinevirtual

Definition at line 27 of file AnyMVAEstimatorRun2Base.h.

27 {}

Member Function Documentation

◆ findCategory()

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

◆ getName()

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

Definition at line 46 of file AnyMVAEstimatorRun2Base.h.

References name_.

Referenced by plotting.Plot::draw().

46 { return name_; }

◆ getNCategories()

int AnyMVAEstimatorRun2Base::getNCategories ( ) const
inline

◆ getTag()

const std::string& AnyMVAEstimatorRun2Base::getTag ( ) const
inline

◆ isDebug()

bool AnyMVAEstimatorRun2Base::isDebug ( ) const
inline

◆ mvaValue() [1/2]

virtual float AnyMVAEstimatorRun2Base::mvaValue ( const reco::Candidate candidate,
std::vector< float > const &  auxVariables,
int &  iCategory 
) const
pure virtual

Implemented in ElectronMVAEstimatorRun2, and PhotonMVAEstimator.

Referenced by mvaValue().

◆ mvaValue() [2/2]

float AnyMVAEstimatorRun2Base::mvaValue ( const reco::Candidate candidate,
std::vector< float > const &  auxVariables 
) const
inline

Definition at line 36 of file AnyMVAEstimatorRun2Base.h.

References mvaValue().

36  {
37  int iCategory;
38  return mvaValue(candidate, auxVariables, iCategory);
39  };
virtual float mvaValue(const reco::Candidate *candidate, std::vector< float > const &auxVariables, int &iCategory) const =0

Member Data Documentation

◆ debug_

const bool AnyMVAEstimatorRun2Base::debug_
private

Definition at line 74 of file AnyMVAEstimatorRun2Base.h.

Referenced by isDebug().

◆ name_

const std::string AnyMVAEstimatorRun2Base::name_
private

Definition at line 64 of file AnyMVAEstimatorRun2Base.h.

Referenced by getName().

◆ nCategories_

const int AnyMVAEstimatorRun2Base::nCategories_
private

Definition at line 72 of file AnyMVAEstimatorRun2Base.h.

Referenced by getNCategories().

◆ tag_

const std::string AnyMVAEstimatorRun2Base::tag_
private

Definition at line 69 of file AnyMVAEstimatorRun2Base.h.

Referenced by getTag().