The Gaudi Framework  master (3c045658)
Loading...
Searching...
No Matches
Gaudi::Accumulators::details Namespace Reference

Namespaces

namespace  MsgCounter

Classes

struct  FormatCounterDefault
 Default formating for counter names, only calling std::format on the text given at construction and passing the histo index as argument. More...
struct  CounterArrayInternal
 internal class implementing an array of counters 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  HistogramArrayInternal
 internal class implementing an "array" of histograms More...
struct  FormatHistDefaultT
 Default formating for histogram names and title, only calling fmt::format on the text given at construction and passing the key as argument. More...
class  HistogramMapInternal
 internal class implementing a map of histograms More...

Functions

void requireValidTitle (std::string_view sv)

Function Documentation

◆ requireValidTitle()

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

Definition at line 68 of file StaticHistogram.h.

68 {
69 if ( !sv.empty() && ( std::isspace( sv.back() ) || std::isspace( sv.front() ) ) ) {
70 throw GaudiException(
71 std::format( "Histogram title \'{}\' has whitespace at front or back -- please remove", sv ),
72 "Gaudi::Accumulators", StatusCode::FAILURE );
73 }
74 }
Define general base for Gaudi exception.
constexpr static const auto FAILURE
Definition StatusCode.h:100