CMS 3D CMS Logo

HistProducer.cc
Go to the documentation of this file.
1 #include "TH1F.h"
2 
3 #include "HistProducer.h"
6 
7 namespace edmtest {
9  produces<TH1F>();
10  //produces<ThingWithHist>();
11  }
12 
13  // Functions that gets called by framework every event
15  //Empty Histograms
16  e.put(std::make_unique<TH1F>());
17  //e.put(std::make_unique<ThingWithHist>());
18  }
19 
20 } // namespace edmtest
HistProducer(edm::ParameterSet const &ps)
Definition: HistProducer.cc:8
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void produce(edm::StreamID, edm::Event &e, edm::EventSetup const &c) const override
Definition: HistProducer.cc:14