AssnProducer1_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: AssnProducer1
3 // Plugin Type: producer (art v2_05_00)
4 // File: AssnProducer1_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 
13 
14 namespace fhicl { class ParameterSet; }
15 
16 namespace lartest {
17  class AssnProducer1;
18 }
19 
21 
23 public:
24  typedef std::vector<int> intvec_t;
25  typedef std::vector<std::string> strvec_t;
26 
27  explicit AssnProducer1(fhicl::ParameterSet const & p);
28  // The compiler-generated destructor is fine for non-base
29  // classes without bare pointers or other resource use.
30 
31  // Plugins should not be copied or assigned.
32  AssnProducer1(AssnProducer1 const &) = delete;
33  AssnProducer1(AssnProducer1 &&) = delete;
34  AssnProducer1 & operator = (AssnProducer1 const &) = delete;
35  AssnProducer1 & operator = (AssnProducer1 &&) = delete;
36 
37  // Required functions.
38  void produce(art::Event & e) override;
39 
40 private:
41 
42 };
43 
44 
45 AssnProducer1::AssnProducer1(fhicl::ParameterSet const & p)
46  : EDProducer{p}
47 {
48  produces<intvec_t>();
49  produces<strvec_t>();
50 }
51 
53 {
54  auto vs = std::make_unique<strvec_t>(strvec_t {"one", "one-a", "two", "two-a", "three", "three-a"});
55  auto vi = std::make_unique<intvec_t>(intvec_t {1, 2, 3});
56 
57  e.put(std::move(vs));
58  e.put(std::move(vi));
59 }
60 
std::vector< std::string > strvec_t
std::vector< int > intvec_t
const double e
void produce(art::Event &e) override
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:67
def move(depos, offset)
Definition: depos.py:107
p
Definition: test.py:223
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
Definition: DataViewImpl.h:686