File indexing completed on 2024-04-06 12:12:34
0001 #include "TH1F.h"
0002
0003 #include "HistProducer.h"
0004 #include "FWCore/Framework/interface/Event.h"
0005 #include "FWCore/Framework/interface/MakerMacros.h"
0006
0007 namespace edmtest {
0008 HistProducer::HistProducer(edm::ParameterSet const&) {
0009 produces<TH1F>();
0010
0011 }
0012
0013
0014 void HistProducer::produce(edm::StreamID, edm::Event& e, edm::EventSetup const&) const {
0015
0016 e.put(std::make_unique<TH1F>());
0017
0018 }
0019
0020 }
0021 using edmtest::HistProducer;
0022 DEFINE_FWK_MODULE(HistProducer);