BadAssnsProducer_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: BadAssnsProducer
3 // Plugin Type: producer (art v1_19_00_rc3)
4 // File: BadAssnsProducer_module.cc
5 //
6 // Generated at Thu Apr 14 08:54:19 2016 by Christopher Green using cetskelgen
7 // from cetlib version v1_17_04.
8 ////////////////////////////////////////////////////////////////////////
9 
18 #include "fhiclcpp/ParameterSet.h"
20 
21 #include <memory>
22 
23 namespace arttest {
24  class BadAssnsProducer;
25 }
26 
28 public:
29  explicit BadAssnsProducer(fhicl::ParameterSet const& p);
30  // The compiler-generated destructor is fine for non-base
31  // classes without bare pointers or other resource use.
32 
33  // Plugins should not be copied or assigned.
34  BadAssnsProducer(BadAssnsProducer const&) = delete;
38 
39  // Required functions.
40  void produce(art::Event& e) override;
41 
42 private:
43 };
44 
46  : EDProducer{ps}
47 {
48  produces<art::Assns<StringProduct, DummyProduct>>();
49 }
50 
51 void
53 {
54  e.put(std::make_unique<art::Assns<StringProduct, DummyProduct>>());
55 }
56 
static const double ps
Definition: Units.h:103
EDProducer()=default
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:68
BadAssnsProducer & operator=(BadAssnsProducer const &)=delete
p
Definition: test.py:228
void produce(art::Event &e) override
BadAssnsProducer(fhicl::ParameterSet const &p)
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692