67 std::unique_ptr<art::Assns<recob::Track, anab::T0>> assn(
new art::Assns<recob::Track, anab::T0>);
70 art::Handle<std::vector<recob::Track>> intrack_handle;
73 std::vector<art::Ptr<recob::Track>> intracks;
74 art::fill_ptr_vector(intracks, intrack_handle);
76 art::FindManyP<anab::T0> fmT0s(intracks,
e,
fT0Label);
77 art::FindManyP<recob::PFParticle> fmInParticles(intracks,
e,
fTrackLabelIn);
79 art::Handle<std::vector<recob::Track>> outtrack_handle;
82 std::vector<art::Ptr<recob::Track>> outtracks;
83 art::fill_ptr_vector(outtracks, outtrack_handle);
85 art::FindManyP<recob::PFParticle> fmOutParticles(outtracks,
e,
fTrackLabelOut);
88 for (
unsigned i_in = 0; i_in < intracks.size(); i_in++) {
90 const std::vector<art::Ptr<anab::T0>> &t0s = fmT0s.at(i_in);
91 if (!t0s.size())
continue;
93 for (
unsigned i_out = 0; i_out < outtracks.size(); i_out++) {
97 assn->addMany(outtracks.at(i_out), t0s);
103 e.put(std::move(assn));
art::InputTag fTrackLabelOut
art::InputTag fTrackLabelIn
size_t Self() const
Returns the index of this particle.
Hierarchical representation of particle flow.