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

H1D.h

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/GaudiSvc/src/HistogramSvc/H1D.h,v 1.1.1.2 2001/04/18 18:32:50 tlindner Exp $
00002 #ifndef HISTOGRAMSVC_H1D_H
00003 #define HISTOGRAMSVC_H1D_H 1
00004 
00005 
00006 // Include files
00007 #include "GaudiKernel/Kernel.h"
00008 #include "GaudiKernel/StatusCode.h"
00009 #include "GaudiKernel/DataObject.h"
00010 #include "GenHisto1D.h"
00011 
00012 #include "HTL/Histograms.h"
00013 
00014 //------------------------------------------------------------------------------
00015 //
00016 // ClassName:   H1D 
00017 //  
00018 // Description: Definition of 1D histogram with fixed binning
00019 //
00020 //              It implements functions form the interface IHisto1D
00021 // 
00022 //              It implements functions from IHistoBase
00023 //              - print functions, which convert the histogram
00024 //                into ASCII graphical representation
00025 //              - operator<< , which calls internally the print() function
00026 //              - write functions, which convert the histogram
00027 //                into ASCI table (containing numbers with e.g. bin height)
00028 //
00029 // Author:      Pavel Binko
00030 //
00031 //------------------------------------------------------------------------------
00032 
00033 
00034 class H1D : public GenHisto1D< Histo1D >                                       {
00035 
00036 public:
00037 
00038   //----------------------------------------------------------------------------
00039   // Constructors with all parameters
00040 
00041   H1D( const std::string& title,                 // HTL   - histogram title
00042        const std::string& histoID,               // GAUDI - histogram identifier
00043        int nBinsX,                               // HTL   - X-axis
00044        double lowX,
00045        double highX,
00046        End_Point_Convention epc = RIGHT_OPEN );  // HTL   - end point convention
00047 
00048   H1D( const std::string& title,                 // HTL   - histogram title
00049        int histoID,                              // GAUDI - histogram identifier
00050        int nBinsX,                               // HTL   - X-axis
00051        double lowX,
00052        double highX,
00053        End_Point_Convention epc = RIGHT_OPEN );  // HTL   - end point convention
00054 
00055   H1D( const std::string& title,                 // HTL   - histogram title
00056        Histo1D& h,                               // concrete HTL histogram
00057        int nBinsX,                               // HTL   - X-axis
00058        double lowX,
00059        double highX,
00060        End_Point_Convention epc = RIGHT_OPEN );  // HTL   - end point convention
00061 
00062 public:
00063   
00066   virtual const CLID& clID() const                    { return H1D::classID(); }
00067   static const CLID& classID()                              { return CLID_H1D; }
00068 
00069 };
00070 
00071 
00072 #endif    // HISTOGRAMSVC_H1D_H

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