#include <ElectronMVAEstimatorRun2Spring16GeneralPurpose.h>
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 GBRForest > | createSingleReader (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_ |
Definition at line 22 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.
Enumerator | |
---|---|
UNDEFINED | |
CAT_EB1_PT10plus | |
CAT_EB2_PT10plus | |
CAT_EE_PT10plus |
Definition at line 29 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.
ElectronMVAEstimatorRun2Spring16GeneralPurpose::ElectronMVAEstimatorRun2Spring16GeneralPurpose | ( | const edm::ParameterSet & | conf | ) |
Definition at line 13 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
ElectronMVAEstimatorRun2Spring16GeneralPurpose::ElectronMVAEstimatorRun2Spring16GeneralPurpose | ( | ) |
Definition at line 45 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
ElectronMVAEstimatorRun2Spring16GeneralPurpose::ElectronMVAEstimatorRun2Spring16GeneralPurpose | ( | const std::string & | mvaTag, |
const std::string & | conversionsTag = "reducedEgamma:reducedConversions" , |
||
const std::string & | beamspotTag = "offlineBeamSpot" |
||
) |
Definition at line 48 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
ElectronMVAEstimatorRun2Spring16GeneralPurpose::~ElectronMVAEstimatorRun2Spring16GeneralPurpose | ( | ) |
Definition at line 60 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
void ElectronMVAEstimatorRun2Spring16GeneralPurpose::constrainMVAVariables | ( | AllVariables & | allMVAVars | ) | const |
Definition at line 416 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
std::unique_ptr< const GBRForest > ElectronMVAEstimatorRun2Spring16GeneralPurpose::createSingleReader | ( | const int | iCategory, |
const edm::FileInPath & | weightFile | ||
) |
Definition at line 177 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 236 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
std::vector< float > ElectronMVAEstimatorRun2Spring16GeneralPurpose::fillMVAVariables | ( | const reco::GsfElectron * | particle, |
const edm::Handle< reco::ConversionCollection > | conversions, | ||
const reco::BeamSpot * | beamSpot | ||
) | const |
Definition at line 276 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 130 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
int ElectronMVAEstimatorRun2Spring16GeneralPurpose::findCategory | ( | const reco::GsfElectron * | particle | ) | const |
Definition at line 142 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 105 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.
References name_.
|
inlineoverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 103 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.
References nCategories.
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 106 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.
References tag_.
void ElectronMVAEstimatorRun2Spring16GeneralPurpose::init | ( | const std::vector< std::string > | weightFileNames | ) |
Definition at line 26 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
bool ElectronMVAEstimatorRun2Spring16GeneralPurpose::isEndcapCategory | ( | int | category | ) | const |
Definition at line 166 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 79 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
float ElectronMVAEstimatorRun2Spring16GeneralPurpose::mvaValue | ( | const reco::GsfElectron * | particle, |
const edm::EventBase & | iEvent | ||
) | const |
Definition at line 87 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
float ElectronMVAEstimatorRun2Spring16GeneralPurpose::mvaValue | ( | const int | iCategory, |
const std::vector< float > & | vars | ||
) | const |
Definition at line 98 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
|
finaloverridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 64 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.cc.
|
private |
Definition at line 140 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.
|
private |
Definition at line 146 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.
|
private |
Definition at line 148 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.
|
private |
Definition at line 149 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.
|
private |
Definition at line 136 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.
|
private |
Definition at line 139 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.
|
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().
|
private |
Definition at line 133 of file ElectronMVAEstimatorRun2Spring16GeneralPurpose.h.
Referenced by getTag().