Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

IHistogram1D.h

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/GaudiKernel/GaudiKernel/IHistogram1D.h,v 1.1.1.1 2001/04/18 18:14:18 tlindner Exp $
00002 #ifndef INTERFACES_IHISTOGRAM1D_H
00003 #define INTERFACES_IHISTOGRAM1D_H 1
00004 
00005 
00006 // Include files
00007 #include "GaudiKernel/IHistogram.h"
00008 
00009 
00010 // Forward declarations
00011 class IAxis;
00012 
00013 
00014 //------------------------------------------------------------------------------
00015 //
00016 // ClassName:    IHistogram1D
00017 //  
00018 // Description:  Definition of the IHistogram1D interface class
00019 //
00020 //               All methods that accept a bin number as an argument will
00021 //               also accept the UNDERFLOW_BIN or OVERFLOW_BIN as the argument,
00022 //               and as a result will give the contents of the resulting
00023 //               UNDERFLOW_BIN or OVERFLOW_BIN bin.
00024 //               The in-range bin indeces are expected to be from 0 to N-1.
00025 //               See also <a href="http://wwwinfo.cern.ch/asd/lhc++/AIDA/">AIDA</a>
00026 //
00027 // Authors:      Pavel Binko, Dino Ferrero Merlino, Andreas Pfeiffer
00028 // Date:         22/03/2000
00029 //
00030 //------------------------------------------------------------------------------
00031 
00032 
00033 class IHistogram1D : virtual public IHistogram                                 {
00034 
00035 public:
00036 
00037 
00041 
00043   virtual void fill( double x, double weight = 1 )                          = 0;
00044 
00045 
00050 
00052   virtual int binEntries( int index ) const                                 = 0;
00053 
00055   virtual double binHeight( int index ) const                               = 0;
00056 
00058   virtual double binError( int index ) const                                = 0;
00059 
00060 
00064 
00067   virtual double mean() const                                               = 0;
00068 
00071   virtual double rms() const                                                = 0;
00072 
00073 
00077 
00079   virtual double minBinHeight() const                                       = 0;
00081   virtual int minBin() const                                                = 0;
00082 
00084   virtual double maxBinHeight() const                                       = 0;
00086   virtual int maxBin() const                                                = 0;
00087 
00088 
00092 
00094   virtual IAxis* xAxis() const                                              = 0;
00095 
00096 
00100 
00102   virtual int coordToIndex( double coord ) const                            = 0;
00103 
00104 };
00105 
00106 
00107 #endif    // INTERFACES_IHISTOGRAM1D_H

Generated at Wed Nov 21 12:22:04 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000