text: /**
     \file
     Test Modules for ScheduleBuilder
  
     \author Stefano ARGIRO
     \date 19 May 2005
  */
  
  #include "FWCore/Framework/interface/global/EDProducer.h"
  #include "FWCore/Framework/interface/Event.h"
  #include "FWCore/Framework/interface/MakerMacros.h"
  
  #include "FWCore/ParameterSet/interface/ParameterSet.h"
  #include "DataFormats/TestObjects/interface/ToyProducts.h"
  #include <memory>
  #include <string>
  
  using namespace edm;
  
  class TestSchedulerModule1 : public global::EDProducer<> {
  public:
    explicit TestSchedulerModule1(ParameterSet const& p) : pset_(p) { produces<edmtest::StringProduct>(); }
  
    void produce(StreamID, Event& e, EventSetup const&) const final;
  
  private:
    ParameterSet pset_;
  };
  
  void TestSchedulerModule1::produce(StreamID, Event& e, EventSetup const&) const {
    std::string myname = pset_.getParameter<std::string>("module_name");
    e.put(std::make_unique<edmtest::StringProduct>(myname));
  }
  
  DEFINE_FWK_MODULE(TestSchedulerModule1);
  
  // Configure (x)emacs for this file ...
  // Local Variables:
  // mode:c++
  // compile-command: "make -C .. -k"
  // End:
  