CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EGammaMvaEleEstimatorFWLite.cc
Go to the documentation of this file.
1 
5 
6 namespace heppy {
7 
9  estimator_(0)
10 {
11 }
12 
14 {
15  delete estimator_;
16 }
17 
19  MVAType type,
20  bool useBinnedVersion,
21  std::vector<std::string> weightsfiles )
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 }
38 
40  const reco::Vertex& vertex,
41  double rho,
42  bool full5x5,
43  bool printDebug)
44 {
45  return -1.;
46 //FIXME
47 // return estimator_->mvaValue(ele,vertex,rho,full5x5,printDebug);
48 }
49 
50 }
type
Definition: HCALResponse.h:21
Definition: DDAxes.h:10
float mvaValue(const pat::Electron &ele, const reco::Vertex &vertex, double rho, bool full5x5, bool printDebug=false)
void initialize(std::string methodName, MVAType type, bool useBinnedVersion, std::vector< std::string > weightsfiles)
void initialize(std::string methodName, std::string weightsfile, EGammaMvaEleEstimator::MVAType type)
Analysis-level electron class.
Definition: Electron.h:52