| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

# H2D.h

Go to the documentation of this file.

    00001 #ifndef HISTOGRAMSVC_H2D_H
    00002 #define HISTOGRAMSVC_H2D_H 1
    00003
    00004 #include "GaudiKernel/DataObject.h"
    00005 #include "Generic2D.h"
    00006 #include "GaudiPI.h"
    00007 #include "TH2D.h"
    00008
    00009 using namespace AIDA;
    00010
    00011 namespace Gaudi {
    00012   class Histogram1D;
    00013
    00020   class GAUDI_API Histogram2D : public DataObject, public Generic2D<IHistogram2D,TH2D>   {
    00021   public:
    00023     Histogram2D();
    00025     Histogram2D(TH2D* rep);
    00027     virtual ~Histogram2D() {}
    00029     bool  fill(double x,double y,double weight = 1.);
    00031     virtual bool setBinContents(int binIndexX,int binIndexY,int entries,
    00032                                 double height,double error,double centreX,
    00033                                 double centreY );
    00035     bool setRms( double rmsX,double rmsY );
    00036     // overwrite reset
    00037     bool reset();
    00039     void copyFromAida(const IHistogram2D& h);
    00041     virtual const CLID& clID() const { return classID(); }
    00042     static const CLID& classID()     { return CLID_H2D; }
    00043   protected:
    00044     // cache sumwx and sumwy  when setting contents since I don't have bin mean
    00045     double m_sumwx;
    00046     double m_sumwy;
    00047   };
    00048 }
    00049 #endif // HISTOGRAMSVC_H2D_H

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines