1 #ifndef __GFHISTMANAGER_H
2 #define __GFHISTMANAGER_H
27 virtual TLegendEntry*
AddHist(TH1* hist, Int_t layer = 0,
const char* legendTitle =
NULL,
28 const char* legOpt =
NULL);
29 virtual void AddHists(TCollection* hists, Int_t layer = 0,
30 const char* legendTitle =
NULL,
const char* legOpt =
NULL);
31 virtual TLegendEntry*
AddHistSame(TH1* hist, Int_t layer, Int_t nPad,
32 const char* legendTitle=
NULL,
const char* legOpt=
NULL);
34 const char* legendTitle =
NULL,
const char* legOpt =
NULL);
39 const char* legendTitle);
40 virtual TLegend*
AddLegend(Int_t layer, Int_t nPad,
const char* header =
NULL,
41 Bool_t referAll = kTRUE);
43 virtual void AddLegend(TLegend*
leg, Int_t layer, Int_t nPad);
44 virtual void AddObject(TObject*
obj, Int_t layer, Int_t histoNum, Option_t* opt =
NULL);
46 virtual void Draw(Option_t * opt =
"");
47 virtual void Draw(Int_t layer);
51 virtual void Clear(Bool_t deleteHists);
54 virtual void SetLegendX1Y1X2Y2(Double_t x1, Double_t y1, Double_t x2, Double_t y2);
59 virtual void SetStatsX1Y1X2Y2(Double_t x1, Double_t y1, Double_t x2, Double_t y2);
65 virtual void SetNumHistsXY(UInt_t numX, UInt_t numY, Int_t layer);
66 virtual void SetLogY(Bool_t yesNo = kTRUE);
67 virtual void SetLogY(Int_t layer, Bool_t yesNo = kTRUE);
87 virtual void SetHistsLineStyle(Int_t style, Int_t layer, Int_t numHistInPad = -1);
93 virtual void Update(Int_t layer);
96 virtual void ExpandTo(Int_t newDepth);
101 virtual TLegend*
GetLegendOf(Int_t layer, Int_t nPad);
106 virtual Double_t
MaxOfHist(
const TH1*
h)
const;
107 virtual Double_t
MaxOfHists(
const TObjArray* hists)
const;
108 virtual Double_t
MinOfHist(
const TH1*
h)
const;
109 virtual Double_t
MinOfHists(
const TObjArray* hists)
const;
110 virtual TVirtualPad*
GetPad(Int_t layer, Int_t histNum);
113 virtual void GetLegendX1Y1X2Y2(Double_t& x1, Double_t& y1, Double_t& x2, Double_t& y2)
const;
128 virtual void DrawLegend(Int_t layer, Int_t histNo);
129 virtual void DrawObjects(Int_t layer, Int_t histNo);
132 virtual TList*
MakeObjList(Int_t layer, Int_t histoNum);
134 virtual Bool_t
CheckDepth(
const char*
method, Int_t layer, Bool_t mayExpand = kTRUE);
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)
void ColourFuncs(GFHistArray *hists) const
virtual TList * GetObjectsOf(Int_t layer, Int_t histNum)
Int_t GetNumLayers() const
Bool_t SameWithStats(Bool_t yesNo)
static void MakeDifferentStyle(GFHistArray *hists)
virtual Int_t GetCanvasWidth() const
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 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 Int_t GetNumHistsX(Int_t layer) const
virtual void SetHistsMinMax(Double_t minMax, Bool_t min)
void add(const std::vector< const T * > &source, std::vector< const T * > &dest)
virtual Bool_t IsBatch() const
virtual void SetHistsLineStyle(Int_t style)
virtual void DrawLegend(Int_t layer, Int_t histNo)
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)
static Int_t NumberOfSubPadsOf(TCanvas *can)
virtual void SetHistsFillColor(Color_t color)
virtual void GetLegendX1Y1X2Y2(Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) const
void ColourStatsBoxes(GFHistArray *hists) const
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)
virtual Double_t MinOfHists(const TObjArray *hists) const
virtual Int_t GetCanvasHeight() const
virtual void DrawObjects(Int_t layer, Int_t histNo)
virtual void ExpandTo(Int_t newDepth)
virtual void SetLegendX1(Double_t x1)
void DrawFuncs(const TH1 *hist) const
virtual void Clear(Bool_t deleteHists)
virtual void SetNumHistsX(UInt_t numX)
static const Int_t kDefaultDepth
virtual void WriteCanvases(TFile *file)
virtual void SetHistsXTitle(const char *title)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
virtual void AddLayer(GFHistManager *other, Int_t layer)
virtual Double_t MaxOfHists(const TObjArray *hists) const
static const Int_t kDefaultPadsPerCanY
virtual void WriteHistos(TFile *file)
virtual void SetCanvasHeight(Int_t h)
virtual void SetStatsX1Y1X2Y2(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual void SetHistsLineColor(Color_t color)
virtual Double_t MaxOfHist(const TH1 *h) const
virtual Int_t GetNumHistsOf(Int_t layer)
virtual void SetLegendX1Y1X2Y2(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
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 Int_t GetNumHistsY(Int_t layer) const
virtual void SetHistsOption(Option_t *option)
virtual void AddHistsOption(Option_t *option)
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 void SetNumHistsXY(UInt_t numX, UInt_t numY)
virtual Double_t MinOfHist(const TH1 *h) const
void Delete(Option_t *="")
virtual TObjArray * MakeLegends(Int_t layer)
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)