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 ; }
88 std::ostream& fillStream ( std::ostream& o )
const ;
102 bool ok ()
const {
return 0 < bins() && lowEdge() < highEdge() ; }
136 const std::string&
path ,
147 const std::string& dir ,
148 const std::string&
id ,
159 const std::string& dir ,
169 #endif // GAUDIKERNEL_HISTODEF_H
GAUDI_API std::ostream & operator<<(std::ostream &o, const Gaudi::Histo1DDef &histo)
the streamer operator for class Gaudi::Histo1DDef
GAUDI_API AIDA::IHistogram1D * book(IHistogramSvc *svc, const std::string &path, const Gaudi::Histo1DDef &hist)
helper function to book 1D-histogram
bool operator==(const Gaudi::StringKey &key1, const char(&key2)[N])
equality operator with C-arrays
void setHighEdge(const double value)
set high edge
void setBins(const int value)
set number of bis
double highEdge() const
get the high edge
double lowEdge() const
get the low edge
const std::string & title() const
get the title
void setTitle(const std::string &value)
set the title
Simple helper class for description of 1D-histogram The class is targeted to act as the primary "hist...
std::string m_title
Histogram title.
bool ok() const
check if all fields are "reasonable"
Definition of the IHistogramSvc interface class.
bool operator!=(const Gaudi::StringKey &key1, const char(&key2)[N])
non-equality operator with C-arrays
GAUDI_API std::string path(const AIDA::IBaseHistogram *aida)
get the path in THS for AIDA histogram
int bins() const
get the number of bins
This is a number of static methods for bootstrapping the Gaudi framework.
bool operator<(const Gaudi::Time &t1, const Gaudi::Time &t2)
int m_bins
Number of bins.
void setLowEdge(const double value)
set low edge