The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::Accumulators::HistogramWrapperInternal< HistogramType, Seq > Class Template Reference

A Wrapper of a static Histogram base class using Properties to define title and axis. More...

Detailed Description

template<typename HistogramType, typename Seq = std::make_integer_sequence<unsigned int, std::tuple_size_v<typename HistogramType::AxisTupleType>>>
class Gaudi::Accumulators::HistogramWrapperInternal< HistogramType, Seq >

A Wrapper of a static Histogram base class using Properties to define title and axis.

Practically, this is an optional of the underlying static Histogram with creation on demand, via the createHistogram method so one can wait that properties' values are known. By default creation will happen at initialization of the owner, but this can be disabled at construction time, in which case the user has to call createHistogram manually. Note that disabling automatic initialization requires using the plain constructor and passing title and axis. They can of course be empty and overwritten via Properties. But there was no easier way providing char* convert automagically to bool in C++ creating potential confusion between title on doNotInitialize

This wrapper expects the Axis type of the Histogram to be usable in a Gaudi Property and thus to define the required Grammar, parse function and operator<< It also requires the underlying Histogram type to define :

  • AxisTupleType : a tuple type of all Axis types
  • AxisTupleArithmeticType : a tuple type of all Axis Arithmetic types FIXME : use concepts when available

Definition at line 41 of file HistogramWrapper.h.


The documentation for this class was generated from the following file: