| # Gaudi Framework, version v21r7p1 |

Home |  | Generated: 15 Feb 2010

# P1D.h

Go to the documentation of this file.

    00001 #ifndef GAUDISVC_P1D_H
    00002 #define GAUDISVC_P1D_H
    00003
    00004 #include "GaudiKernel/DataObject.h"
    00005 #include "GaudiPI.h"
    00006 #include "Generic1D.h"
    00007 #include "TProfile.h"
    00008
    00009 /*
    00010  *    Gaudi namespace
    00011  */
    00012 namespace Gaudi {
    00013
    00020   class GAUDI_API Profile1D : public DataObject, public Generic1D<AIDA::IProfile1D,TProfile>  {
    00021     typedef AIDA::IAnnotation IAnnotation;
    00022   private:
    00023     void init(const std::string& title, bool initialize_axis=true);
    00024   public:
    00026     Profile1D();
    00028     Profile1D(TProfile* rep);
    00030     virtual ~Profile1D()      {  }
    00032     virtual bool fill(double x, double y, double weight = 1.);
    00033     virtual bool setBinContents(int i, int entries,double height,double error, double spread, double centre);
    00035     virtual const CLID& clID() const { return Gaudi::Profile1D::classID(); }
    00036     static const CLID& classID()     { return CLID_ProfileH; }
    00037   }; // end class IProfile1D
    00038 } // end namespace Gaudi
    00039
    00040 #endif // GAUDISVC_P1D_H