15 edm4hep::RecoMCParticleLinkCollection out;
18 frame_.get<edm4hep::RecoMCParticleLinkCollection>(
sdstName(
"TBL",
"RecoToMC"));
19 const auto& fdst_particles =
20 frame_.get<edm4hep::ReconstructedParticleCollection>(
"fDST_MAIN_Particles");
21 const std::size_t n_fdst = fdst_particles.size();
23 for (
const auto& sl : src) {
24 auto dl = out.create();
25 dl.setWeight(sl.getWeight());
26 const auto& src_from = sl.getFrom();
27 const auto fidx = src_from.getObjectID().index;
28 if (fidx >= 0 &&
static_cast<std::size_t
>(fidx) < n_fdst) {
29 dl.setFrom(fdst_particles[fidx]);