CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/RecoEgamma/EgammaTools/interface/ConversionLikelihoodCalculator.h

Go to the documentation of this file.
00001 #ifndef ConversionLikelihoodCalculator_h
00002 #define ConversionLikelihoodCalculator_h
00003 
00004 #include "DataFormats/EgammaCandidates/interface/ConversionFwd.h"
00005 #include "DataFormats/EgammaCandidates/interface/Conversion.h"
00006 
00007 #include "TMVA/Reader.h"
00008 
00009 class ConversionLikelihoodCalculator
00010 {
00011     public:
00012         ConversionLikelihoodCalculator();
00013         void setWeightsFile(const char * weightsFile);
00014 
00015         double calculateLikelihood(reco::ConversionRef conversion);
00016         double calculateLikelihood(reco::Conversion & conversion);
00017 
00018     private:
00019         TMVA::Reader * reader_;
00020         float log_e_over_p_;
00021         float log_abs_cot_theta_;
00022         float log_abs_delta_phi_;
00023         float log_chi2_max_pt_;
00024         float log_chi2_min_pt_;
00025 
00026 };
00027 
00028 #endif
00029