CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
HistoryObservationPlane.hpp
1 /*
2  * (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
3  *
4  * This software is distributed under the terms of the GNU General Public
5  * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6  * the license.
7  */
8 
9 #pragma once
10 
11 #include <boost/histogram.hpp>
12 
13 namespace corsika::history {
14 
15  namespace detail {
16  inline auto hist_factory() {
17  namespace bh = boost::histogram;
18  namespace bha = bh::axis;
19  auto h = bh::make_histogram(
20  bha::regular<float, bha::transform::log>{11 * 5, 1e0, 1e11, "muon energy"},
21  bha::regular<float, bha::transform::log>{11 * 5, 1e0, 1e11,
22  "projectile energy"},
23  bha::category<int, bh::use_default, bha::option::growth_t>{
24  {211, -211, 2212, -2212}, "projectile PDG"});
25  return h;
26  }
27  } // namespace detail
28 
29 } // namespace corsika::history