All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
lartest::AssnProducer1 Class Reference
Inheritance diagram for lartest::AssnProducer1:

Public Types

typedef std::vector< int > intvec_t
 
typedef std::vector< std::string > strvec_t
 

Public Member Functions

 AssnProducer1 (fhicl::ParameterSet const &p)
 
 AssnProducer1 (AssnProducer1 const &)=delete
 
 AssnProducer1 (AssnProducer1 &&)=delete
 
AssnProducer1operator= (AssnProducer1 const &)=delete
 
AssnProducer1operator= (AssnProducer1 &&)=delete
 
void produce (art::Event &e) override
 

Detailed Description

Definition at line 22 of file AssnProducer1_module.cc.

Member Typedef Documentation

typedef std::vector<int> lartest::AssnProducer1::intvec_t

Definition at line 24 of file AssnProducer1_module.cc.

typedef std::vector<std::string> lartest::AssnProducer1::strvec_t

Definition at line 25 of file AssnProducer1_module.cc.

Constructor & Destructor Documentation

AssnProducer1::AssnProducer1 ( fhicl::ParameterSet const &  p)
explicit

Definition at line 45 of file AssnProducer1_module.cc.

46  : EDProducer{p}
47 {
48  produces<intvec_t>();
49  produces<strvec_t>();
50 }
pdgs p
Definition: selectors.fcl:22
lartest::AssnProducer1::AssnProducer1 ( AssnProducer1 const &  )
delete
lartest::AssnProducer1::AssnProducer1 ( AssnProducer1 &&  )
delete

Member Function Documentation

AssnProducer1& lartest::AssnProducer1::operator= ( AssnProducer1 const &  )
delete
AssnProducer1& lartest::AssnProducer1::operator= ( AssnProducer1 &&  )
delete
void AssnProducer1::produce ( art::Event &  e)
override

Definition at line 52 of file AssnProducer1_module.cc.

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 }
std::vector< std::string > strvec_t
std::vector< int > intvec_t
do i e

The documentation for this class was generated from the following file: