BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSBH4DTypeDefs.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef BDSBH4DTYPEDEFS_H
19#define BDSBH4DTYPEDEFS_H
20
21#ifdef USE_BOOST
22#include <boost/histogram.hpp>
23#include <boost/variant.hpp>
24
25#ifndef __ROOTDOUBLE__
26typedef double boost_histogram_storage_type;
27#else
28typedef double boost_histogram_storage_type;
29#endif
30
31typedef boost::histogram::axis::regular<double, boost::use_default, boost::use_default, boost::use_default> boost_histogram_linear_axis;
32typedef boost::histogram::axis::regular<double, boost::histogram::axis::transform::log, boost::use_default, boost::use_default> boost_histogram_log_axis;
33typedef boost::histogram::axis::variable<double, boost::use_default, boost::use_default, std::allocator<double> > boost_histogram_variable_axis;
34
35typedef boost::variant<boost_histogram_linear_axis*, boost_histogram_log_axis*, boost_histogram_variable_axis*> boost_histogram_axes_variant;
36
37typedef boost::histogram::histogram<std::tuple<boost_histogram_linear_axis, boost_histogram_linear_axis, boost_histogram_linear_axis, boost_histogram_linear_axis >, boost::histogram::storage_adaptor<std::vector<boost_histogram_storage_type, std::allocator<boost_histogram_storage_type> > > > boost_histogram_linear;
38typedef boost::histogram::histogram<std::tuple<boost_histogram_linear_axis, boost_histogram_linear_axis, boost_histogram_linear_axis, boost_histogram_log_axis >, boost::histogram::storage_adaptor<std::vector<boost_histogram_storage_type, std::allocator<boost_histogram_storage_type> > > > boost_histogram_log;
39typedef boost::histogram::histogram<std::tuple<boost_histogram_linear_axis, boost_histogram_linear_axis, boost_histogram_linear_axis, boost_histogram_variable_axis >, boost::histogram::storage_adaptor<std::vector<boost_histogram_storage_type, std::allocator<boost_histogram_storage_type> > > > boost_histogram_variable;
40
41#endif
42
43#endif