Function RMGOutputTools::redistribute_gamma_energy¶
Function Documentation¶
-
void RMGOutputTools::redistribute_gamma_energy(std::map<int, std::vector<RMGDetectorHit*>> hits_map, ClusterPars cluster_pars, bool has_distance_to_surface)¶
Search for hits close to any gamma track and reassign the energy deposit to that track.
Gamma particles do not deposit energy, however as part of some interactions a very small “local” energy deposit happen, due to atomic binding energy. This method search through the gamma tracks and for each it looks for a nearby electron hit to instead assign this small local energy deposit too, this can avoid writing out the gamma tracks in the output scheme.