Definition at line 20 of file PtrMakerProducer2_module.cc.
PtrMakerProducer2::PtrMakerProducer2 |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
void PtrMakerProducer2::produce |
( |
art::Event & |
e | ) |
|
|
override |
Definition at line 50 of file PtrMakerProducer2_module.cc.
52 std::cerr <<
"PtrMakerProducer 2 is running!\n";
53 int value_ =
e.id().event();
54 std::unique_ptr<intvector_t> intvector(
new intvector_t);
55 auto intptrs = std::make_unique<intPtrvector_t>();
56 art::PtrMaker<int> make_intptr(
e);
58 for(
int i = 0; i !=
nvalues; ++i ) {
59 intvector->push_back(value_ * i);
60 auto p = make_intptr(i);
61 intptrs->push_back(
p);
63 e.put(std::move(intvector));
64 e.put(std::move(intptrs));
BEGIN_PROLOG could also be cerr
std::vector< int > intvector_t
int PtrMakerProducer2::nvalues |
|
private |
The documentation for this class was generated from the following file: