CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | Static Private Attributes

GFHistManager Class Reference

#include <GFHistManager.h>

List of all members.

Public Member Functions

virtual TLegendEntry * AddHist (TH1 *hist, Int_t layer=0, const char *legendTitle=NULL, const char *legOpt=NULL)
virtual void AddHists (TCollection *hists, Int_t layer=0, const char *legendTitle=NULL, const char *legOpt=NULL)
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 AddHistsOption (Option_t *option, Int_t layer)
virtual void AddHistsSame (GFHistArray *hists, Int_t layer, Int_t nPad)
virtual void AddHistsSame (GFHistArray *hists, Int_t layer, const char *legendTitle=NULL, const char *legOpt=NULL)
virtual void AddLayer (GFHistManager *other, Int_t layer)
virtual void AddLayers (GFHistManager *other)
virtual TLegend * AddLegend (Int_t layer, Int_t nPad, const char *header=NULL, Bool_t referAll=kTRUE)
virtual void AddLegend (TLegend *leg, Int_t layer, Int_t nPad)
virtual void AddObject (TObject *obj, Int_t layer, Int_t histoNum, Option_t *opt=NULL)
virtual void Clear (Bool_t deleteHists)
void Clear (Option_t *="")
void Delete (Option_t *="")
virtual void Draw (Option_t *opt="")
virtual void Draw (Int_t layer)
Bool_t DrawDiffStyle (Bool_t yesNo)
virtual void ExpandTo (Int_t newDepth)
virtual TCanvas * GetCanvas (Int_t layer, Int_t number=0)
virtual Int_t GetCanvasHeight () const
virtual Int_t GetCanvasWidth () const
virtual GFHistArrayGetHistsOf (Int_t layer, Int_t histNum, Bool_t mayExpand=kFALSE)
virtual TLegend * GetLegendOf (Int_t layer, Int_t nPad)
virtual void GetLegendX1Y1X2Y2 (Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) const
virtual Int_t GetNumHistsOf (Int_t layer)
virtual Int_t GetNumHistsX (Int_t layer) const
virtual Int_t GetNumHistsY (Int_t layer) const
Int_t GetNumLayers () const
virtual TList * GetObjectsOf (Int_t layer, Int_t histNum)
virtual TVirtualPad * GetPad (Int_t layer, Int_t histNum)
 GFHistManager ()
 GFHistManager (TH1 *hist)
 GFHistManager (TCollection *hists)
virtual Bool_t IsBatch () const
virtual Double_t MaxOfHist (const TH1 *h) const
virtual Double_t MaxOfHists (const TObjArray *hists) const
virtual Double_t MinOfHist (const TH1 *h) const
virtual Double_t MinOfHists (const TObjArray *hists) const
virtual void Overlay (GFHistManager *other, Int_t otherLayer, Int_t myLayer, const char *legendTitle)
virtual void Print (const char *filename, Bool_t add=kFALSE)
virtual Bool_t RemoveLegend (Int_t layer, Int_t nPad)
Bool_t SameWithStats (Bool_t yesNo)
virtual Bool_t SetBatch (Bool_t set=kTRUE)
virtual void SetCanvasHeight (Int_t h)
virtual void SetCanvasWidth (Int_t w)
virtual void SetHistsFillColor (Color_t color)
virtual void SetHistsFillColor (Color_t color, Int_t layer)
virtual void SetHistsLineColor (Color_t color)
virtual void SetHistsLineColor (Color_t color, Int_t layer)
virtual void SetHistsLineStyle (Int_t style)
virtual void SetHistsLineStyle (Int_t style, Int_t layer, Int_t numHistInPad=-1)
virtual void SetHistsLineWidth (Width_t width, Int_t layer)
virtual void SetHistsLineWidth (Width_t width)
virtual void SetHistsMinMax (Double_t minMax, Bool_t min)
virtual void SetHistsMinMax (Double_t minMax, Bool_t min, Int_t layer)
virtual void SetHistsOption (Option_t *option)
virtual void SetHistsOption (Option_t *option, Int_t layer)
virtual void SetHistsXTitle (const char *title)
virtual void SetHistsXTitle (const char *title, Int_t layer)
virtual void SetHistsYTitle (const char *title)
virtual void SetHistsYTitle (const char *title, Int_t layer)
virtual void SetLegendX1 (Double_t x1)
virtual void SetLegendX1Y1X2Y2 (Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual void SetLegendX2 (Double_t x2)
virtual void SetLegendY1 (Double_t y1)
virtual void SetLegendY2 (Double_t y2)
virtual void SetLogY (Int_t layer, Bool_t yesNo=kTRUE)
virtual void SetLogY (Bool_t yesNo=kTRUE)
virtual void SetNumHistsX (UInt_t numX, Int_t layer)
virtual void SetNumHistsX (UInt_t numX)
virtual void SetNumHistsXY (UInt_t numX, UInt_t numY, Int_t layer)
virtual void SetNumHistsXY (UInt_t numX, UInt_t numY)
virtual void SetNumHistsY (UInt_t numY)
virtual void SetNumHistsY (UInt_t numY, Int_t layer)
virtual void SetStatsX1Y1X2Y2 (Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual void Update ()
virtual void Update (Int_t layer)
virtual void WriteCanvases (TFile *file)
virtual void WriteHistos (TFile *file)
virtual ~GFHistManager ()

Static Public Member Functions

static void MakeDifferentStyle (GFHistArray *hists)
static Int_t NumberOfSubPadsOf (TCanvas *can)
static void SetLegendEntryOption (const char *option)

Static Public Attributes

static const Int_t kDefaultDepth
static const Int_t kDefaultPadsPerCanX
static const Int_t kDefaultPadsPerCanY

Protected Member Functions

virtual Bool_t CheckDepth (const char *method, Int_t layer, Bool_t mayExpand=kTRUE)
virtual Bool_t CheckHistNum (const char *method, Int_t layer, Int_t histNum, Bool_t mayExpand=kFALSE)
void ColourFuncs (GFHistArray *hists) const
void ColourStatsBoxes (GFHistArray *hists) const
void DrawFuncs (const TH1 *hist) const
virtual void DrawLegend (Int_t layer, Int_t histNo)
virtual void DrawObjects (Int_t layer, Int_t histNo)
virtual void DrawReally (Int_t layer)
virtual void Initialise ()
virtual void MakeCanvases (Int_t layer)
virtual TObjArray * MakeLegends (Int_t layer)
virtual TList * MakeObjList (Int_t layer, Int_t histoNum)

Private Attributes

Bool_t fBatch
TObjArray * fCanArrays
Int_t fCanvasHeight
Int_t fCanvasWidth
Int_t fDepth
Bool_t fDrawDiffStyle
TObjArray * fHistArrays
TObjArray * fLegendArrays
Double_t fLegendX1
Double_t fLegendX2
Double_t fLegendY1
Double_t fLegendY2
TArrayC fLogY
TArrayI fNoX
TArrayI fNoY
TObjArray * fObjLists
Bool_t fSameWithStats
Double_t fStatsX1
Double_t fStatsX2
Double_t fStatsY1
Double_t fStatsY2

Static Private Attributes

static TString fgLegendEntryOption

Detailed Description

Definition at line 20 of file GFHistManager.h.


Constructor & Destructor Documentation

GFHistManager::GFHistManager ( )
GFHistManager::GFHistManager ( TH1 *  hist) [explicit]
GFHistManager::GFHistManager ( TCollection *  hists) [explicit]
virtual GFHistManager::~GFHistManager ( ) [virtual]

Member Function Documentation

virtual TLegendEntry* GFHistManager::AddHist ( TH1 *  hist,
Int_t  layer = 0,
const char *  legendTitle = NULL,
const char *  legOpt = NULL 
) [virtual]
virtual void GFHistManager::AddHists ( TCollection *  hists,
Int_t  layer = 0,
const char *  legendTitle = NULL,
const char *  legOpt = NULL 
) [virtual]
virtual TLegendEntry* GFHistManager::AddHistSame ( TH1 *  hist,
Int_t  layer,
Int_t  nPad,
const char *  legendTitle = NULL,
const char *  legOpt = NULL 
) [virtual]
virtual void GFHistManager::AddHistsOption ( Option_t *  option) [virtual]
virtual void GFHistManager::AddHistsOption ( Option_t *  option,
Int_t  layer 
) [virtual]
virtual void GFHistManager::AddHistsSame ( GFHistArray hists,
Int_t  layer,
const char *  legendTitle = NULL,
const char *  legOpt = NULL 
) [virtual]
virtual void GFHistManager::AddHistsSame ( GFHistArray hists,
Int_t  layer,
Int_t  nPad 
) [virtual]
virtual void GFHistManager::AddLayer ( GFHistManager other,
Int_t  layer 
) [virtual]
virtual void GFHistManager::AddLayers ( GFHistManager other) [virtual]
virtual TLegend* GFHistManager::AddLegend ( Int_t  layer,
Int_t  nPad,
const char *  header = NULL,
Bool_t  referAll = kTRUE 
) [virtual]
virtual void GFHistManager::AddLegend ( TLegend *  leg,
Int_t  layer,
Int_t  nPad 
) [virtual]
virtual void GFHistManager::AddObject ( TObject *  obj,
Int_t  layer,
Int_t  histoNum,
Option_t *  opt = NULL 
) [virtual]
virtual Bool_t GFHistManager::CheckDepth ( const char *  method,
Int_t  layer,
Bool_t  mayExpand = kTRUE 
) [protected, virtual]
virtual Bool_t GFHistManager::CheckHistNum ( const char *  method,
Int_t  layer,
Int_t  histNum,
Bool_t  mayExpand = kFALSE 
) [protected, virtual]
virtual void GFHistManager::Clear ( Bool_t  deleteHists) [virtual]

Referenced by Delete().

void GFHistManager::Clear ( Option_t *  = "") [inline]

Definition at line 52 of file GFHistManager.h.

References Clear().

Referenced by Clear().

{this->Clear(kFALSE);}
void GFHistManager::ColourFuncs ( GFHistArray hists) const [protected]
void GFHistManager::ColourStatsBoxes ( GFHistArray hists) const [protected]
void GFHistManager::Delete ( Option_t *  = "") [inline]

Definition at line 53 of file GFHistManager.h.

References Clear().

{this->Clear(kTRUE);}
virtual void GFHistManager::Draw ( Option_t *  opt = "") [virtual]
virtual void GFHistManager::Draw ( Int_t  layer) [virtual]
Bool_t GFHistManager::DrawDiffStyle ( Bool_t  yesNo) [inline]

Definition at line 120 of file GFHistManager.h.

References fDrawDiffStyle.

                                       {
    const Bool_t old = fDrawDiffStyle; fDrawDiffStyle = yesNo; return old;}
void GFHistManager::DrawFuncs ( const TH1 *  hist) const [protected]
virtual void GFHistManager::DrawLegend ( Int_t  layer,
Int_t  histNo 
) [protected, virtual]
virtual void GFHistManager::DrawObjects ( Int_t  layer,
Int_t  histNo 
) [protected, virtual]
virtual void GFHistManager::DrawReally ( Int_t  layer) [protected, virtual]
virtual void GFHistManager::ExpandTo ( Int_t  newDepth) [virtual]
virtual TCanvas* GFHistManager::GetCanvas ( Int_t  layer,
Int_t  number = 0 
) [virtual]
virtual Int_t GFHistManager::GetCanvasHeight ( ) const [inline, virtual]

Definition at line 102 of file GFHistManager.h.

References fCanvasHeight.

{return fCanvasHeight;}
virtual Int_t GFHistManager::GetCanvasWidth ( ) const [inline, virtual]

Definition at line 101 of file GFHistManager.h.

References fCanvasWidth.

{return fCanvasWidth;}
virtual GFHistArray* GFHistManager::GetHistsOf ( Int_t  layer,
Int_t  histNum,
Bool_t  mayExpand = kFALSE 
) [virtual]
virtual TLegend* GFHistManager::GetLegendOf ( Int_t  layer,
Int_t  nPad 
) [virtual]
virtual void GFHistManager::GetLegendX1Y1X2Y2 ( Double_t &  x1,
Double_t &  y1,
Double_t &  x2,
Double_t &  y2 
) const [virtual]
virtual Int_t GFHistManager::GetNumHistsOf ( Int_t  layer) [virtual]
virtual Int_t GFHistManager::GetNumHistsX ( Int_t  layer) const [virtual]
virtual Int_t GFHistManager::GetNumHistsY ( Int_t  layer) const [virtual]
Int_t GFHistManager::GetNumLayers ( ) const [inline]

Definition at line 111 of file GFHistManager.h.

References fDepth.

{return fDepth;}
virtual TList* GFHistManager::GetObjectsOf ( Int_t  layer,
Int_t  histNum 
) [virtual]
virtual TVirtualPad* GFHistManager::GetPad ( Int_t  layer,
Int_t  histNum 
) [virtual]
virtual void GFHistManager::Initialise ( ) [protected, virtual]
virtual Bool_t GFHistManager::IsBatch ( ) const [inline, virtual]

Definition at line 94 of file GFHistManager.h.

References fBatch.

{return fBatch;}
virtual void GFHistManager::MakeCanvases ( Int_t  layer) [protected, virtual]
static void GFHistManager::MakeDifferentStyle ( GFHistArray hists) [static]
virtual TObjArray* GFHistManager::MakeLegends ( Int_t  layer) [protected, virtual]
virtual TList* GFHistManager::MakeObjList ( Int_t  layer,
Int_t  histoNum 
) [protected, virtual]
virtual Double_t GFHistManager::MaxOfHist ( const TH1 *  h) const [virtual]
virtual Double_t GFHistManager::MaxOfHists ( const TObjArray *  hists) const [virtual]
virtual Double_t GFHistManager::MinOfHist ( const TH1 *  h) const [virtual]
virtual Double_t GFHistManager::MinOfHists ( const TObjArray *  hists) const [virtual]
static Int_t GFHistManager::NumberOfSubPadsOf ( TCanvas *  can) [static]
virtual void GFHistManager::Overlay ( GFHistManager other,
Int_t  otherLayer,
Int_t  myLayer,
const char *  legendTitle 
) [virtual]
virtual void GFHistManager::Print ( const char *  filename,
Bool_t  add = kFALSE 
) [virtual]
virtual Bool_t GFHistManager::RemoveLegend ( Int_t  layer,
Int_t  nPad 
) [virtual]
Bool_t GFHistManager::SameWithStats ( Bool_t  yesNo) [inline]

Definition at line 122 of file GFHistManager.h.

References fSameWithStats.

                                     {
    const Bool_t old = fSameWithStats; fSameWithStats = yesNo; return old;}
virtual Bool_t GFHistManager::SetBatch ( Bool_t  set = kTRUE) [inline, virtual]

Definition at line 93 of file GFHistManager.h.

References fBatch, and alignCSCRings::r.

{Bool_t r = fBatch; fBatch = set; return r;}
virtual void GFHistManager::SetCanvasHeight ( Int_t  h) [inline, virtual]

Definition at line 69 of file GFHistManager.h.

References fCanvasHeight, and h.

virtual void GFHistManager::SetCanvasWidth ( Int_t  w) [inline, virtual]

Definition at line 68 of file GFHistManager.h.

References fCanvasWidth, and w().

virtual void GFHistManager::SetHistsFillColor ( Color_t  color,
Int_t  layer 
) [virtual]
virtual void GFHistManager::SetHistsFillColor ( Color_t  color) [virtual]
virtual void GFHistManager::SetHistsLineColor ( Color_t  color) [virtual]
virtual void GFHistManager::SetHistsLineColor ( Color_t  color,
Int_t  layer 
) [virtual]
virtual void GFHistManager::SetHistsLineStyle ( Int_t  style) [virtual]
virtual void GFHistManager::SetHistsLineStyle ( Int_t  style,
Int_t  layer,
Int_t  numHistInPad = -1 
) [virtual]
virtual void GFHistManager::SetHistsLineWidth ( Width_t  width,
Int_t  layer 
) [virtual]
virtual void GFHistManager::SetHistsLineWidth ( Width_t  width) [virtual]
virtual void GFHistManager::SetHistsMinMax ( Double_t  minMax,
Bool_t  min 
) [virtual]
virtual void GFHistManager::SetHistsMinMax ( Double_t  minMax,
Bool_t  min,
Int_t  layer 
) [virtual]
virtual void GFHistManager::SetHistsOption ( Option_t *  option) [virtual]
virtual void GFHistManager::SetHistsOption ( Option_t *  option,
Int_t  layer 
) [virtual]
virtual void GFHistManager::SetHistsXTitle ( const char *  title,
Int_t  layer 
) [virtual]
virtual void GFHistManager::SetHistsXTitle ( const char *  title) [virtual]
virtual void GFHistManager::SetHistsYTitle ( const char *  title) [virtual]
virtual void GFHistManager::SetHistsYTitle ( const char *  title,
Int_t  layer 
) [virtual]
static void GFHistManager::SetLegendEntryOption ( const char *  option) [inline, static]

Definition at line 74 of file GFHistManager.h.

References fgLegendEntryOption.

{fgLegendEntryOption = option;} // some of "lpf"
virtual void GFHistManager::SetLegendX1 ( Double_t  x1) [virtual]
virtual void GFHistManager::SetLegendX1Y1X2Y2 ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
) [virtual]
virtual void GFHistManager::SetLegendX2 ( Double_t  x2) [virtual]
virtual void GFHistManager::SetLegendY1 ( Double_t  y1) [virtual]
virtual void GFHistManager::SetLegendY2 ( Double_t  y2) [virtual]
virtual void GFHistManager::SetLogY ( Bool_t  yesNo = kTRUE) [virtual]
virtual void GFHistManager::SetLogY ( Int_t  layer,
Bool_t  yesNo = kTRUE 
) [virtual]
virtual void GFHistManager::SetNumHistsX ( UInt_t  numX,
Int_t  layer 
) [virtual]
virtual void GFHistManager::SetNumHistsX ( UInt_t  numX) [virtual]
virtual void GFHistManager::SetNumHistsXY ( UInt_t  numX,
UInt_t  numY 
) [virtual]
virtual void GFHistManager::SetNumHistsXY ( UInt_t  numX,
UInt_t  numY,
Int_t  layer 
) [virtual]
virtual void GFHistManager::SetNumHistsY ( UInt_t  numY,
Int_t  layer 
) [virtual]
virtual void GFHistManager::SetNumHistsY ( UInt_t  numY) [virtual]
virtual void GFHistManager::SetStatsX1Y1X2Y2 ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
) [virtual]
virtual void GFHistManager::Update ( Int_t  layer) [virtual]
virtual void GFHistManager::Update ( ) [virtual]
virtual void GFHistManager::WriteCanvases ( TFile *  file) [virtual]
virtual void GFHistManager::WriteHistos ( TFile *  file) [virtual]

Member Data Documentation

Bool_t GFHistManager::fBatch [private]

Definition at line 160 of file GFHistManager.h.

Referenced by IsBatch(), and SetBatch().

TObjArray* GFHistManager::fCanArrays [private]

Definition at line 159 of file GFHistManager.h.

Definition at line 154 of file GFHistManager.h.

Referenced by GetCanvasHeight(), and SetCanvasHeight().

Int_t GFHistManager::fCanvasWidth [private]

Definition at line 153 of file GFHistManager.h.

Referenced by GetCanvasWidth(), and SetCanvasWidth().

Int_t GFHistManager::fDepth [private]

Definition at line 141 of file GFHistManager.h.

Referenced by GetNumLayers().

Definition at line 161 of file GFHistManager.h.

Referenced by DrawDiffStyle().

TString GFHistManager::fgLegendEntryOption [static, private]

Definition at line 155 of file GFHistManager.h.

Referenced by SetLegendEntryOption().

TObjArray* GFHistManager::fHistArrays [private]

Definition at line 156 of file GFHistManager.h.

TObjArray* GFHistManager::fLegendArrays [private]

Definition at line 157 of file GFHistManager.h.

Double_t GFHistManager::fLegendX1 [private]

Definition at line 145 of file GFHistManager.h.

Double_t GFHistManager::fLegendX2 [private]

Definition at line 147 of file GFHistManager.h.

Double_t GFHistManager::fLegendY1 [private]

Definition at line 146 of file GFHistManager.h.

Double_t GFHistManager::fLegendY2 [private]

Definition at line 148 of file GFHistManager.h.

TArrayC GFHistManager::fLogY [private]

Definition at line 144 of file GFHistManager.h.

TArrayI GFHistManager::fNoX [private]

Definition at line 142 of file GFHistManager.h.

TArrayI GFHistManager::fNoY [private]

Definition at line 143 of file GFHistManager.h.

TObjArray* GFHistManager::fObjLists [private]

Definition at line 158 of file GFHistManager.h.

Definition at line 162 of file GFHistManager.h.

Referenced by SameWithStats().

Double_t GFHistManager::fStatsX1 [private]

Definition at line 149 of file GFHistManager.h.

Double_t GFHistManager::fStatsX2 [private]

Definition at line 150 of file GFHistManager.h.

Double_t GFHistManager::fStatsY1 [private]

Definition at line 151 of file GFHistManager.h.

Double_t GFHistManager::fStatsY2 [private]

Definition at line 152 of file GFHistManager.h.

const Int_t GFHistManager::kDefaultDepth [static]

Definition at line 116 of file GFHistManager.h.

const Int_t GFHistManager::kDefaultPadsPerCanX [static]

Definition at line 114 of file GFHistManager.h.

const Int_t GFHistManager::kDefaultPadsPerCanY [static]

Definition at line 115 of file GFHistManager.h.