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_;
64 int A = 0,
int Z = 0);
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
The cascade namespace assembles all objects needed to simulate full particles cascades.
hist_type const & labHist() const
return histogram in laboratory frame
Interface to particle properties.
void fill(Code projectile_id, HEPEnergyType lab_energy, HEPEnergyType mass_target, int A=0, int Z=0)
fill both CMS and lab histograms at the same time
Class that creates and stores histograms of collisions , which is used by class InteractionCounter.