15 #include <phparameter/PHParameterInterface.h>
23 #include <gsl/gsl_randist.h>
24 #include <gsl/gsl_rng.h>
36 constexpr
const T& clamp(
const T&
v,
const T& lo,
const T& hi)
38 return (v < lo) ? lo : (hi <
v) ? hi
50 m_rng.reset(gsl_rng_alloc(gsl_rng_mt19937));
69 <<
"PHG4MicromegasDigitizer::InitRun\n"
71 <<
" m_enc: " <<
m_enc <<
" electrons\n"
72 <<
" m_pedestal: " <<
m_pedestal <<
" electrons\n"
96 auto trkrhitsetcontainer = findNode::getClass<TrkrHitSetContainer>(topNode,
"TRKR_HITSET");
97 assert(trkrhitsetcontainer);
100 auto hittruthassoc = findNode::getClass<TrkrHitTruthAssoc>(topNode,
"TRKR_HITTRUTHASSOC");
104 for (
auto hitset_it = hitset_range.first; hitset_it != hitset_range.second; ++hitset_it)
114 std::set<TrkrDefs::hitkey> removed_keys;
117 for (
auto hit_it = hit_range.first; hit_it != hit_range.second; ++hit_it)
139 removed_keys.insert(key);
144 for (
const auto& key : removed_keys)
149 hittruthassoc->removeAssoc(hitsetkey, key);