CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SoftElectronMVAEstimator.h
Go to the documentation of this file.
1 #ifndef __ElectronIdentification_SoftElectronMVAEstimator_H__
2 #define __ElectronIdentification_SoftElectronMVAEstimator_H__
3 
9 #include "TMVA/Reader.h"
10 #include<string>
11 
13  public:
14  struct Configuration{
15  std::vector<std::string> vweightsfiles;
16  };
19  double mva(const reco::GsfElectron& myElectron,const edm::Event & evt);
20  UInt_t GetMVABin(int pu,double eta,double pt ) const;
21  private:
22  void bindVariables();
23  void init();
24 
25  private:
27  std::vector<std::string> mvaWeightFiles_;
28  std::vector<TMVA::Reader*> fmvaReader;
29  TMVA::Reader* tmvaReader_;
30 
31  Float_t fbrem;
32  Float_t EtotOvePin;
33  Float_t EBremOverDeltaP;
34  Float_t logSigmaEtaEta;
36  Float_t kfchi2;
37  Float_t kfhits; //number of layers
38  Float_t gsfchi2;
39  Float_t SigmaPtOverPt;
40 
41 
42  Float_t deta;
43  Float_t dphi;
44  Float_t detacalo;
45 
46  Float_t see;
47  Float_t etawidth;
48  Float_t phiwidth;
50 
51  Float_t HoE;
52  //Float_t EoP; //Not being used
53  Float_t eleEoPout;
54 
55  Float_t spp;
56  Float_t R9;
57  Float_t IoEmIoP;
58  Float_t PreShowerOverRaw;
59 
60 
61  Float_t eta;
62  Float_t pt;
63 
64  Float_t nPV;
65 };
66 
67 #endif
SoftElectronMVAEstimator(const Configuration &)
std::vector< std::string > mvaWeightFiles_
UInt_t GetMVABin(int pu, double eta, double pt) const
std::vector< TMVA::Reader * > fmvaReader
double mva(const reco::GsfElectron &myElectron, const edm::Event &evt)