Go to the documentation of this file.
38 Histo1DDef(
double low,
double high,
int bins = 100, std::string title =
"" );
45 Histo1DDef( std::string title =
"",
double low = 0.0,
double high = 1.0,
int bins = 100 );
51 int bins()
const {
return m_bins; }
53 const std::string&
title()
const {
return m_title; }
59 void setBins(
int value ) { m_bins = value; }
61 void setTitle( std::string value ) { m_title = std::move( value ); }
63 std::ostream& fillStream( std::ostream& o )
const;
69 bool ok()
const {
return 0 < bins() && lowEdge() < highEdge(); }
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