The Gaudi Framework  master (d98a2936)
Gaudi::Accumulators::CustomAxis Struct Reference
Collaboration diagram for Gaudi::Accumulators::CustomAxis:

Public Types

using Category = Gaudi::Tests::Histograms::CustomAxis::Category
 
using ArithmeticType = Category
 

Public Member Functions

 CustomAxis ()=default
 
unsigned int numBins () const
 number of bins for this Axis More...
 
unsigned int index (Category value) const
 

Public Attributes

std::underlying_type_t< CategoryminValue = 0
 min and max values on this axis More...
 
std::underlying_type_t< CategorymaxValue = 4
 
std::string title { "Category" }
 title of this axis More...
 
std::vector< std::string > labels { "Simple", "Complex", "Bad", "Wrong" }
 labels for the bins More...
 

Friends

std::ostream & operator<< (std::ostream &o, CustomAxis const &axis)
 

Detailed Description

Definition at line 38 of file HistogramsTests.cpp.

Member Typedef Documentation

◆ ArithmeticType

◆ Category

Constructor & Destructor Documentation

◆ CustomAxis()

Gaudi::Accumulators::CustomAxis::CustomAxis ( )
default

Member Function Documentation

◆ index()

unsigned int Gaudi::Accumulators::CustomAxis::index ( Category  value) const
inline

Definition at line 52 of file HistogramsTests.cpp.

52 { return static_cast<unsigned int>( value ) + 1; }

◆ numBins()

unsigned int Gaudi::Accumulators::CustomAxis::numBins ( ) const
inline

number of bins for this Axis

Definition at line 44 of file HistogramsTests.cpp.

44 { return 4; }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
CustomAxis const &  axis 
)
friend

Definition at line 53 of file HistogramsTests.cpp.

53  {
54  return o << axis.numBins() << " " << axis.minValue << " " << axis.maxValue;
55  }

Member Data Documentation

◆ labels

std::vector<std::string> Gaudi::Accumulators::CustomAxis::labels { "Simple", "Complex", "Bad", "Wrong" }

labels for the bins

Definition at line 50 of file HistogramsTests.cpp.

◆ maxValue

std::underlying_type_t<Category> Gaudi::Accumulators::CustomAxis::maxValue = 4

Definition at line 46 of file HistogramsTests.cpp.

◆ minValue

std::underlying_type_t<Category> Gaudi::Accumulators::CustomAxis::minValue = 0

min and max values on this axis

Definition at line 46 of file HistogramsTests.cpp.

◆ title

std::string Gaudi::Accumulators::CustomAxis::title { "Category" }

title of this axis

Definition at line 48 of file HistogramsTests.cpp.


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