Commit 069b3c6c authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Fixed the dummy reconstructed to only save the thrown MC particles

	modified:   JugBase/src/components/MC2DummyParticle.cpp
parent 35fba059
......@@ -39,6 +39,9 @@ namespace Jug {
// output collection
auto out_parts = m_outputHitCollection.createAndPut();
for (const auto& p : *parts) {
if (p.genStatus() != 1) {
double momentum = std::hypot(p.psx(), p.psy(), p.psz());
double energy = std::hypot(momentum, p.mass());
eic::ReconstructedParticle rec_part(p.pdgID(), energy, {p.psx(),p.psy(),p.psz()}, (double)p.charge(), p.mass());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment