25 #include <gsl/gsl_rng.h>
33 , _energy_threshold(0.95
e-6)
36 std::cout <<
Name() <<
" random seed: " << seed << std::endl;
42 std::cout <<
"Creating PHG4MvtxDigitizer with name = " << name << std::endl;
62 std::cout <<
PHWHERE <<
"DST Node missing, doing nothing." << std::endl;
74 std::cout <<
"====================== PHG4MvtxDigitizer::InitRun() =====================" << std::endl;
77 std::cout <<
" Max ADC in Layer #" << miter.first <<
" = " << miter.second << std::endl;
81 std::cout <<
" Energy per ADC in Layer #" << miter.first <<
" = " << 1.0e6 * miter.second <<
" keV" << std::endl;
83 std::cout <<
"===========================================================================" << std::endl;
110 std::cout <<
"Found CYLINDERGEOM_MVTX node" << std::endl;
115 layeriter != layerrange.second;
118 int layer = layeriter->second->get_layer();
119 float thickness = (layeriter->second)->get_pixel_thickness();
120 float pitch = (layeriter->second)->get_pixel_x();
121 float length = (layeriter->second)->get_pixel_z();
123 float minpath = pitch;
124 if (length < minpath)
128 if (thickness < minpath)
132 float mip_e = 0.003876 * minpath;
136 std::cout <<
"mip_e = " << mip_e << std::endl;
159 TrkrHitSetContainer *trkrhitsetcontainer = findNode::getClass<TrkrHitSetContainer>(topNode,
"TRKR_HITSET");
160 if (!trkrhitsetcontainer)
162 std::cout <<
"Could not locate TRKR_HITSET node, quit! " << std::endl;
167 auto hittruthassoc = findNode::getClass<TrkrHitTruthAssoc>(topNode,
"TRKR_HITTRUTHASSOC");
174 hitset_iter != hitset_range.second;
183 std::cout <<
"PHG4MvtxDigitizer: found hitset with key: " << hitsetkey <<
" in layer " << layer << std::endl;
189 std::set<TrkrDefs::hitkey> hits_rm;
191 hit_iter != hit_range.second;
194 TrkrHit *hit = hit_iter->second;
200 std::cout <<
" PHG4MvtxDigitizer: found hit with key: " << hit_iter->first <<
" and signal " << hit->
getEnergy() / TrkrDefs::MvtxEnergyScaleup <<
" in layer " << layer << std::endl;
208 std::cout <<
" remove hit, below energy threshold of " <<
_energy_threshold << std::endl;
221 hits_rm.insert(hit_iter->first);
225 for (
const auto &key : hits_rm)
229 std::cout <<
" PHG4MvtxDigitizer: remove hit with key: " << key << std::endl;
234 hittruthassoc->removeAssoc(hitsetkey, key);