Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include "EventFilter/HcalRawToDigi/plugins/HcalLaserEventFiltProducer2012.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/PluginManager/interface/ModuleDef.h"
#include "FWCore/Framework/interface/MakerMacros.h"

using namespace std;

HcalLaserEventFiltProducer2012::HcalLaserEventFiltProducer2012(const edm::ParameterSet& iConfig) {
  hcalLaserEventFilter2012 = new HcalLaserEventFilter2012(iConfig);
  produces<bool>();
}

void HcalLaserEventFiltProducer2012::endJob() { hcalLaserEventFilter2012->endJob(); }

void HcalLaserEventFiltProducer2012::produce(edm::Event& iEvent, const edm::EventSetup& iSetup) {
  iEvent.put(std::make_unique<bool>(hcalLaserEventFilter2012->filter(iEvent, iSetup)));
}

DEFINE_FWK_MODULE(HcalLaserEventFiltProducer2012);