67 std::unique_ptr<art::Assns<recob::PFParticle, sbn::SimpleFlashMatch>> assn(
new art::Assns<recob::PFParticle, sbn::SimpleFlashMatch>);
70 art::Handle<std::vector<recob::PFParticle>> inpfp_handle;
73 std::vector<art::Ptr<recob::PFParticle>> inpfps;
74 art::fill_ptr_vector(inpfps, inpfp_handle);
76 art::FindManyP<sbn::SimpleFlashMatch> fmFlash(inpfps,
e,
fFlashLabel);
78 art::Handle<std::vector<recob::PFParticle>> outpfp_handle;
81 std::vector<art::Ptr<recob::PFParticle>> outpfps;
82 art::fill_ptr_vector(outpfps, outpfp_handle);
85 for (
unsigned i_in = 0; i_in < inpfps.size(); i_in++) {
87 const std::vector<art::Ptr<sbn::SimpleFlashMatch>> &flashVec = fmFlash.at(i_in);
88 if (!flashVec.size())
continue;
90 for (
unsigned i_out = 0; i_out < outpfps.size(); i_out++) {
94 assn->addMany(outpfps.at(i_out), flashVec);
100 e.put(std::move(assn));
size_t Self() const
Returns the index of this particle.
art::InputTag fFlashLabel
art::InputTag fPFParticleLabelIn
Hierarchical representation of particle flow.
art::InputTag fPFParticleLabelOut