Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:19

0001 
0002 #include <iostream>
0003 
0004 #include "FWCore/Framework/interface/global/EDProducer.h"
0005 #include "FWCore/Framework/interface/MakerMacros.h"
0006 
0007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0008 
0009 using namespace edm;
0010 
0011 class TestMod : public global::EDProducer<> {
0012 public:
0013   explicit TestMod(ParameterSet const& p);
0014 
0015   void produce(StreamID, Event& e, EventSetup const&) const final;
0016 };
0017 
0018 TestMod::TestMod(ParameterSet const& p) {
0019   produces<int>();  // We don't really produce anything.
0020   //std::cerr << "TestMod instance created: " << p.getParameter<std::string>("@module_label")
0021   //    << std::endl;
0022 }
0023 
0024 void TestMod::produce(StreamID, Event&, EventSetup const&) const {
0025   //std::cerr << "Hi" << std::endl;
0026 }
0027 
0028 DEFINE_FWK_MODULE(TestMod);