00001 #ifndef FRANKS2HISTOD__HH
00002 #define FRANKS2HISTOD__HH
00003
00004 #ifndef __ROOT__
00005
00006 #include <Stiostream.h>
00007 #include <math.h>
00008 #include <stddef.h>
00009
00010
00011 class franks2HistoD {
00012 private:
00013
00014 char* mC1;
00015 char* mC2;
00016
00017 int mXbins;
00018 double mXmin;
00019 double mXmax;
00020 double mXstep;
00021 int mXpos;
00022
00023 int mYbins;
00024 double mYmin;
00025 double mYmax;
00026 double mYstep;
00027 double *vec;
00028 int mYpos;
00029
00030 int mBins;
00031
00032 int mPos;
00033 int mEntries;
00034
00035 public:
00036
00037 franks2HistoD(const char* c1, const char* c2,
00038 int bins1, double xmin1, double xmax1,
00039 int bins2, double xmin2, double xmax2);
00040 ~franks2HistoD();
00041
00042
00043 void Add( franks2HistoD* , franks2HistoD* , double w1=1., double w2=1., const char* c="");
00044 void Divide( franks2HistoD* , franks2HistoD* , double w1=1., double w2=1., const char* c="");
00045 void Fill( double value1, double value2, double weight=1.);
00046 int GetBin(double value);
00047 void Scale(double scale);
00048
00049 void Draw(const char* c="");
00050 double GetBinContent(int bin) { return vec[bin]; }
00051 double GetBinCenter(int bin);
00052 int GetNbinsX() { return mBins; }
00053 double GetMean();
00054 double GetMaximum();
00055 double GetMinimum();
00056 double GetRMS();
00057 void Reset(const char* c="");
00058 void SetDirectory(int dummy) { };
00059 void Sumw2() {};
00060 double Integral();
00061 double GetEntries() { return mEntries; }
00062 };
00063
00064 #endif // __ROOT__
00065 #endif // FRANKS2DHISTO_HH