Necessary Maintenance #18199
Remove unmoveable MCParticle workaround
A workaround is in place in
LArG4::produce() (around larsim:source:larsim/LArG4/LArG4_module.cc#L534) to avoid memory usage spikes when transferring
simb::MCParticle objects to the final data product.
This workaround should be removed after
simb::MCParticle actually supports a real move (issue #12067).
It is enough to remove the
iPartPair = particleList.erase(iPartPair); line and restore the range-
for loop (instead of a
Removed workaround for unmoveable simb::MCParticle
This solves issue #18199.