src
FWCore
Integration
plugins
HistProducer.cc
Go to the documentation of this file.
1
#include "TH1F.h"
2
3
#include "
HistProducer.h
"
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/Framework/interface/MakerMacros.h
"
6
7
namespace
edmtest
{
8
HistProducer::HistProducer
(
edm::ParameterSet
const
&) {
9
produces<TH1F>();
10
//produces<ThingWithHist>();
11
}
12
13
// Functions that gets called by framework every event
14
void
HistProducer::produce
(
edm::StreamID
,
edm::Event
&
e
,
edm::EventSetup
const
&)
const
{
15
//Empty Histograms
16
e
.put(std::make_unique<TH1F>());
17
//e.put(std::make_unique<ThingWithHist>());
18
}
19
20
}
// namespace edmtest
21
using
edmtest::HistProducer
;
22
DEFINE_FWK_MODULE
(
HistProducer
);
edm::StreamID
Definition:
StreamID.h:30
Event.h
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
edmtest
Definition:
AlignPCLThresholdsReader.cc:15
HistProducer.h
edmtest::HistProducer::HistProducer
HistProducer(edm::ParameterSet const &ps)
Definition:
HistProducer.cc:8
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::EventSetup
Definition:
EventSetup.h:56
edmtest::HistProducer::produce
void produce(edm::StreamID, edm::Event &e, edm::EventSetup const &c) const override
Definition:
HistProducer.cc:14
edmtest::HistProducer
Definition:
HistProducer.h:12
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::Event
Definition:
Event.h:73
MakerMacros.h
Generated for CMSSW Reference Manual by
1.8.14