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

Public Types

typedef std::vector< int > intvector_t
 

Public Member Functions

 IntVectorProducer (fhicl::ParameterSet const &p)
 
void produce (art::Event &e) override
 

Private Attributes

int nvalues_
 

Detailed Description

Definition at line 23 of file IntVectorProducer_module.cc.

Member Typedef Documentation

typedef std::vector<int> arttest::IntVectorProducer::intvector_t

Definition at line 27 of file IntVectorProducer_module.cc.

Constructor & Destructor Documentation

arttest::IntVectorProducer::IntVectorProducer ( fhicl::ParameterSet const &  p)
inlineexplicit

Definition at line 29 of file IntVectorProducer_module.cc.

30  : EDProducer{p}, nvalues_( p.get<int>("nvalues") )
31  {
32  produces<intvector_t>();
33  }
pdgs p
Definition: selectors.fcl:22

Member Function Documentation

void arttest::IntVectorProducer::produce ( art::Event &  e)
inlineoverride

Definition at line 35 of file IntVectorProducer_module.cc.

36  {
37  std::cerr << "IntVectorProducer::produce is running!\n";
38  int value_ = e.id().event();
39  std::unique_ptr<intvector_t> p(new intvector_t);
40  for( int k = 0; k != nvalues_; ++k ) {
41  p->push_back(value_ * k);
42  }
43  e.put(std::move(p));
44  }
BEGIN_PROLOG could also be cerr
pdgs p
Definition: selectors.fcl:22
do i e
pdgs k
Definition: selectors.fcl:22

Member Data Documentation

int arttest::IntVectorProducer::nvalues_
private

Definition at line 47 of file IntVectorProducer_module.cc.


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