CMS 3D CMS Logo

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

#include <EGammaMvaEleEstimatorFWLite.h>

Public Types

enum  MVAType { kTrig = 0, kTrigNoIP = 1, kNonTrig = 2 }
 

Public Member Functions

 EGammaMvaEleEstimatorFWLite ()
 
void initialize (std::string methodName, MVAType type, bool useBinnedVersion, std::vector< std::string > weightsfiles)
 
float mvaValue (const pat::Electron &ele, const reco::Vertex &vertex, double rho, bool full5x5, bool printDebug=false)
 
 ~EGammaMvaEleEstimatorFWLite ()
 

Private Attributes

EGammaMvaEleEstimatorestimator_
 

Detailed Description

Definition at line 12 of file EGammaMvaEleEstimatorFWLite.h.

Member Enumeration Documentation

Enumerator
kTrig 
kTrigNoIP 
kNonTrig 

Definition at line 17 of file EGammaMvaEleEstimatorFWLite.h.

17  {
18  kTrig = 0, // MVA for triggering electrons
19  kTrigNoIP = 1, // MVA for triggering electrons without IP info
20  kNonTrig = 2, // MVA for non-triggering electrons
21  };

Constructor & Destructor Documentation

heppy::EGammaMvaEleEstimatorFWLite::EGammaMvaEleEstimatorFWLite ( )

Definition at line 8 of file EGammaMvaEleEstimatorFWLite.cc.

8  :
9  estimator_(0)
10 {
11 }
heppy::EGammaMvaEleEstimatorFWLite::~EGammaMvaEleEstimatorFWLite ( )

Definition at line 13 of file EGammaMvaEleEstimatorFWLite.cc.

References estimator_.

14 {
15  delete estimator_;
16 }

Member Function Documentation

void heppy::EGammaMvaEleEstimatorFWLite::initialize ( std::string  methodName,
MVAType  type,
bool  useBinnedVersion,
std::vector< std::string >  weightsfiles 
)

Definition at line 18 of file EGammaMvaEleEstimatorFWLite.cc.

References estimator_, contentValuesFiles::fullPath, EGammaMvaEleEstimator::initialize(), kNonTrig, EGammaMvaEleEstimator::kNonTrig, kTrig, EGammaMvaEleEstimator::kTrig, kTrigNoIP, EGammaMvaEleEstimator::kTrigNoIP, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.

22 {
24  switch(type) {
28  default:
29  return;
30  }
32  std::vector<std::string> weightspaths;
33  for (const std::string &s : weightsfiles) {
34  weightspaths.push_back( edm::FileInPath(s).fullPath() );
35  }
36  estimator_->initialize(methodName, pogType, useBinnedVersion, weightspaths);
37 }
type
Definition: HCALResponse.h:21
void initialize(std::string methodName, std::string weightsfile, EGammaMvaEleEstimator::MVAType type)
float heppy::EGammaMvaEleEstimatorFWLite::mvaValue ( const pat::Electron ele,
const reco::Vertex vertex,
double  rho,
bool  full5x5,
bool  printDebug = false 
)

Definition at line 39 of file EGammaMvaEleEstimatorFWLite.cc.

44 {
45  return -1.;
46 //FIXME
47 // return estimator_->mvaValue(ele,vertex,rho,full5x5,printDebug);
48 }

Member Data Documentation

EGammaMvaEleEstimator* heppy::EGammaMvaEleEstimatorFWLite::estimator_
private

Definition at line 34 of file EGammaMvaEleEstimatorFWLite.h.

Referenced by initialize(), and ~EGammaMvaEleEstimatorFWLite().