Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
11 #ifndef GAUDIKERNEL_HISTODEF_H
12 #define GAUDIKERNEL_HISTODEF_H 1
50 Histo1DDef(
double low,
double high,
int bins = 100, std::string title =
"" );
58 Histo1DDef( std::string title =
"",
double low = 0.0,
double high = 1.0,
int bins = 100 );
67 int bins()
const {
return m_bins; }
69 const std::string&
title()
const {
return m_title; }
78 void setBins(
int value ) { m_bins = value; }
80 void setTitle( std::string value ) { m_title = std::move( value ); }
85 std::ostream& fillStream( std::ostream& o )
const;
98 bool ok()
const {
return 0 < bins() && lowEdge() < highEdge(); }
151 #endif // GAUDIKERNEL_HISTODEF_H
void setLowEdge(double value)
set low edge
void setTitle(std::string value)
set the title
void setHighEdge(double value)
set high edge
GAUDI_API AIDA::IHistogram1D * book(IHistogramSvc *svc, const std::string &path, const Gaudi::Histo1DDef &hist)
helper function to book 1D-histogram
bool ok() const
check if all fields are "reasonable"
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
double highEdge() const
get the high edge
int m_bins
Number of bins.
std::string m_title
Histogram title.
bool operator<(const Gaudi::Histo1DDef &left, const Gaudi::Histo1DDef &right)
double lowEdge() const
get the low edge
std::ostream & operator<<(std::ostream &o, const Gaudi::StringKey &key)
printout of the object reply on the native printout for the string
int bins() const
get the number of bins
const std::string & title() const
get the title
void setBins(int value)
set number of bis