1 #ifndef __GFHISTMANAGER_H 2 #define __GFHISTMANAGER_H 28 const char* legOpt =
NULL);
30 const char* legendTitle =
NULL,
const char* legOpt =
NULL);
32 const char* legendTitle=
NULL,
const char* legOpt=
NULL);
34 const char* legendTitle =
NULL,
const char* legOpt =
NULL);
39 const char* legendTitle);
41 Bool_t referAll = kTRUE);
46 virtual void Draw(Option_t *
opt =
"");
51 virtual void Clear(Bool_t deleteHists);
66 virtual void SetLogY(Bool_t yesNo = kTRUE);
96 virtual void ExpandTo(Int_t newDepth);
106 virtual Double_t
MaxOfHist(
const TH1*
h)
const;
108 virtual Double_t
MinOfHist(
const TH1*
h)
const;
110 virtual TVirtualPad*
GetPad(Int_t
layer, Int_t histNum);
136 Bool_t mayExpand = kFALSE);
void Clear(Option_t *="")
virtual void Print(const char *filename, Bool_t add=kFALSE)
virtual void SetLogY(Bool_t yesNo=kTRUE)
virtual void AddHists(TCollection *hists, Int_t layer=0, const char *legendTitle=NULL, const char *legOpt=NULL)
virtual Bool_t RemoveLegend(Int_t layer, Int_t nPad)
virtual TList * GetObjectsOf(Int_t layer, Int_t histNum)
Bool_t SameWithStats(Bool_t yesNo)
static void MakeDifferentStyle(GFHistArray *hists)
virtual TLegendEntry * AddHistSame(TH1 *hist, Int_t layer, Int_t nPad, const char *legendTitle=NULL, const char *legOpt=NULL)
virtual void Initialise()
TObjArray * fLegendArrays
static const Int_t kDefaultPadsPerCanX
static TString fgLegendEntryOption
virtual Double_t MaxOfHists(const TObjArray *hists) const
virtual TList * MakeObjList(Int_t layer, Int_t histoNum)
Bool_t DrawDiffStyle(Bool_t yesNo)
virtual void Overlay(GFHistManager *other, Int_t otherLayer, Int_t myLayer, const char *legendTitle)
void SetCanvasName(const TString &name)
virtual TLegend * AddLegend(Int_t layer, Int_t nPad, const char *header=NULL, Bool_t referAll=kTRUE)
virtual void SetHistsMinMax(Double_t minMax, Bool_t min)
virtual void SetHistsLineStyle(Int_t style)
virtual void DrawLegend(Int_t layer, Int_t histNo)
virtual Bool_t IsBatch() const
virtual Bool_t CheckDepth(const char *method, Int_t layer, Bool_t mayExpand=kTRUE)
virtual void SetLegendX2(Double_t x2)
virtual TVirtualPad * GetPad(Int_t layer, Int_t histNum)
void ColourStatsBoxes(GFHistArray *hists) const
static Int_t NumberOfSubPadsOf(TCanvas *can)
virtual void SetHistsFillColor(Color_t color)
static void SetLegendEntryOption(const char *option)
virtual void SetHistsLineWidth(Width_t width)
virtual void SetLegendY1(Double_t y1)
virtual TLegend * GetLegendOf(Int_t layer, Int_t nPad)
void DrawFuncs(const TH1 *hist) const
virtual Int_t GetNumHistsX(Int_t layer) const
virtual Int_t GetNumHistsY(Int_t layer) const
Int_t GetNumLayers() const
virtual void DrawObjects(Int_t layer, Int_t histNo)
virtual void ExpandTo(Int_t newDepth)
virtual void SetLegendX1(Double_t x1)
virtual void GetLegendX1Y1X2Y2(Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) const
virtual void Clear(Bool_t deleteHists)
virtual void SetNumHistsX(UInt_t numX)
static const Int_t kDefaultDepth
virtual Double_t MaxOfHist(const TH1 *h) const
virtual void WriteCanvases(TFile *file)
virtual void SetHistsXTitle(const char *title)
virtual void AddLayer(GFHistManager *other, Int_t layer)
static const Int_t kDefaultPadsPerCanY
virtual void WriteHistos(TFile *file)
virtual void SetCanvasHeight(Int_t h)
virtual Double_t MinOfHists(const TObjArray *hists) const
virtual void SetStatsX1Y1X2Y2(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual void SetHistsLineColor(Color_t color)
virtual Int_t GetNumHistsOf(Int_t layer)
virtual void SetLegendX1Y1X2Y2(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual Double_t MinOfHist(const TH1 *h) const
virtual void MakeCanvases(Int_t layer)
virtual void DrawReally(Int_t layer)
virtual void SetHistsYTitle(const char *title)
virtual void SetLegendY2(Double_t y2)
virtual void AddHistsSame(GFHistArray *hists, Int_t layer, const char *legendTitle=NULL, const char *legOpt=NULL)
virtual Bool_t CheckHistNum(const char *method, Int_t layer, Int_t histNum, Bool_t mayExpand=kFALSE)
virtual TLegendEntry * AddHist(TH1 *hist, Int_t layer=0, const char *legendTitle=NULL, const char *legOpt=NULL)
virtual void Draw(Option_t *opt="")
virtual void SetHistsOption(Option_t *option)
virtual void AddHistsOption(Option_t *option)
void add(std::map< std::string, TH1 *> &h, TH1 *hist)
virtual TCanvas * GetCanvas(Int_t layer, Int_t number=0)
virtual Bool_t SetBatch(Bool_t set=kTRUE)
virtual void AddLayers(GFHistManager *other)
virtual void SetCanvasWidth(Int_t w)
virtual void SetNumHistsY(UInt_t numY)
virtual Int_t GetCanvasHeight() const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
virtual void SetNumHistsXY(UInt_t numX, UInt_t numY)
void Delete(Option_t *="")
virtual TObjArray * MakeLegends(Int_t layer)
void ColourFuncs(GFHistArray *hists) const
virtual Int_t GetCanvasWidth() const
virtual void AddObject(TObject *obj, Int_t layer, Int_t histoNum, Option_t *opt=NULL)
virtual GFHistArray * GetHistsOf(Int_t layer, Int_t histNum, Bool_t mayExpand=kFALSE)