Main Page
Namespaces
Classes
Package Documentation
EventFilter
HcalRawToDigi
plugins
HcalLaserEventFiltProducer2012.cc
Go to the documentation of this file.
1
#include "
EventFilter/HcalRawToDigi/plugins/HcalLaserEventFiltProducer2012.h
"
2
#include "
FWCore/Framework/interface/Event.h
"
3
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
4
#include "
FWCore/Framework/interface/MakerMacros.h
"
5
6
using namespace
std
;
7
8
HcalLaserEventFiltProducer2012::HcalLaserEventFiltProducer2012
(
const
edm::ParameterSet
& iConfig) {
9
hcalLaserEventFilter2012 =
new
HcalLaserEventFilter2012
(iConfig);
10
produces<bool>();
11
}
12
13
void
HcalLaserEventFiltProducer2012::endJob
() {
14
hcalLaserEventFilter2012->endJob();
15
}
16
17
void
HcalLaserEventFiltProducer2012::produce
(
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup) {
18
iEvent.
put
(std::make_unique<bool>(hcalLaserEventFilter2012->filter(iEvent, iSetup)));
19
}
20
21
DEFINE_FWK_MODULE
(
HcalLaserEventFiltProducer2012
);
edm::Event::put
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition:
Event.h:137
HcalLaserEventFiltProducer2012::HcalLaserEventFiltProducer2012
HcalLaserEventFiltProducer2012(const edm::ParameterSet &iConfig)
Definition:
HcalLaserEventFiltProducer2012.cc:8
HcalLaserEventFiltProducer2012
Definition:
HcalLaserEventFiltProducer2012.h:9
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
Event.h
MakerMacros.h
std
Definition:
JetResolutionObject.h:80
HcalLaserEventFilter2012
Definition:
HcalLaserEventFilter2012.h:41
iEvent
int iEvent
Definition:
GenABIO.cc:230
HcalLaserEventFiltProducer2012::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
HcalLaserEventFiltProducer2012.cc:17
edm::EventSetup
Definition:
EventSetup.h:51
HcalLaserEventFiltProducer2012.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:70
ModuleDef.h
HcalLaserEventFiltProducer2012::endJob
void endJob() override
Definition:
HcalLaserEventFiltProducer2012.cc:13
Generated for CMSSW Reference Manual by
1.8.11