CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/RecoEgamma/ElectronIdentification/interface/ElectronMVAEstimator.h

Go to the documentation of this file.
00001 #ifndef ElectronMVA_H
00002 #define ElectronMVA_H
00003 
00004 #include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
00005 #include "TMVA/Reader.h"
00006 #include<string>
00007 
00008 class ElectronMVAEstimator {
00009  public:
00010   ElectronMVAEstimator();
00011   ElectronMVAEstimator(std::string fileName);
00012   ~ElectronMVAEstimator() {;}
00013   double mva(const reco::GsfElectron& myElectron, int nvertices=0);
00014 
00015  private:
00016   void bindVariables();
00017   void init(std::string fileName);
00018 
00019  private:
00020   TMVA::Reader    *tmvaReader_;
00021   
00022   Float_t       fbrem;
00023   Float_t       detain;
00024   Float_t       dphiin; 
00025   Float_t       sieie;
00026   Float_t       hoe;
00027   Float_t       eop;
00028   Float_t       e1x5e5x5;
00029   Float_t       eleopout;
00030   Float_t       detaeleout;
00031   Float_t       kfchi2;
00032   Float_t       dist;
00033   Float_t       dcot;
00034   Float_t       eta;
00035   Float_t       pt;
00036   Int_t         kfhits;
00037   Int_t         mishits;
00038   Int_t         ecalseed;
00039   Int_t         Nvtx;
00040 
00041   Float_t       absdist;
00042   Float_t       absdcot;
00043   Float_t       mykfhits;
00044   Float_t       mymishits;
00045   Float_t       myNvtx;
00046 };
00047 
00048 #endif