CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EGammaMvaEleEstimatorFWLite.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_Heppy_EGammaMvaEleEstimatorFWLite_h
2 #define PhysicsTools_Heppy_EGammaMvaEleEstimatorFWLite_h
3 
6 namespace reco {
7  class Vertex;
8 }
9 namespace pat {
10  class Electron;
11 }
12 #include <vector>
13 #include <string>
14 
15 namespace heppy {
16 
18  public:
21 
22  enum MVAType {
23  kTrig = 0, // MVA for triggering electrons
24  kTrigNoIP = 1, // MVA for triggering electrons without IP info
25  kNonTrig = 2, // MVA for non-triggering electrons
26  kTrigCSA14 = 3, // MVA for non-triggering electrons
27  kNonTrigCSA14 = 4, // MVA for non-triggering electrons
28  kNonTrigPhys14 = 5, // MVA for non-triggering electrons
29  };
30 
31  void initialize(std::string methodName, MVAType type, bool useBinnedVersion, std::vector<std::string> weightsfiles);
32 
33  float mvaValue(
34  const pat::Electron& ele, const reco::Vertex& vertex, double rho, bool full5x5, bool printDebug = false);
35 
36  private:
39  };
40 } // namespace heppy
41 #endif
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)
EGammaMvaEleEstimatorCSA14 * estimatorCSA14_
Analysis-level electron class.
Definition: Electron.h:51
constexpr char Electron[]
Definition: modules.cc:12