00001 #ifndef ElectronIDSelectorCutBased_h 00002 #define ElectronIDSelectorCutBased_h 00003 00004 #include "FWCore/Framework/interface/Event.h" 00005 #include "FWCore/Framework/interface/EventSetup.h" 00006 #include "DataFormats/Common/interface/Handle.h" 00007 #include "FWCore/Framework/interface/ESHandle.h" 00008 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00009 #include "DataFormats/EgammaCandidates/interface/GsfElectron.h" 00010 #include "RecoEgamma/ElectronIdentification/interface/ElectronIDAlgo.h" 00011 #include "RecoEgamma/ElectronIdentification/interface/PTDRElectronID.h" 00012 #include "RecoEgamma/ElectronIdentification/interface/CutBasedElectronID.h" 00013 00014 class ElectronIDSelectorCutBased 00015 { 00016 public: 00017 00018 explicit ElectronIDSelectorCutBased (const edm::ParameterSet& conf) ; 00019 virtual ~ElectronIDSelectorCutBased () ; 00020 00021 void newEvent (const edm::Event&, const edm::EventSetup&) ; 00022 double operator() (const reco::GsfElectron& , const edm::Event& , const edm::EventSetup& ) ; 00023 00024 private: 00025 00026 ElectronIDAlgo* electronIDAlgo_; 00027 edm::ParameterSet conf_; 00028 std::string algorithm_ ; 00029 00030 }; 00031 00032 #endif