#ifndef HHISTARRAY_H
#define HHISTARRAY_H
#include "TNamed.h"
#include "TString.h"
#include "TArrayI.h"
#include "TObjArray.h"
#include "TH1.h"
#include "TH2.h"
#include "hmonhist.h"
#include "TLegend.h"
class HNamedLegend;
class HLegendDrawer : public TNamed {
TObjArray* array;
protected:
public:
HLegendDrawer(const Char_t* name ="",
const Char_t* title ="");
~HLegendDrawer(void);
void draw(HMonHistAddon*);
HNamedLegend* add (HMonHistAddon*);
ClassDef(HLegendDrawer,1)
};
class HNamedLegend : public TNamed {
protected:
TLegend* legend;
public:
HNamedLegend (const Char_t* name ="",
const Char_t* title ="",HMonHistAddon* =0);
~HNamedLegend(void);
TLegend* getP(){return legend;}
ClassDef(HNamedLegend,1)
};
class HTrendArray : public HMonHistAddon{
protected:
TObjArray* array;
public:
HTrendArray(const Char_t* name ="",
const Char_t* title ="",
Int_t active=0,Int_t resetable=0, Int_t size=1,Int_t size2=1,
Int_t nBinsX=0,Float_t Xlo=0,Float_t Xup=0);
HTrendArray(HMonHistAddon&);
~HTrendArray(void);
void getDim(Int_t* i,Int_t* j) {*i=arraySize1;*j=arraySize2;}
Int_t getSizeAll() {return arraySize1*arraySize2;}
void fill (Int_t,Int_t,Stat_t);
void reset(Int_t level,Int_t count);
void create();
void drawAll( Bool_t allowHiddenZero=1 );
void draw( Bool_t allowHiddenZero=1 );
void add(HMonHistAddon* h2);
TH1* getP(Int_t s=0,Int_t m=0){return ((TH1*) (*array)[s*arraySize2+m]);}
ClassDef(HTrendArray,1)
};
class HHistArray : public HMonHistAddon{
protected:
TObjArray* array;
public:
HHistArray(const Char_t* name ="",
const Char_t* title ="",
Int_t active=0,Int_t resetable=0, Int_t size=1,Int_t size2=1,
Int_t nBinsX=0,Float_t Xlo=0,Float_t Xup=0);
HHistArray(HMonHistAddon&);
~HHistArray(void);
void getDim(Int_t* i,Int_t* j) {*i=arraySize1;*j=arraySize2;}
Int_t getSizeAll() {return arraySize1*arraySize2;}
void fill (Int_t,Int_t,Stat_t);
void setBinContent(Int_t,Int_t,Int_t,Stat_t);
Stat_t getBinContent(Int_t,Int_t,Int_t);
void setBinError (Int_t,Int_t,Int_t,Stat_t);
Stat_t getBinError (Int_t,Int_t,Int_t);
void reset(Int_t level,Int_t count);
void create();
void drawAll( Bool_t allowHiddenZero=1 );
void draw( Bool_t allowHiddenZero=1 );
void add(HMonHistAddon* h2);
TH1* getP(Int_t s=0,Int_t m=0){return ((TH1*) (*array)[s*arraySize2+m]);}
ClassDef(HHistArray,1)
};
class HHistArray2 : public HMonHistAddon{
protected:
TObjArray* array;
public:
HHistArray2(const Char_t* name ="",
const Char_t* title ="",
Int_t active=0,Int_t resetable=0, Int_t size=1,Int_t size2=1,
Int_t nBinsX=0,Float_t Xlo=0,Float_t Xup=0);
HHistArray2(HMonHistAddon&);
~HHistArray2(void);
void getDim(Int_t* i,Int_t* j) {*i=arraySize1;*j=arraySize2;}
Int_t getSizeAll() {return arraySize1*arraySize2;}
void fill (Int_t,Int_t,Stat_t,Stat_t);
void setBinContent(Int_t,Int_t,Int_t,Int_t,Stat_t);
Stat_t getBinContent(Int_t,Int_t,Int_t,Int_t);
void setBinError (Int_t,Int_t,Int_t,Int_t,Stat_t);
Stat_t getBinError (Int_t,Int_t,Int_t,Int_t);
void create();
void drawAll( Bool_t allowHiddenZero=1 );
void draw( Bool_t allowHiddenZero=1 );
void reset(Int_t level,Int_t count);
void add(HMonHistAddon* h2);
TH2* getP(Int_t s=0,Int_t m=0){return ((TH2*) (*array)[s*arraySize2+m]);}
ClassDef(HHistArray2,1)
};
#endif /*!HHISTARRAY_H*/
Last change: Sat May 22 13:04:46 2010
Last generated: 2010-05-22 13:04
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.