The Gaudi Framework
master (37c0b60a)
|
Definition of a default type of Histogram Axis It contains number of bins, min and max value plus a title and defines the basic type of Axis (non log) It may also contain labels for the bins. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Accumulators/StaticHistogram.h>
Public Types | |
using | ArithmeticType = Arithmetic |
Public Member Functions | |
Axis (unsigned int nBins=0, Arithmetic minValue=Arithmetic{}, Arithmetic maxValue=Arithmetic{}, std::string title={}, std::vector< std::string > labels={}) | |
Axis (Gaudi::Histo1DDef const &def) | |
unsigned int | index (Arithmetic value) const |
returns the bin number for a given value, ranging from 0 (underflow) to nBins+1 (overflow) More... | |
bool | inAcceptance (Arithmetic value) const |
says whether the given value is within the range of the axis More... | |
unsigned int | numBins () const |
void | setNumBins (unsigned int n) |
Arithmetic | minValue () const |
void | setMinValue (Arithmetic v) |
Arithmetic | maxValue () const |
void | setMaxValue (Arithmetic v) |
std::string const & | title () const |
void | setTitle (std::string const &t) |
std::vector< std::string > const | labels () const |
Public Attributes | |
unsigned int | nBins |
number of bins for this Axis FIXME : should be private and called m_nBins but will break backward compatibility with previous implementation. More... | |
Private Member Functions | |
void | recomputeRatio () |
Private Attributes | |
std::string | m_title |
title of this axis More... | |
Arithmetic | m_minValue |
min and max values on this axis More... | |
Arithmetic | m_maxValue |
Arithmetic | m_ratio |
precomputed ratio to convert a value into bin number equal to nBins/(maxValue-minValue). More... | |
std::vector< std::string > | m_labels |
labels for the bins More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, Axis const &axis) |
Definition of a default type of Histogram Axis It contains number of bins, min and max value plus a title and defines the basic type of Axis (non log) It may also contain labels for the bins.
Definition at line 229 of file StaticHistogram.h.
using Gaudi::Accumulators::Axis< Arithmetic >::ArithmeticType = Arithmetic |
Definition at line 231 of file StaticHistogram.h.
|
inline |
Definition at line 232 of file StaticHistogram.h.
|
inlineexplicit |
Definition at line 243 of file StaticHistogram.h.
|
inline |
says whether the given value is within the range of the axis
Definition at line 269 of file StaticHistogram.h.
|
inline |
returns the bin number for a given value, ranging from 0 (underflow) to nBins+1 (overflow)
Definition at line 247 of file StaticHistogram.h.
|
inline |
Definition at line 289 of file StaticHistogram.h.
|
inline |
Definition at line 282 of file StaticHistogram.h.
|
inline |
Definition at line 277 of file StaticHistogram.h.
|
inline |
Definition at line 272 of file StaticHistogram.h.
|
inlineprivate |
Definition at line 311 of file StaticHistogram.h.
|
inline |
Definition at line 283 of file StaticHistogram.h.
|
inline |
Definition at line 278 of file StaticHistogram.h.
|
inline |
Definition at line 273 of file StaticHistogram.h.
|
inline |
Definition at line 288 of file StaticHistogram.h.
|
inline |
Definition at line 287 of file StaticHistogram.h.
|
friend |
Definition at line 259 of file StaticHistogram.h.
|
private |
labels for the bins
Definition at line 309 of file StaticHistogram.h.
|
private |
Definition at line 302 of file StaticHistogram.h.
|
private |
min and max values on this axis
Definition at line 302 of file StaticHistogram.h.
|
private |
precomputed ratio to convert a value into bin number equal to nBins/(maxValue-minValue).
Only used for floating Arithmetic
Definition at line 307 of file StaticHistogram.h.
|
private |
title of this axis
Definition at line 293 of file StaticHistogram.h.
unsigned int Gaudi::Accumulators::Axis< Arithmetic >::nBins |
number of bins for this Axis FIXME : should be private and called m_nBins but will break backward compatibility with previous implementation.
Definition at line 298 of file StaticHistogram.h.