The Gaudi Framework  v36r9p1 (5c15b2bb)
Gaudi::Accumulators::details Namespace Reference

Namespaces

 MsgCounter
 

Classes

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 28 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 33 of file Histogram.h.

Function Documentation

◆ requireValidTitle()

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

Definition at line 44 of file Histogram.h.

44  {
45  if ( !sv.empty() && ( std::isspace( sv.back() ) || std::isspace( sv.front() ) ) ) {
46  throw GaudiException(
47  fmt::format( "Histogram title \'{}\' has whitespace at front or back -- please remove", sv ),
48  "Gaudi::Accumulators", StatusCode::FAILURE );
49  }
50  }
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