Skip to content
Snippets Groups Projects
Commit a7b82882 authored by Frank Gaede's avatar Frank Gaede
Browse files

- fix energy scale (use Gev) for (Sim)CalorimeterHits

parent d69f2091
No related branches found
No related tags found
No related merge requests found
......@@ -185,9 +185,9 @@ namespace DD4hep {
float pos[] = {c.x, c.y, c.z};
EVENT::MCParticle* lc_mcp = (EVENT::MCParticle*)lc_parts->getElementAt(trackID);
if ( hit_creation_mode == Geant4Sensitive::DETAILED_MODE )
lc_hit->addMCParticleContribution(lc_mcp, c.deposit, c.time, lc_mcp->getPDG(), pos);
lc_hit->addMCParticleContribution(lc_mcp, c.deposit/GeV, c.time, lc_mcp->getPDG(), pos);
else
lc_hit->addMCParticleContribution(lc_mcp, c.deposit, c.time);
lc_hit->addMCParticleContribution(lc_mcp, c.deposit/GeV, c.time);
}
}
return lc_coll;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment