AssnsProducer1_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: AssnsProducer1
3 // Plugin Type: producer (art v2_05_00)
4 // File: AssnsProducer1_module.cc
5 //
6 // Generated at Thu Dec 8 12:20:56 2016 by Saba Sehrish using cetskelgen
7 // from cetlib version v1_21_00.
8 ////////////////////////////////////////////////////////////////////////
9 
19 #include "fhiclcpp/ParameterSet.h"
21 
22 namespace arttest {
23  class AssnsProducer1;
24 }
25 
27 
29 public:
30  typedef std::vector<int> intvec_t;
31  typedef std::vector<std::string> strvec_t;
32 
33  explicit AssnsProducer1(fhicl::ParameterSet const& p);
34 
35  // Plugins should not be copied or assigned.
36  AssnsProducer1(AssnsProducer1 const&) = delete;
37  AssnsProducer1(AssnsProducer1&&) = delete;
38  AssnsProducer1& operator=(AssnsProducer1 const&) = delete;
40 
41 private:
42  void produce(art::Event& e) override;
43 };
44 
46 {
47  produces<intvec_t>();
48  produces<strvec_t>();
49 }
50 
51 void
53 {
54  auto vs = std::make_unique<strvec_t>(
55  strvec_t{"one", "one-a", "two", "two-a", "three", "three-a"});
56  auto vi = std::make_unique<intvec_t>(intvec_t{1, 2, 3});
57 
58  e.put(std::move(vs));
59  e.put(std::move(vi));
60 }
61 
static const double ps
Definition: Units.h:103
EDProducer()=default
void produce(art::Event &e) override
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:68
AssnsProducer1(fhicl::ParameterSet const &p)
p
Definition: test.py:228
AssnsProducer1 & operator=(AssnsProducer1 const &)=delete
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
std::vector< std::string > strvec_t