File indexing completed on 2024-04-06 12:25:07
0001 #ifndef ElectronIDSelectorCutBased_h
0002 #define ElectronIDSelectorCutBased_h
0003
0004 #include "FWCore/Framework/interface/Event.h"
0005 #include "FWCore/Framework/interface/EventSetup.h"
0006 #include "FWCore/Framework/interface/ConsumesCollector.h"
0007 #include "DataFormats/Common/interface/Handle.h"
0008 #include "FWCore/Framework/interface/ESHandle.h"
0009 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0010 #include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
0011
0012 #include "ClassBasedElectronID.h"
0013 #include "CutBasedElectronID.h"
0014 #include "ElectronIDAlgo.h"
0015 #include "PTDRElectronID.h"
0016
0017 class ElectronIDSelectorCutBased {
0018 public:
0019 explicit ElectronIDSelectorCutBased(const edm::ParameterSet& conf, edm::ConsumesCollector&& iC)
0020 : ElectronIDSelectorCutBased(conf, iC) {}
0021 explicit ElectronIDSelectorCutBased(const edm::ParameterSet& conf, edm::ConsumesCollector& iC);
0022 virtual ~ElectronIDSelectorCutBased();
0023
0024 void newEvent(const edm::Event&, const edm::EventSetup&);
0025 double operator()(const reco::GsfElectron&, const edm::Event&, const edm::EventSetup&);
0026
0027 private:
0028 ElectronIDAlgo* electronIDAlgo_;
0029 edm::ParameterSet conf_;
0030 std::string algorithm_;
0031 };
0032
0033 #endif