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;
17  };
20  double mva(const reco::GsfElectron& myElectron,const edm::Event & evt);
21  UInt_t GetMVABin(int pu,double eta,double pt ) const;
22  private:
23  void bindVariables();
24  void init();
25 
26  private:
28  std::vector<std::string> mvaWeightFiles_;
29  std::vector<TMVA::Reader*> fmvaReader;
30  TMVA::Reader* tmvaReader_;
31 
32  Float_t fbrem;
33  Float_t EtotOvePin;
34  Float_t EBremOverDeltaP;
35  Float_t logSigmaEtaEta;
37  Float_t kfchi2;
38  Float_t kfhits; //number of layers
39  Float_t gsfchi2;
40  Float_t SigmaPtOverPt;
41 
42 
43  Float_t deta;
44  Float_t dphi;
45  Float_t detacalo;
46 
47  Float_t see;
48  Float_t etawidth;
49  Float_t phiwidth;
51 
52  Float_t HoE;
53  //Float_t EoP; //Not being used
54  Float_t eleEoPout;
55 
56  Float_t spp;
57  Float_t R9;
58  Float_t IoEmIoP;
59  Float_t PreShowerOverRaw;
60 
61 
62  Float_t eta;
63  Float_t pt;
64 
65  Float_t nPV;
66 };
67 
68 #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)
edm::EDGetTokenT< reco::VertexCollection > vtxCollection