AssnsIterProducer1_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: AssnsIterProducer1
3 // Plugin Type: producer (art v2_05_00)
4 // File: AssnsIterProducer1_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 lartest {
23  class AssnsIterProducer1;
24 }
25 
27 
29 public:
30  typedef std::vector<int> intvec_t;
31  typedef std::vector<std::string> strvec_t;
32  typedef std::vector<float> floatvec_t;
33 
34  explicit AssnsIterProducer1(fhicl::ParameterSet const& p);
35  // The compiler-generated destructor is fine for non-base
36  // classes without bare pointers or other resource use.
37 
38  // Plugins should not be copied or assigned.
39  AssnsIterProducer1(AssnsIterProducer1 const&) = delete;
43 
44  // Required functions.
45  void produce(art::Event& e) override;
46 
47 private:
49 };
50 
52  : EDProducer{p}, fInputLabel(p.get<std::string>("input_label"))
53 {
54  produces<intvec_t>();
55  produces<strvec_t>();
56  produces<floatvec_t>();
57 }
58 
59 void
61 {
62  auto vs = std::make_unique<strvec_t>(
63  strvec_t{"one", "one-a", "two", "two-a", "three", "three-a"});
64  auto vi = std::make_unique<intvec_t>(intvec_t{1, 2, 3});
65  auto vf =
66  std::make_unique<floatvec_t>(floatvec_t{1.0, 1.1, 2.0, 2.1, 3.0, 3.1});
67 
68  e.put(std::move(vs));
69  e.put(std::move(vi));
70  e.put(std::move(vf));
71 }
72 
std::string string
Definition: nybbler.cc:12
EDProducer()=default
std::vector< std::string > strvec_t
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:68
void produce(art::Event &e) override
AssnsIterProducer1(fhicl::ParameterSet const &p)
p
Definition: test.py:228
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
AssnsIterProducer1 & operator=(AssnsIterProducer1 const &)=delete