00001 #ifndef RecoCaloTools_EcalChannelKiller_EcalChannelKiller_HH 00002 #define RecoCaloTools_EcalChannelKiller_EcalChannelKiller_HH 00003 00010 // system include files 00011 #include <memory> 00012 00013 // user include files 00014 #include "FWCore/Framework/interface/Frameworkfwd.h" 00015 #include "FWCore/Framework/interface/EDProducer.h" 00016 #include "FWCore/Framework/interface/ESHandle.h" 00017 00018 #include "FWCore/Framework/interface/Event.h" 00019 #include "FWCore/Framework/interface/MakerMacros.h" 00020 00021 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00022 00023 00024 #include <string> 00025 using namespace cms; 00026 using namespace std; 00027 // 00028 // class decleration 00029 // 00030 00031 class EcalChannelKiller : public edm::EDProducer { 00032 public: 00033 explicit EcalChannelKiller(const edm::ParameterSet&); 00034 ~EcalChannelKiller(); 00035 00036 private: 00037 virtual void beginJob(const edm::EventSetup&) ; 00038 virtual void produce(edm::Event&, const edm::EventSetup&); 00039 virtual void endJob() ; 00040 00041 // ----------member data --------------------------- 00042 string hitProducer_; 00043 string hitCollection_; 00044 string reducedHitCollection_; 00045 string DeadChannelFileName_; 00046 vector<EBDetId> ChannelsDeadID; 00047 }; 00048 00049 00050 #endif