15 #include <boost/histogram.hpp> 22 #include <corsika/detail/framework/process/InteractionHistogram.hpp> 38 static double constexpr lower_edge_cms = 1e3, upper_edge_cms = 1e17;
39 static double constexpr lower_edge_lab = 1e3, upper_edge_lab = 1e21;
40 static unsigned int constexpr num_bins_lab = 18 * 10, num_bins_cms = 14 * 10;
48 decltype(detail::hist_factory(num_bins_lab, lower_edge_lab, upper_edge_lab));
50 hist_type inthist_cms_, inthist_lab_;
67 hist_type
const&
CMSHist()
const {
return inthist_cms_; }
69 hist_type
const&
labHist()
const {
return inthist_lab_; }
79 #include <corsika/detail/framework/process/InteractionHistogram.inl> Import and extend the phys::units package.
This functions saves a boost::histogram into a numpy file.
hist_type const & CMSHist() const
return histogram in c.m.s. frame
`, since they are used everywhere as integral part of the framework.
hist_type const & labHist() const
return histogram in laboratory frame
void fill(Code const projectile_id, HEPEnergyType const lab_energy, HEPEnergyType const mass_target)
fill both CMS and lab histograms at the same time
Interface to particle properties.
Class that creates and stores histograms of collisions , which is used by class InteractionCounter.