All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Gaudi::Histos Namespace Reference

collection of simple utilities to deal with histograms More...

Functions

GAUDI_API AIDA::IHistogram1D * book (IHistogramSvc *svc, const std::string &path, const Gaudi::Histo1DDef &hist)
 helper function to book 1D-histogram More...
 
GAUDI_API AIDA::IHistogram1D * book (IHistogramSvc *svc, const std::string &dir, const std::string &id, const Gaudi::Histo1DDef &hist)
 helper function to book 1D-histogram More...
 
GAUDI_API AIDA::IHistogram1D * book (IHistogramSvc *svc, const std::string &dir, const int id, const Gaudi::Histo1DDef &hist)
 helper function to book 1D-histogram More...
 

Detailed Description

collection of simple utilities to deal with histograms

Author
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Date
2007-09-17

Function Documentation

AIDA::IHistogram1D * Gaudi::Histos::book ( IHistogramSvc svc,
const std::string &  path,
const Gaudi::Histo1DDef hist 
)

helper function to book 1D-histogram

Parameters
svcpointer to Histogram Service
pathfull path in Histogram Data Store
histhistogram desctription

Definition at line 132 of file HistoDef.cpp.

135 {
136  if ( 0 == svc ) { return 0 ; }
137  return svc -> book
138  ( path ,
139  hist.title() , hist.bins() , hist.lowEdge() , hist.lowEdge() ) ;
140 }
GAUDI_API AIDA::IHistogram1D * book(IHistogramSvc *svc, const std::string &path, const Gaudi::Histo1DDef &hist)
helper function to book 1D-histogram
Definition: HistoDef.cpp:132
double lowEdge() const
get the low edge
Definition: HistoDef.h:66
const std::string & title() const
get the title
Definition: HistoDef.h:72
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
Definition: HistoDef.h:70
AIDA::IHistogram1D * Gaudi::Histos::book ( IHistogramSvc svc,
const std::string &  dir,
const std::string &  id,
const Gaudi::Histo1DDef hist 
)

helper function to book 1D-histogram

Parameters
svcpointer to Histogram Service
dirdirectory path in Histogram Data Store
idhistorgam identifier
histhistogram desctription

Definition at line 151 of file HistoDef.cpp.

155 {
156  if ( 0 == svc ) { return 0 ; }
157  return svc -> book
158  ( dir , id ,
159  hist.title() , hist.bins() , hist.lowEdge() , hist.lowEdge() ) ;
160 }
GAUDI_API AIDA::IHistogram1D * book(IHistogramSvc *svc, const std::string &path, const Gaudi::Histo1DDef &hist)
helper function to book 1D-histogram
Definition: HistoDef.cpp:132
double lowEdge() const
get the low edge
Definition: HistoDef.h:66
const std::string & title() const
get the title
Definition: HistoDef.h:72
int bins() const
get the number of bins
Definition: HistoDef.h:70
AIDA::IHistogram1D * Gaudi::Histos::book ( IHistogramSvc svc,
const std::string &  dir,
const int  id,
const Gaudi::Histo1DDef hist 
)

helper function to book 1D-histogram

Parameters
svcpointer to Histogram Service
dirdirectory path in Histogram Data Store
idhistorgam identifier
histhistogram desctription

Definition at line 171 of file HistoDef.cpp.

175 {
176  if ( 0 == svc ) { return 0 ; }
177  return svc -> book
178  ( dir , id ,
179  hist.title() , hist.bins() , hist.lowEdge() , hist.lowEdge() ) ;
180 }
GAUDI_API AIDA::IHistogram1D * book(IHistogramSvc *svc, const std::string &path, const Gaudi::Histo1DDef &hist)
helper function to book 1D-histogram
Definition: HistoDef.cpp:132
double lowEdge() const
get the low edge
Definition: HistoDef.h:66
const std::string & title() const
get the title
Definition: HistoDef.h:72
int bins() const
get the number of bins
Definition: HistoDef.h:70