00001 #ifndef GlobalSeedProducer_h 00002 #define GlobalSeedProducer_h 00003 00004 // 00005 // Package: RecoEgamma/EgammaElectronProducers 00006 // Class: GlobalSeedProducer 00007 // 00008 // Description: Calls SubSeedGenerator 00009 // to find TrackingSeeds. 00010 00011 00012 #include "FWCore/Framework/interface/EDProducer.h" 00013 #include "FWCore/Framework/interface/Event.h" 00014 #include "FWCore/Framework/interface/EventSetup.h" 00015 #include "FWCore/Framework/interface/ESHandle.h" 00016 00017 //#include "Geometry/CaloGeometry/interface/CaloGeometry.h" 00018 00019 #include "DataFormats/Common/interface/Handle.h" 00020 #include "DataFormats/Common/interface/EDProduct.h" 00021 #include "DataFormats/EgammaReco/interface/SuperClusterFwd.h" 00022 #include "DataFormats/EgammaReco/interface/SuperCluster.h" 00023 00024 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00025 00026 class SubSeedGenerator; 00027 00028 class GlobalSeedProducer : public edm::EDProducer 00029 { 00030 public: 00031 00032 explicit GlobalSeedProducer(const edm::ParameterSet& conf); 00033 00034 virtual ~GlobalSeedProducer(); 00035 00036 virtual void beginJob(edm::EventSetup const&iSetup); 00037 virtual void produce(edm::Event& e, const edm::EventSetup& c); 00038 00039 private: 00040 00041 00042 edm::InputTag superClusters_[2]; 00043 00044 const edm::ParameterSet conf_; 00045 SubSeedGenerator *matcher_; 00046 00047 }; 00048 00049 #endif 00050 00051 00052