 |
Belle II Software
release-05-02-19
|
19 namespace TrackFindingCDC {
22 template<
class T,
class ATag = T>
23 class ContinuousValue {
26 using This = ContinuousValue<T, ATag>;
35 operator const T& ()
const {
return m_value; }
38 using Array = std::array<T, 2>;
43 {
return {{
This(bounds.front()),
This(bounds.back()) }}; }
static std::array< This, 2 > getRange(const Array &bounds)
Extract the range from an array providing the discrete values.
std::array< T, 2 > Array
Mock array type to be a drop in replacement for the discrete values.
Abstract base class for different kinds of events.
ContinuousValue< T, ATag > This
Shortcut for the class itself.
T m_value
Memory for the underlying value.
ContinuousValue()=default
Allow default construction.