1 #ifndef GAUDIALG_HISTOTOOL_H     2 #define GAUDIALG_HISTOTOOL_H 1    46   AIDA::IHistogram1D* 
plot1D( 
const double value, 
const std::string& title, 
const double low, 
const double high,
    47                               const unsigned long bins = 100, 
const double weight = 1.0 )
 const override    54   AIDA::IHistogram1D* 
plot1D( 
const double value, 
const HistoID& ID, 
const std::string& title, 
const double low,
    55                               const double high, 
const unsigned long bins = 100,
    56                               const double weight = 1.0 )
 const override {
    63   AIDA::IHistogram2D* 
plot2D( 
const double valueX, 
const double valueY, 
const std::string& title, 
const double lowX,
    64                               const double highX, 
const double lowY, 
const double highY, 
const unsigned long binsX = 50,
    65                               const unsigned long binsY = 50, 
const double weight = 1.0 )
 const override {
    70   AIDA::IHistogram2D* 
plot2D( 
const double valueX, 
const double valueY, 
const HistoID& ID, 
const std::string& title,
    71                               const double lowX, 
const double highX, 
const double lowY, 
const double highY,
    72                               const unsigned long binsX = 50, 
const unsigned long binsY = 50,
    73                               const double weight = 1.0 )
 const override {
    74     return GaudiHistoTool::plot2D( valueX, valueY, ID, title, lowX, highX, lowY, highY, binsX, binsY, weight );
    80   AIDA::IHistogram3D* 
plot3D( 
const double valueX, 
const double valueY, 
const double valueZ, 
const std::string& title,
    81                               const double lowX, 
const double highX, 
const double lowY, 
const double highY,
    82                               const double lowZ, 
const double highZ, 
const unsigned long binsX = 10,
    83                               const unsigned long binsY = 10, 
const unsigned long binsZ = 10,
    84                               const double weight = 1.0 )
 const override {
    85     return GaudiHistoTool::plot3D( valueX, valueY, valueZ, title, lowX, highX, lowY, highY, lowZ, highZ, binsX, binsY,
    90   AIDA::IHistogram3D* 
plot3D( 
const double valueX, 
const double valueY, 
const double valueZ, 
const HistoID& ID,
    91                               const std::string& title, 
const double lowX, 
const double highX, 
const double lowY,
    92                               const double highY, 
const double lowZ, 
const double highZ, 
const unsigned long binsX = 10,
    93                               const unsigned long binsY = 10, 
const unsigned long binsZ = 10,
    94                               const double weight = 1.0 )
 const override {
    95     return GaudiHistoTool::plot3D( valueX, valueY, valueZ, ID, title, lowX, highX, lowY, highY, lowZ, highZ, binsX,
    96                                    binsY, binsZ, weight );
   101   AIDA::IHistogram1D* 
book1D( 
const std::string& title, 
const double low = 0, 
const double high = 100,
   102                               const unsigned long bins = 100 )
 const override {
   107   AIDA::IHistogram2D* 
book2D( 
const std::string& title, 
const double lowX = 0, 
const double highX = 100,
   108                               const unsigned long binsX = 50, 
const double lowY = 0, 
const double highY = 100,
   109                               const unsigned long binsY = 50 )
 const override {
   114   AIDA::IHistogram3D* 
book3D( 
const std::string& title, 
const double lowX = 0, 
const double highX = 100,
   115                               const unsigned long binsX = 10, 
const double lowY = 0, 
const double highY = 100,
   116                               const unsigned long binsY = 10, 
const double lowZ = 0, 
const double highZ = 100,
   117                               const unsigned long binsZ = 10 )
 const override {
   122   AIDA::IHistogram1D* 
book1D( 
const HistoID& ID, 
const std::string& title = 
"", 
const double low = 0,
   123                               const double high = 100, 
const unsigned long bins = 100 )
 const override {
   129                               const double highX = 100, 
const unsigned long binsX = 50, 
const double lowY = 0,
   130                               const double highY = 100, 
const unsigned long binsY = 50 )
 const override {
   136                               const double highX = 100, 
const unsigned long binsX = 10, 
const double lowY = 0,
   137                               const double highY = 100, 
const unsigned long binsY = 10, 
const double lowZ = 0,
   138                               const double highZ = 100, 
const unsigned long binsZ = 10 )
 const override {
   139     return GaudiHistoTool::book3D( ID, title, lowX, highX, binsX, lowY, highY, binsY, lowZ, highZ, binsZ );
   143   AIDA::IHistogram1D* 
fill( AIDA::IHistogram1D* 
histo, 
const double value, 
const double weight,
   149   AIDA::IHistogram2D* 
fill( AIDA::IHistogram2D* 
histo, 
const double valueX, 
const double valueY, 
const double weight,
   155   AIDA::IHistogram3D* 
fill( AIDA::IHistogram3D* 
histo, 
const double valueX, 
const double valueY, 
const double valueZ,
   156                             const double weight, 
const std::string& title = 
"" )
 const override {
   189 #endif // GAUDIALG_HISTOTOOL_H 
AIDA::IHistogram2D * histo2D(const std::string &title) const
access the EXISTING 2D histogram by title return the pointer to existing 2D histogram or NULL ...
 
AIDA::IHistogram1D * book1D(const std::string &title, const double low=0, const double high=100, const unsigned long bins=100) const
book the 1D histogram 
 
AIDA::IHistogram1D * histo1D(const std::string &title) const
access the EXISTING 1D histogram by title return the pointer to existing 1D histogram or NULL ...
 
Definition of the basic interface. 
 
AIDA::IHistogram2D * book2D(const std::string &title, const double lowX=0, const double highX=100, const unsigned long binsX=50, const double lowY=0, const double highY=100, const unsigned long binsY=50) const
book the 2D histogram 
 
AIDA::IHistogram3D * plot3D(const double valueX, const double valueY, const double valueZ, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const double lowZ, const double highZ, const unsigned long binsX=10, const unsigned long binsY=10, const unsigned long binsZ=10, const double weight=1.0) const
fill the 3D histogram (book on demand) 
 
AIDA::IHistogram2D * plot2D(const double valueX, const double valueY, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const unsigned long binsX=50, const unsigned long binsY=50, const double weight=1.0) const
fill the 2D histogram (book on demand) 
 
bool histoExists(const std::string &title) const
check the existence AND validity of the histogram with given title 
 
AIDA::IHistogram3D * book3D(const std::string &title, const double lowX=0, const double highX=100, const unsigned long binsX=10, const double lowY=0, const double highY=100, const unsigned long binsY=10, const double lowZ=0, const double highZ=100, const unsigned long binsZ=10) const
book the 3D histogram 
 
AIDA::IHistogram1D * plot1D(const double value, const std::string &title, const double low, const double high, const unsigned long bins=100, const double weight=1.0) const
fill the 1D histogram (book on demand) 
 
ID class for Histogram and Ntuples. 
 
AIDA::IHistogram3D * histo3D(const std::string &title) const
access the EXISTING 3D histogram by title return the pointer to existing 3D histogram or NULL ...
 
virtual const std::string & name() const  =0
Retrieve the name of the instance. 
 
AIDA::IHistogram1D * fill(AIDA::IHistogram1D *histo, const double value, const double weight, const std::string &title="") const
fill the 1D histogram with the value and weight