diff --git a/Processes/InteractionCounter/InteractionHistogram.cc b/Processes/InteractionCounter/InteractionHistogram.cc index 8e69643170f5f96578c3774779ba488cfd412adf..8ae626ffe57d1b0dd1cc016667b409a26b697f9a 100644 --- a/Processes/InteractionCounter/InteractionHistogram.cc +++ b/Processes/InteractionCounter/InteractionHistogram.cc @@ -13,6 +13,10 @@ using namespace corsika::process::interaction_counter; +InteractionHistogram::InteractionHistogram() + : inthist_cms_{detail::hist_factory(num_bins_cms, lower_edge_cms, upper_edge_cms)} + , inthist_lab_{detail::hist_factory(num_bins_lab, lower_edge_lab, upper_edge_lab)} {} + void InteractionHistogram::fill(particles::Code projectile_id, units::si::HEPEnergyType lab_energy, units::si::HEPEnergyType mass_target, int A, int Z) { @@ -59,7 +63,3 @@ InteractionHistogram InteractionHistogram::operator+(InteractionHistogram other) return other; } - -InteractionHistogram::InteractionHistogram() - : inthist_cms_{detail::hist_factory(num_bins_cms, lower_edge_cms, upper_edge_cms)} - , inthist_lab_{detail::hist_factory(num_bins_lab, lower_edge_lab, upper_edge_lab)} {}