1 #ifndef GAUDIKERNEL_HISTODEF_H
2 #define GAUDIKERNEL_HISTODEF_H 1
13 #include "GaudiKernel/Kernel.h"
18 namespace AIDA {
class IHistogram1D ; }
44 std::string title =
"" );
53 ( std::string title =
"" ,
59 virtual ~Histo1DDef( ) =
default;
64 double lowEdge ()
const {
return m_low ; }
66 double highEdge ()
const {
return m_high ; }
68 int bins ()
const {
return m_bins ; }
70 const std::string& title ()
const {
return m_title ; }
75 void setLowEdge (
double value ) { m_low =
value ; }
77 void setHighEdge (
double value ) { m_high =
value ; }
79 void setBins (
int value ) { m_bins =
value ; }
81 void setTitle ( std::string
value ) { m_title = std::move(value); }
86 std::ostream& fillStream ( std::ostream& o )
const ;
91 bool operator< (
const Histo1DDef& right )
const ;
93 bool operator==(
const Histo1DDef& right )
const ;
95 bool operator!=(
const Histo1DDef& right )
const ;
100 bool ok ()
const {
return 0 < bins() && lowEdge() < highEdge() ; }
105 std::string m_title ;
134 const std::string&
path ,
145 const std::string& dir ,
146 const std::string&
id ,
157 const std::string& dir ,
167 #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.