CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/EventFilter/HcalRawToDigi/plugins/HcalLaserEventFiltProducer2012.cc

Go to the documentation of this file.
00001 #include "EventFilter/HcalRawToDigi/plugins/HcalLaserEventFiltProducer2012.h"
00002 #include "FWCore/Framework/interface/Event.h"
00003 #include "FWCore/PluginManager/interface/ModuleDef.h"
00004 #include "FWCore/Framework/interface/MakerMacros.h"
00005 
00006 using namespace std;
00007 
00008 HcalLaserEventFiltProducer2012::HcalLaserEventFiltProducer2012(const edm::ParameterSet& iConfig) {
00009   hcalLaserEventFilter2012 = new HcalLaserEventFilter2012(iConfig);
00010   produces<bool>();
00011 }
00012 
00013 void HcalLaserEventFiltProducer2012::endJob() {
00014   hcalLaserEventFilter2012->endJob();
00015 }
00016 
00017 void HcalLaserEventFiltProducer2012::produce(edm::Event& iEvent, const edm::EventSetup& iSetup) {
00018   std::auto_ptr<bool> output(new bool(hcalLaserEventFilter2012->filter(iEvent, iSetup)));
00019   iEvent.put(output);
00020 }
00021 
00022 DEFINE_FWK_MODULE(HcalLaserEventFiltProducer2012);