ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::concepts::axis Concept Reference

Concept definition

template<typename A>
concept detray::concepts::axis = requires(const A ax) {
typename A::bounds_type;
typename A::binning_type;
typename A::scalar_type;
{ ax.label() } -> std::same_as<axis::label>;
{ ax.bounds() } -> std::same_as<axis::bounds>;
{ ax.binning() } -> std::same_as<axis::binning>;
{ ax.nbins() } -> std::same_as<dindex>;
{ ax.bin(typename A::scalar_type()) } -> std::same_as<dindex>;
{
ax.range(typename A::scalar_type(), darray<dindex, 2>())
} -> std::same_as<darray<int, 2>>;
{
ax.range(typename A::scalar_type(), darray<typename A::scalar_type, 2>())
} -> std::same_as<darray<int, 2>>;
{
ax.bin_edges(dindex())
} -> std::same_as<darray<typename A::scalar_type, 2>>;
{ ax.bin_edges() } -> detray::ranges::range_of<typename A::scalar_type>;
{ ax.span() } -> std::same_as<darray<typename A::scalar_type, 2>>;
{ ax.min() } -> std::same_as<typename A::scalar_type>;
{ ax.max() } -> std::same_as<typename A::scalar_type>;
}
Definition concepts.hpp:27
unsigned int dindex
Default index type.
Definition indexing.hpp:18
std::array< value_t, kDIM > darray
Fixed-size array container.
Definition containers.hpp:30