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