3 #ifndef GAUDIKERNEL_HISTODEF_H
4 #define GAUDIKERNEL_HISTODEF_H 1
15 #include "GaudiKernel/Kernel.h"
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 ) ;
61 virtual ~Histo1DDef( );
66 double lowEdge ()
const {
return m_low ; }
68 double highEdge ()
const {
return m_high ; }
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 ; }
79 void setHighEdge (
const double value ) { m_high =
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 ;
93 bool operator< (
const Histo1DDef& right )
const ;
95 bool operator==(
const Histo1DDef& right )
const ;
97 bool operator!=(
const Histo1DDef& right )
const ;
102 bool ok ()
const {
return 0 < bins() && lowEdge() < highEdge() ; }
107 std::string m_title ;
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
helper namespace to collect useful definitions, types, constants and functions, related to manipulati...
GAUDI_API std::ostream & operator<<(std::ostream &o, const Gaudi::Histo1DDef &histo)
the streamer operator for class Gaudi::Histo1DDef
bool operator==(const Gaudi::StringKey &key1, const char(&key2)[N])
equality operator with C-arrays
Simple helper class for description of 1D-histogram The class is targeted to act as the primary "hist...
Definition of the IHistogramSvc interface class.
bool operator!=(const Gaudi::StringKey &key1, const char(&key2)[N])
non-equality operator with C-arrays
bool operator<(const Gaudi::Time &t1, const Gaudi::Time &t2)
GAUDI_API AIDA::IHistogram1D * book(IHistogramSvc *svc, const std::string &path, const Gaudi::Histo1DDef &hist)
helper function to book 1D-histogram
Helper functions to set/get the application return code.