3 #ifndef GAUDIKERNEL_HISTODEF_H
4 #define GAUDIKERNEL_HISTODEF_H 1
20 namespace AIDA {
class IHistogram1D ; }
45 const int bins = 100 ,
46 const std::string& title =
"" );
55 (
const std::string& title =
"" ,
56 const double low = 0.0 ,
57 const double high = 1.0 ,
58 const int bins = 100 ) ;
66 double lowEdge ()
const {
return m_low ; }
70 int bins ()
const {
return m_bins ; }
72 const std::string&
title ()
const {
return m_title ; }
77 void setLowEdge (
const double value ) { m_low = value ; }
81 void setBins (
const int value ) { m_bins = value ; }
83 void setTitle (
const std::string& value ) { m_title = value ; }
88 std::ostream& fillStream ( std::ostream& o )
const ;
102 bool ok ()
const {
return 0 < bins() && lowEdge() < highEdge() ; }
119 operator<<( std::ostream& o ,
const Gaudi::Histo1DDef& histo ) ;
136 const std::string&
path ,
137 const Gaudi::Histo1DDef& hist ) ;
147 const std::string& dir ,
148 const std::string&
id ,
149 const Gaudi::Histo1DDef& hist ) ;
159 const std::string& dir ,
161 const Gaudi::Histo1DDef& hist ) ;
169 #endif // GAUDIKERNEL_HISTODEF_H