Definition at line 24 of file AssnProducer2_module.cc.
AssnProducer2::AssnProducer2 |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
void AssnProducer2::produce |
( |
art::Event & |
e | ) |
|
|
override |
Definition at line 53 of file AssnProducer2_module.cc.
55 art::Handle<std::vector<int>> ih;
57 art::Handle<std::vector<std::string>> sh;
60 art::PtrMaker<int> make_intptr(
e, ih.id());
61 art::PtrMaker<std::string> make_strptr(
e, sh.id());
63 auto assns = std::make_unique<art::Assns<int, std::string>>();
64 for (
size_t i=0; i < 3; ++i) {
65 auto p1 = make_intptr(i);
66 for(
size_t j=0; j < 2; ++j) {
67 auto p2 = make_strptr(i*2+j);
68 assns -> addSingle(
p1, p2);
71 e.put(std::move(assns));
physics associatedGroupsWithLeft p1
std::string lartest::AssnProducer2::fInputLabel |
|
private |
The documentation for this class was generated from the following file: