The Gaudi Framework  v37r1 (a7f61348)
Gaudi::Accumulators::details Namespace Reference

Namespaces

 MsgCounter
 

Classes

struct  CounterArrayInternal
 internal class implementing an array of counters More...
 
struct  FormatCounterDefault
 Default formating for counter names, only calling fmt::format on the text given at construction and passing the histo index as argument. More...
 
struct  FormatHistDefault
 Default formating for histogram names and title, only calling fmt::format on the text given at construction and passing the histo index as argument. More...
 
struct  GetTuple
 
struct  GetTuple< Type, 1 >
 
struct  HistogramArrayInternal
 internal class implementing an array of histograms More...
 

Typedefs

template<std::size_t , typename T >
using alwaysT = T
 
template<typename Type , unsigned int ND>
using GetTuple_t = typename GetTuple< Type, ND >::type
 

Functions

void requireValidTitle (std::string_view sv)
 

Typedef Documentation

◆ alwaysT

template<std::size_t , typename T >
using Gaudi::Accumulators::details::alwaysT = typedef T

Definition at line 30 of file Histogram.h.

◆ GetTuple_t

template<typename Type , unsigned int ND>
using Gaudi::Accumulators::details::GetTuple_t = typedef typename GetTuple<Type, ND>::type

Definition at line 35 of file Histogram.h.

Function Documentation

◆ requireValidTitle()

void Gaudi::Accumulators::details::requireValidTitle ( std::string_view  sv)
inline

Definition at line 46 of file Histogram.h.

46  {
47  if ( !sv.empty() && ( std::isspace( sv.back() ) || std::isspace( sv.front() ) ) ) {
48  throw GaudiException(
49  fmt::format( "Histogram title \'{}\' has whitespace at front or back -- please remove", sv ),
50  "Gaudi::Accumulators", StatusCode::FAILURE );
51  }
52  }
GaudiException
Definition: GaudiException.h:31
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:119
std::isspace
T isspace(T... args)
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101