Back to home page

Project CMSSW displayed by LXR

 
 

    


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     //produces<ThingWithHist>();
0011   }
0012 
0013   // Functions that gets called by framework every event
0014   void HistProducer::produce(edm::StreamID, edm::Event& e, edm::EventSetup const&) const {
0015     //Empty Histograms
0016     e.put(std::make_unique<TH1F>());
0017     //e.put(std::make_unique<ThingWithHist>());
0018   }
0019 
0020 }  // namespace edmtest
0021 using edmtest::HistProducer;
0022 DEFINE_FWK_MODULE(HistProducer);