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 =
"" ,
64 double lowEdge ()
const {
return m_low ; }
68 int bins ()
const {
return m_bins ; }
70 const std::string&
title ()
const {
return m_title ; }
86 std::ostream& fillStream ( std::ostream& o )
const ;
100 bool ok ()
const {
return 0 < bins() && lowEdge() < highEdge() ; }
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...
void setBins(int value)
set number of bis
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
double highEdge() const
get the high edge
double lowEdge() const
get the low edge
void setHighEdge(double value)
set high edge
const std::string & title() const
get 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
void setTitle(std::string value)
set the title
int bins() const
get the number of bins
bool operator<(const Gaudi::Time &t1, const Gaudi::Time &t2)
int m_bins
Number of bins.
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.
void setLowEdge(double value)
set low edge