Commit 1828dc75 authored by Whitney Armstrong's avatar Whitney Armstrong

Fixed units.

- Note that the usage of Gaudi's eV probably mirrors the G4/CHLEP units so it
works fine.
- The internal juggler units are (GeV, mm, ns, rad)
parent ab57c5af
Pipeline #4974 passed with stages
in 8 minutes and 44 seconds
......@@ -97,7 +97,7 @@ public:
if (it != hit_groups.end()) {
size_t i = 0;
for (auto git = it->second.begin(); git != it->second.end(); ++git, ++i) {
if (std::abs(time - git->time) <= m_hitTimeWindow) {
if (std::abs(time - git->time) <= (m_hitTimeWindow/ns)) {
git->npe += 1;
git->signal += amp;
break;
......@@ -115,7 +115,7 @@ public:
// build hit
for (auto &it : hit_groups) {
for (auto &data : it.second) {
eic::RawPMTHit hit(it.first, (unsigned) data.signal, (unsigned) data.time/m_timeStep);
eic::RawPMTHit hit(it.first, (unsigned) data.signal, (unsigned) data.time/(m_timeStep/ns));
raw.push_back(hit);
}
}
......
Markdown is supported
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