CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ElectronMVAEstimator.h
Go to the documentation of this file.
1 #ifndef ElectronMVA_H
2 #define ElectronMVA_H
3 
5 #include "TMVA/Reader.h"
6 #include<string>
7 
9  public:
10  struct Configuration{
11  std::vector<std::string> vweightsfiles;
12  };
17  double mva(const reco::GsfElectron& myElectron, int nvertices=0);
18 
19  private:
21  void bindVariables();
23 
24  private:
25  TMVA::Reader *tmvaReader_;
26 
27  Float_t fbrem;
28  Float_t detain;
29  Float_t dphiin;
30  Float_t sieie;
31  Float_t hoe;
32  Float_t eop;
33  Float_t e1x5e5x5;
34  Float_t eleopout;
35  Float_t detaeleout;
36  Float_t kfchi2;
37  Float_t dist;
38  Float_t dcot;
39  Float_t eta;
40  Float_t pt;
41  Int_t kfhits;
42  Int_t mishits;
43  Int_t ecalseed;
44  Int_t Nvtx;
45 
46  Float_t absdist;
47  Float_t absdcot;
48  Float_t mykfhits;
49  Float_t mymishits;
50  Float_t myNvtx;
51 };
52 
53 #endif
const Configuration cfg_
void init(std::string fileName)
std::vector< std::string > vweightsfiles
double mva(const reco::GsfElectron &myElectron, int nvertices=0)