CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Public Attributes | Private Attributes
ElectronMVAEstimatorRun2Spring16GeneralPurpose Class Reference

#include <ElectronMVAEstimatorRun2Spring16GeneralPurpose.h>

Inheritance diagram for ElectronMVAEstimatorRun2Spring16GeneralPurpose:
AnyMVAEstimatorRun2Base

Classes

struct  AllVariables
 

Public Types

enum  mvaCategories { UNDEFINED = -1, CAT_EB1_PT10plus = 0, CAT_EB2_PT10plus = 1, CAT_EE_PT10plus = 2 }
 

Public Member Functions

void constrainMVAVariables (AllVariables &) const
 
std::unique_ptr< const GBRForestcreateSingleReader (const int iCategory, const edm::FileInPath &weightFile)
 
 ElectronMVAEstimatorRun2Spring16GeneralPurpose (const edm::ParameterSet &conf)
 
 ElectronMVAEstimatorRun2Spring16GeneralPurpose ()
 
 ElectronMVAEstimatorRun2Spring16GeneralPurpose (const std::string &mvaTag, const std::string &conversionsTag="reducedEgamma:reducedConversions", const std::string &beamspotTag="offlineBeamSpot")
 
std::vector< float > fillMVAVariables (const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const override
 
std::vector< float > fillMVAVariables (const reco::GsfElectron *particle, const edm::Handle< reco::ConversionCollection > conversions, const reco::BeamSpot *beamSpot) const
 
int findCategory (const edm::Ptr< reco::Candidate > &particle) const override
 
int findCategory (const reco::GsfElectron *particle) const
 
virtual const std::string & getName () const overridefinal
 
virtual int getNCategories () const override
 
virtual const std::string & getTag () const overridefinal
 
void init (const std::vector< std::string > weightFileNames)
 
bool isEndcapCategory (int category) const
 
float mvaValue (const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const override
 
float mvaValue (const reco::GsfElectron *particle, const edm::EventBase &) const
 
float mvaValue (const int iCategory, const std::vector< float > &vars) const
 
void setConsumes (edm::ConsumesCollector &&) const overridefinal
 
 ~ElectronMVAEstimatorRun2Spring16GeneralPurpose ()
 
- Public Member Functions inherited from AnyMVAEstimatorRun2Base
 AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf)
 
virtual void getEventContent (const edm::Event &iEvent) const final
 
template<typename... Args>
std::vector< float > packMVAVariables (const Args...args) const
 
virtual ~AnyMVAEstimatorRun2Base ()
 

Public Attributes

const int nCategories = 3
 
- Public Attributes inherited from AnyMVAEstimatorRun2Base
const edm::ParameterSet _conf
 

Private Attributes

AllVariables allMVAVars_
 
const edm::InputTag beamSpotLabel_
 
const edm::InputTag conversionsLabelAOD_
 
const edm::InputTag conversionsLabelMiniAOD_
 
std::vector< std::unique_ptr
< const GBRForest > > 
gbrForest_s
 
const std::string MethodName_
 
const std::string name_ = "ElectronMVAEstimatorRun2Spring16GeneralPurpose"
 
const std::string tag_
 

Detailed Description

Definition at line 22 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

ElectronMVAEstimatorRun2Spring16GeneralPurpose::ElectronMVAEstimatorRun2Spring16GeneralPurpose ( const edm::ParameterSet conf)
ElectronMVAEstimatorRun2Spring16GeneralPurpose::ElectronMVAEstimatorRun2Spring16GeneralPurpose ( )
ElectronMVAEstimatorRun2Spring16GeneralPurpose::ElectronMVAEstimatorRun2Spring16GeneralPurpose ( const std::string &  mvaTag,
const std::string &  conversionsTag = "reducedEgamma:reducedConversions",
const std::string &  beamspotTag = "offlineBeamSpot" 
)
ElectronMVAEstimatorRun2Spring16GeneralPurpose::~ElectronMVAEstimatorRun2Spring16GeneralPurpose ( )

Member Function Documentation

void ElectronMVAEstimatorRun2Spring16GeneralPurpose::constrainMVAVariables ( AllVariables allMVAVars) const
std::unique_ptr< const GBRForest > ElectronMVAEstimatorRun2Spring16GeneralPurpose::createSingleReader ( const int  iCategory,
const edm::FileInPath weightFile 
)
std::vector< float > ElectronMVAEstimatorRun2Spring16GeneralPurpose::fillMVAVariables ( const edm::Ptr< reco::Candidate > &  particle,
const edm::Event iEvent 
) const
overridevirtual
std::vector< float > ElectronMVAEstimatorRun2Spring16GeneralPurpose::fillMVAVariables ( const reco::GsfElectron particle,
const edm::Handle< reco::ConversionCollection conversions,
const reco::BeamSpot beamSpot 
) const
int ElectronMVAEstimatorRun2Spring16GeneralPurpose::findCategory ( const edm::Ptr< reco::Candidate > &  particle) const
overridevirtual
int ElectronMVAEstimatorRun2Spring16GeneralPurpose::findCategory ( const reco::GsfElectron particle) const
virtual const std::string& ElectronMVAEstimatorRun2Spring16GeneralPurpose::getName ( void  ) const
inlinefinaloverridevirtual
virtual int ElectronMVAEstimatorRun2Spring16GeneralPurpose::getNCategories ( ) const
inlineoverridevirtual
virtual const std::string& ElectronMVAEstimatorRun2Spring16GeneralPurpose::getTag ( void  ) const
inlinefinaloverridevirtual
void ElectronMVAEstimatorRun2Spring16GeneralPurpose::init ( const std::vector< std::string >  weightFileNames)
bool ElectronMVAEstimatorRun2Spring16GeneralPurpose::isEndcapCategory ( int  category) const
float ElectronMVAEstimatorRun2Spring16GeneralPurpose::mvaValue ( const edm::Ptr< reco::Candidate > &  particle,
const edm::Event iEvent 
) const
overridevirtual
float ElectronMVAEstimatorRun2Spring16GeneralPurpose::mvaValue ( const reco::GsfElectron particle,
const edm::EventBase iEvent 
) const
float ElectronMVAEstimatorRun2Spring16GeneralPurpose::mvaValue ( const int  iCategory,
const std::vector< float > &  vars 
) const
void ElectronMVAEstimatorRun2Spring16GeneralPurpose::setConsumes ( edm::ConsumesCollector &&  cc) const
finaloverridevirtual

Reimplemented from AnyMVAEstimatorRun2Base.

Definition at line 64 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.

Member Data Documentation

AllVariables ElectronMVAEstimatorRun2Spring16GeneralPurpose::allMVAVars_
private
const edm::InputTag ElectronMVAEstimatorRun2Spring16GeneralPurpose::beamSpotLabel_
private
const edm::InputTag ElectronMVAEstimatorRun2Spring16GeneralPurpose::conversionsLabelAOD_
private
const edm::InputTag ElectronMVAEstimatorRun2Spring16GeneralPurpose::conversionsLabelMiniAOD_
private
std::vector< std::unique_ptr<const GBRForest> > ElectronMVAEstimatorRun2Spring16GeneralPurpose::gbrForest_s
private
const std::string ElectronMVAEstimatorRun2Spring16GeneralPurpose::MethodName_
private
const std::string ElectronMVAEstimatorRun2Spring16GeneralPurpose::name_ = "ElectronMVAEstimatorRun2Spring16GeneralPurpose"
private

Definition at line 129 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.

Referenced by getName().

const int ElectronMVAEstimatorRun2Spring16GeneralPurpose::nCategories = 3

Definition at line 28 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.

Referenced by getNCategories().

const std::string ElectronMVAEstimatorRun2Spring16GeneralPurpose::tag_
private

Definition at line 133 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.

Referenced by getTag().