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 ::std::string &mvaName, const ::std::string &mvaTag, int nCategories, bool debug)
 
 AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf)
 
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
 
float mvaValue (const reco::Candidate *candidate, std::vector< float > const &auxVariables) const
 
virtual float mvaValue (const reco::Candidate *candidate, std::vector< float > const &auxVariables, int &iCategory) const =0
 
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() [1/2]

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)) {}

◆ AnyMVAEstimatorRun2Base() [2/2]

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

Definition at line 19 of file AnyMVAEstimatorRun2Base.h.

◆ ~AnyMVAEstimatorRun2Base()

virtual AnyMVAEstimatorRun2Base::~AnyMVAEstimatorRun2Base ( )
inlinevirtual

Definition at line 21 of file AnyMVAEstimatorRun2Base.h.

21 {};

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

40 { return name_; }

References name_.

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

◆ getNCategories()

int AnyMVAEstimatorRun2Base::getNCategories ( ) const
inline

◆ getTag()

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

◆ isDebug()

bool AnyMVAEstimatorRun2Base::isDebug ( ) const
inline

◆ mvaValue() [1/2]

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

Definition at line 30 of file AnyMVAEstimatorRun2Base.h.

30  {
31  int iCategory;
32  return mvaValue(candidate, auxVariables, iCategory);
33  };

References mvaValue().

◆ mvaValue() [2/2]

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

Implemented in PhotonMVAEstimator, and ElectronMVAEstimatorRun2.

Referenced by mvaValue().

Member Data Documentation

◆ debug_

const bool AnyMVAEstimatorRun2Base::debug_
private

Definition at line 68 of file AnyMVAEstimatorRun2Base.h.

Referenced by isDebug().

◆ name_

const std::string AnyMVAEstimatorRun2Base::name_
private

Definition at line 58 of file AnyMVAEstimatorRun2Base.h.

Referenced by getName().

◆ nCategories_

const int AnyMVAEstimatorRun2Base::nCategories_
private

Definition at line 66 of file AnyMVAEstimatorRun2Base.h.

Referenced by getNCategories().

◆ tag_

const std::string AnyMVAEstimatorRun2Base::tag_
private

Definition at line 63 of file AnyMVAEstimatorRun2Base.h.

Referenced by getTag().

AnyMVAEstimatorRun2Base::nCategories_
const int nCategories_
Definition: AnyMVAEstimatorRun2Base.h:66
mvaElectronID_Fall17_iso_V1_cff.mvaTag
mvaTag
Definition: mvaElectronID_Fall17_iso_V1_cff.py:16
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
debug
#define debug
Definition: HDRShower.cc:19
taus_updatedMVAIds_cff.mvaName
mvaName
Definition: taus_updatedMVAIds_cff.py:18
AnyMVAEstimatorRun2Base::debug_
const bool debug_
Definition: AnyMVAEstimatorRun2Base.h:68
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
mvaElectronID_Fall17_iso_V1_cff.nCategories
nCategories
Definition: mvaElectronID_Fall17_iso_V1_cff.py:86
AnyMVAEstimatorRun2Base::tag_
const std::string tag_
Definition: AnyMVAEstimatorRun2Base.h:63
AnyMVAEstimatorRun2Base::name_
const std::string name_
Definition: AnyMVAEstimatorRun2Base.h:58
AnyMVAEstimatorRun2Base::mvaValue
virtual float mvaValue(const reco::Candidate *candidate, std::vector< float > const &auxVariables, int &iCategory) const =0
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303