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