LDMX Software
Grid and axis

The Grid template class provides a generic binned Grid implementation in $N$ dimensions. Grid accepts a variadic list of Axis types, where the number of axes equals the number of desired dimensions of the Grid.

Axis

Axis accepts two template parameters:

template <AxisType type,
AxisBoundaryType bdt = AxisBoundaryType::Open>
class Axis;

where

enum class AxisBoundaryType { Open, Bound, Closed };
enum class AxisType { Equidistant, Variable };

AxisType

AxisType defines whether an axis is fully determined by $x_\text{min}$, $x_\text{max}$ and $N_\text{bins}$, or if there are variable bin boundaries $x_i =x_1, \ldots x_N