CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
JDrawer Class Reference

#include <JDrawer.h>

Public Member Functions

void ApplyStyleSettings (TH1 *histo, TString xTitle="", TString yTitle="")
 
void CreateCanvas ()
 
void CreateCanvas (double xlow, double xhigh, double ylow, double yhigh, const char *xTitle="", const char *yTitle="", const char *title="")
 
void CreateCanvasGraphRow ()
 
void CreateCanvasGraphRow (double xlow, double xhigh, double ylow, double yhigh, const char *xTitle="", const char *yTitle="", const char *title="")
 
void CreateSplitCanvas ()
 
void CreateSplitCanvas (int canvasIndex, int canvasesInRow)
 
void DrawFunction (TF1 *myFun, const char *xTitle, const char *yTitle, const char *title="", const char *drawOption="")
 
void DrawFunction (TF1 *myFun, const char *drawOption="")
 
void DrawGraph (TGraph *graph, double xlow, double xhigh, double ylow, double yhigh, const char *xTitle="", const char *yTitle="", const char *title="", const char *drawOption="")
 
void DrawGraphCustomAxes (TGraph *graph, double xlow, double xhigh, double ylow, double yhigh, const char *xTitle="", const char *yTitle="", const char *title="", const char *drawOption="")
 
void DrawHistogram (TH1 *histo, const char *xTitle, const char *yTitle, const char *title="", const char *drawOption="")
 
void DrawHistogram (TH1 *histo, const char *drawOption="")
 
void DrawHistogramToCurrentCanvas (TH1 *histo, const char *xTitle, const char *yTitle, const char *title="", const char *drawOption="")
 
void DrawHistogramToLowerPad (TH1 *histo, const char *xTitle="", const char *yTitle="", const char *title="", const char *drawOption="")
 
void DrawHistogramToPad (TH1 *histo, TPad *drawPad, const char *xTitle="", const char *yTitle="", const char *title="", const char *drawOption="")
 
void DrawHistogramToUpperPad (TH1 *histo, const char *xTitle="", const char *yTitle="", const char *title="", const char *drawOption="")
 
int GetCanvasDisplacementX ()
 
int GetCanvasDisplacementY ()
 
TString GetCanvasName ()
 
TPad * GetLowerPad ()
 
TPad * GetPad (int padNumber)
 
TPad * GetUpperPad ()
 
 JDrawer ()
 
void Reset ()
 
void SelectLowerPad ()
 
void SelectPad (int padNumber)
 
void SelectUpperPad ()
 
void SetBottomMargin (double margin)
 
void SetCanvasDisplacement (int x, int y)
 
void SetCanvasDisplacement (int index)
 
void SetCanvasDisplacementSettings (int displacementX, int displacementY, int canvasesInRow)
 
void SetCanvasDisplacementX (int displacement)
 
void SetCanvasDisplacementY (int displacement)
 
void SetCanvasSize (int width, int height)
 
void SetDefaultAppearanceGraph ()
 
void SetDefaultAppearanceGraphRow ()
 
void SetDefaultAppearanceSplitCanvas ()
 
void SetFont (int fontIndex)
 
void SetGrid (int gridX, int gridY)
 
void SetGridX (bool grid=true)
 
void SetGridY (bool grid=true)
 
void SetHistogramAppearance (double titoffx, double titoffy, double titsizex, double titsizey, double labeloffx, double labeloffy, double labelsizex, double labelsizey, int divx, int divy, int fontIndex)
 
void SetLabelOffsetX (double offset)
 
void SetLabelOffsetY (double offset)
 
void SetLabelSizeX (double size)
 
void SetLabelSizeY (double size)
 
void SetLeftMargin (double margin)
 
void SetLogX (bool log=true)
 
void SetLogY (bool log=true)
 
void SetLogZ (bool log=true)
 
void SetMargins (double left, double right, double top, double bottom)
 
void SetNDivisionsX (int div)
 
void SetNDivisionsY (int div)
 
void SetNumberOfCanvasesInOneRow (int canvasesInRow)
 
void SetPadRange (double xLow, double yLow, double xHigh, double yHigh)
 
void SetRelativeCanvasSize (double relativeSize, double aspectRatio)
 
void SetRightMargin (double margin)
 
void SetSplitRatio (double split)
 
void SetTick (int tickX, int tickY)
 
void SetTickX (bool tick=true)
 
void SetTickY (bool tick=true)
 
void SetTitleOffsetX (double offset)
 
void SetTitleOffsetY (double offset)
 
void SetTitleSizeX (double size)
 
void SetTitleSizeY (double size)
 
void SetTopMargin (double margin)
 
 ~JDrawer ()=default
 

Private Member Functions

TString GenerateName (const char *objectName)
 
TString GenerateNameForCanvas ()
 
void SetAxisStyles (TAxis *xAxis, TAxis *yAxis, TAxis *zAxis, TString xtit, TString ytit)
 
void SetFunctionStyle (TF1 *hid, TString xtit, TString ytit)
 
void SetGraphStyle (TGraph *hid, TString xtit, TString ytit)
 
void SetHistogramStyle (TH1 *hid, TString xtit, TString ytit)
 
void SetPadValues (TPad *pad)
 

Private Attributes

TCanvas * fCanvas
 
int fCanvasDisplacementX
 
int fCanvasDisplacementY
 
int fCanvasesInOneRow
 
int fCanvasHeight
 
int fCanvasWidth
 
double fDivisionsX
 
double fDivisionsY
 
int fFont
 
int fGridX
 
int fGridY
 
double fLabelOffsetX
 
double fLabelOffsetY
 
double fLabelOffsetZ
 
double fLabelSizeX
 
double fLabelSizeY
 
double fLabelSizeZ
 
TPad * fLeftRowPad
 
int fLogX
 
int fLogY
 
int fLogZ
 
TPad * fLowerSplitPad
 
double fMarginBottom
 
double fMarginLeft
 
double fMarginRight
 
double fMarginTop
 
TPad * fMiddleRowPad
 
int fNameIndex
 
TPad * fRightRowPad
 
TPad * fSinglePad
 
double fSplitRatio
 
int fTickX
 
int fTickY
 
double fTitleOffsetX
 
double fTitleOffsetY
 
double fTitleOffsetZ
 
double fTitleSizeX
 
double fTitleSizeY
 
double fTitleSizeZ
 
int fTopLeftX
 
int fTopLeftY
 
TPad * fUpperSplitPad
 

Detailed Description

Definition at line 23 of file JDrawer.h.

Constructor & Destructor Documentation

◆ JDrawer()

JDrawer::JDrawer ( )
inline

Definition at line 211 of file JDrawer.h.

References fNameIndex, and Reset().

211  {
212  Reset(); // Set all the style values to default
213  fNameIndex = 0;
214  }
void Reset()
Definition: JDrawer.h:471
int fNameIndex
Definition: JDrawer.h:81

◆ ~JDrawer()

JDrawer::~JDrawer ( )
default

Member Function Documentation

◆ ApplyStyleSettings()

void JDrawer::ApplyStyleSettings ( TH1 *  histo,
TString  xTitle = "",
TString  yTitle = "" 
)
inline

Definition at line 800 of file JDrawer.h.

References timingPdfMaker::histo, and SetHistogramStyle().

800  {
801  SetHistogramStyle(histo, xTitle, yTitle);
802  }
void SetHistogramStyle(TH1 *hid, TString xtit, TString ytit)
Definition: JDrawer.h:143

◆ CreateCanvas() [1/2]

void JDrawer::CreateCanvas ( )
inline

Definition at line 533 of file JDrawer.h.

References fCanvas, fCanvasHeight, fCanvasWidth, fMarginBottom, fMarginLeft, fMarginRight, fMarginTop, fSinglePad, fTopLeftX, fTopLeftY, GenerateNameForCanvas(), and SetPadValues().

Referenced by CreateCanvas(), DrawFunction(), DrawGraph(), DrawGraphCustomAxes(), and DrawHistogram().

533  {
534  // Create a canvas and set up its appearance
535  gStyle->SetOptStat(0); // remove statistics box
536  TString cname = GenerateNameForCanvas();
537  fCanvas = new TCanvas(cname.Data(), cname.Data(), fTopLeftX, fTopLeftY, fCanvasWidth, fCanvasHeight);
538  fSinglePad = new TPad("pad", "pad", 0.01, 0.01, 0.99, 0.99, 0, 0, 0);
539  fSinglePad->SetLeftMargin(fMarginLeft);
540  fSinglePad->SetBottomMargin(fMarginBottom);
541  fSinglePad->SetTopMargin(fMarginTop);
542  fSinglePad->SetRightMargin(fMarginRight);
544  fSinglePad->Draw();
545  fSinglePad->cd();
546  }
int fTopLeftX
Definition: JDrawer.h:32
double fMarginBottom
Definition: JDrawer.h:28
int fCanvasHeight
Definition: JDrawer.h:35
double fMarginTop
Definition: JDrawer.h:29
double fMarginRight
Definition: JDrawer.h:27
TCanvas * fCanvas
Definition: JDrawer.h:69
double fMarginLeft
Definition: JDrawer.h:26
int fTopLeftY
Definition: JDrawer.h:33
TPad * fSinglePad
Definition: JDrawer.h:70
int fCanvasWidth
Definition: JDrawer.h:34
TString GenerateNameForCanvas()
Definition: JDrawer.h:193
void SetPadValues(TPad *pad)
Definition: JDrawer.h:172

◆ CreateCanvas() [2/2]

void JDrawer::CreateCanvas ( double  xlow,
double  xhigh,
double  ylow,
double  yhigh,
const char *  xTitle = "",
const char *  yTitle = "",
const char *  title = "" 
)
inline

Definition at line 559 of file JDrawer.h.

References CreateCanvas(), GenerateName(), SetHistogramStyle(), and runGCPTkAlMap::title.

565  {
566  // First make a canvas
567  CreateCanvas();
568 
569  // Create a dummy 2D-histogram to set the drawing ranges and titles
570  TString dummyName = GenerateName("histo");
571  TH2F *dummyHisto = new TH2F(dummyName.Data(), title, 10, xlow, xhigh, 10, ylow, yhigh);
572  SetHistogramStyle(dummyHisto, xTitle, yTitle);
573  dummyHisto->Draw();
574  }
void CreateCanvas()
Definition: JDrawer.h:533
void SetHistogramStyle(TH1 *hid, TString xtit, TString ytit)
Definition: JDrawer.h:143
TString GenerateName(const char *objectName)
Definition: JDrawer.h:185

◆ CreateCanvasGraphRow() [1/2]

void JDrawer::CreateCanvasGraphRow ( )
inline

Definition at line 617 of file JDrawer.h.

References fCanvas, fCanvasHeight, fCanvasWidth, fLeftRowPad, fMarginBottom, fMarginLeft, fMarginRight, fMarginTop, fMiddleRowPad, fRightRowPad, fTopLeftX, fTopLeftY, GenerateName(), GenerateNameForCanvas(), and SetPadValues().

Referenced by CreateCanvasGraphRow().

617  {
618  TString dummyName; // dummy name generator
619  dummyName = GenerateNameForCanvas();
620 
621  // Create the canvas
622  fCanvas = new TCanvas(dummyName.Data(), dummyName.Data(), fTopLeftX, fTopLeftY, fCanvasWidth, fCanvasHeight);
623  fCanvas->SetFillStyle(4000); // The created canvas is completely transparent
624  fCanvas->SetFillColor(10); // Canvas is filled with white color
625  gStyle->SetOptStat(0); // Disable the drawing of the statistics box to the canvas
626  gStyle->SetOptTitle(0); // Disable the drawing of titles to the canvas
627  fCanvas->SetMargin(0, 0, 0, 0); // Remove the margins from the bottom canvas
628  fCanvas->Draw(); // Draw the canvas to the screen
629 
630  // ---- Create the two pads to the canvas ----
631 
632  // First, find the correct relation between different pads based on the required margins
633  double smallMargin = 0.0006;
634  double evenSmallerMargin = 0.0002;
635  double relativePlotSizeLeftPad = 1 - (fMarginLeft + evenSmallerMargin);
636  double relativePlotSizeMiddlePad = 1 - (2 * smallMargin);
637  double relativePlotSizeRightPad = 1 - (fMarginRight + smallMargin);
638  double firstSeparator = 1 / (1 + relativePlotSizeLeftPad / relativePlotSizeMiddlePad +
639  relativePlotSizeLeftPad / relativePlotSizeRightPad);
640  double secondSeparator = firstSeparator + (relativePlotSizeLeftPad / relativePlotSizeMiddlePad) * firstSeparator;
641 
642  // The first pad stretches from the left corner 1/3 of the total horizontal space, taking into account marginals
643  dummyName = GenerateName("LeftPad");
644  fLeftRowPad = new TPad(dummyName.Data(), dummyName.Data(), 0, 0, firstSeparator, 1, 0);
645  fLeftRowPad->SetTopMargin(fMarginTop);
646  fLeftRowPad->SetBottomMargin(fMarginBottom);
647  fLeftRowPad->SetLeftMargin(fMarginLeft);
648  fLeftRowPad->SetRightMargin(
649  evenSmallerMargin); // Make the right margin small so that the pads fit nicely on top of each other
651  fLeftRowPad->Draw();
652 
653  // The second pad stretches from 1/3 of the total horizontal space to 2/3, taking into account marginals
654  dummyName = GenerateName("MiddlePad");
655  fMiddleRowPad = new TPad(dummyName.Data(), dummyName.Data(), firstSeparator, 0, secondSeparator, 1, 0);
656  fMiddleRowPad->SetTopMargin(fMarginTop);
657  fMiddleRowPad->SetBottomMargin(fMarginBottom);
658  fMiddleRowPad->SetLeftMargin(
659  smallMargin); // Make the left margin small so that the pads fit nicely on top of each other
660  fMiddleRowPad->SetRightMargin(
661  smallMargin); // Make the right margin small so that the pads fit nicely on top of each other
663  fMiddleRowPad->Draw();
664 
665  // The third pad stretches from 2/3 of the total horizontal space right corner, taking into account marginals
666  dummyName = GenerateName("RightPad");
667  fRightRowPad = new TPad(dummyName.Data(), dummyName.Data(), secondSeparator, 0, 1, 1, 0);
668  fRightRowPad->SetTopMargin(fMarginTop);
669  fRightRowPad->SetBottomMargin(fMarginBottom);
670  fRightRowPad->SetLeftMargin(
671  smallMargin); // Make the left margin small so that the pads fit nicely on top of each other
672  fRightRowPad->SetRightMargin(fMarginRight);
674  fRightRowPad->Draw();
675  }
int fTopLeftX
Definition: JDrawer.h:32
double fMarginBottom
Definition: JDrawer.h:28
TPad * fLeftRowPad
Definition: JDrawer.h:73
int fCanvasHeight
Definition: JDrawer.h:35
double fMarginTop
Definition: JDrawer.h:29
double fMarginRight
Definition: JDrawer.h:27
TPad * fMiddleRowPad
Definition: JDrawer.h:74
TCanvas * fCanvas
Definition: JDrawer.h:69
double fMarginLeft
Definition: JDrawer.h:26
TString GenerateName(const char *objectName)
Definition: JDrawer.h:185
TPad * fRightRowPad
Definition: JDrawer.h:75
int fTopLeftY
Definition: JDrawer.h:33
int fCanvasWidth
Definition: JDrawer.h:34
TString GenerateNameForCanvas()
Definition: JDrawer.h:193
void SetPadValues(TPad *pad)
Definition: JDrawer.h:172

◆ CreateCanvasGraphRow() [2/2]

void JDrawer::CreateCanvasGraphRow ( double  xlow,
double  xhigh,
double  ylow,
double  yhigh,
const char *  xTitle = "",
const char *  yTitle = "",
const char *  title = "" 
)
inline

Definition at line 688 of file JDrawer.h.

References CreateCanvasGraphRow(), GenerateName(), SelectPad(), SetHistogramStyle(), and runGCPTkAlMap::title.

694  {
695  // First make a canvas
697 
698  // Create a dummy 2D-histogram to set the drawing ranges and titles
699  SelectPad(0);
700  TString dummyName = GenerateName("histo");
701  TH2F *dummyHisto = new TH2F(dummyName.Data(), "", 10, xlow, xhigh, 10, ylow, yhigh);
702  SetHistogramStyle(dummyHisto, xTitle, yTitle);
703  dummyHisto->Draw();
704 
705  // Create a dummy 2D-histogram to set the drawing ranges and titles
706  SelectPad(1);
707  dummyName = GenerateName("histo");
708  dummyHisto = new TH2F(dummyName.Data(), title, 10, xlow, xhigh, 10, ylow, yhigh);
709  SetHistogramStyle(dummyHisto, xTitle, "");
710  dummyHisto->Draw();
711 
712  // Create a dummy 2D-histogram to set the drawing ranges and titles
713  SelectPad(2);
714  dummyName = GenerateName("histo");
715  dummyHisto = new TH2F(dummyName.Data(), "", 10, xlow, xhigh, 10, ylow, yhigh);
716  SetHistogramStyle(dummyHisto, xTitle, "");
717  dummyHisto->Draw();
718  }
void SelectPad(int padNumber)
Definition: JDrawer.h:1080
void CreateCanvasGraphRow()
Definition: JDrawer.h:617
void SetHistogramStyle(TH1 *hid, TString xtit, TString ytit)
Definition: JDrawer.h:143
TString GenerateName(const char *objectName)
Definition: JDrawer.h:185

◆ CreateSplitCanvas() [1/2]

void JDrawer::CreateSplitCanvas ( )
inline

Definition at line 579 of file JDrawer.h.

References fCanvas, fCanvasHeight, fCanvasWidth, fLowerSplitPad, fMarginBottom, fMarginLeft, fMarginRight, fMarginTop, fSplitRatio, fTopLeftX, fTopLeftY, fUpperSplitPad, GenerateName(), and GenerateNameForCanvas().

Referenced by CreateSplitCanvas(), DrawHistogramToLowerPad(), and DrawHistogramToUpperPad().

579  {
580  TString dummyName; // dummy name generator
581  dummyName = GenerateNameForCanvas();
582 
583  // Create the canvas
584  fCanvas = new TCanvas(dummyName.Data(), dummyName.Data(), fTopLeftX, fTopLeftY, fCanvasWidth, fCanvasHeight);
585  fCanvas->SetFillStyle(4000); // The created canvas is completely transparent
586  fCanvas->SetFillColor(10); // Canvas is filled with white color
587  gStyle->SetOptStat(0); // Disable the drawing of the statistics box to the canvas
588  gStyle->SetOptTitle(0); // Disable the drawing of titles to the canvas
589  fCanvas->SetMargin(0, 0, 0, 0); // Remove the margins from the bottom canvas
590  fCanvas->Draw(); // Draw the canvas to the screen
591 
592  // ---- Create the two pads to the canvas ----
593 
594  // The upper pad stretches from the top of the canvas to the defined split ratio
595  dummyName = GenerateName("UpperPad");
596  fUpperSplitPad = new TPad(dummyName.Data(), dummyName.Data(), 0, fSplitRatio, 1, 1, 0);
597  fUpperSplitPad->SetTopMargin(fMarginTop / (1 - fSplitRatio)); // Adjust top margin according to the split ratio
598  fUpperSplitPad->SetBottomMargin(
599  0.0015); // Make the bottom margin small so that the pads fit nicely on top of each other
600  fUpperSplitPad->SetLeftMargin(fMarginLeft);
601  fUpperSplitPad->SetRightMargin(fMarginRight);
602  fUpperSplitPad->Draw();
603 
604  // The lower pad stretches from the defined split ratio to the bottom of the canvas
605  dummyName = GenerateName("LowerPad");
606  fLowerSplitPad = new TPad(dummyName.Data(), dummyName.Data(), 0, 0, 1, fSplitRatio, 0);
607  fLowerSplitPad->SetTopMargin(0.0015); // Make the top margin small so that the pads fit nicely on top of each other
608  fLowerSplitPad->SetBottomMargin(fMarginBottom / fSplitRatio); // Adjust bottom margin according to the split ratio
609  fLowerSplitPad->SetLeftMargin(fMarginLeft);
610  fLowerSplitPad->SetRightMargin(fMarginRight);
611  fLowerSplitPad->Draw();
612  }
int fTopLeftX
Definition: JDrawer.h:32
double fMarginBottom
Definition: JDrawer.h:28
TPad * fUpperSplitPad
Definition: JDrawer.h:71
int fCanvasHeight
Definition: JDrawer.h:35
double fMarginTop
Definition: JDrawer.h:29
double fMarginRight
Definition: JDrawer.h:27
TCanvas * fCanvas
Definition: JDrawer.h:69
double fMarginLeft
Definition: JDrawer.h:26
TString GenerateName(const char *objectName)
Definition: JDrawer.h:185
double fSplitRatio
Definition: JDrawer.h:78
int fTopLeftY
Definition: JDrawer.h:33
int fCanvasWidth
Definition: JDrawer.h:34
TString GenerateNameForCanvas()
Definition: JDrawer.h:193
TPad * fLowerSplitPad
Definition: JDrawer.h:72

◆ CreateSplitCanvas() [2/2]

void JDrawer::CreateSplitCanvas ( int  canvasIndex,
int  canvasesInRow 
)
inline

Definition at line 726 of file JDrawer.h.

References CreateSplitCanvas(), SetCanvasDisplacement(), SetDefaultAppearanceSplitCanvas(), and SetNumberOfCanvasesInOneRow().

726  {
728  SetNumberOfCanvasesInOneRow(canvasesInRow);
729  SetCanvasDisplacement(canvasIndex);
731  }
void SetCanvasDisplacement(int x, int y)
Definition: JDrawer.h:900
void SetNumberOfCanvasesInOneRow(int canvasesInRow)
Definition: JDrawer.h:939
void SetDefaultAppearanceSplitCanvas()
Definition: JDrawer.h:1023
void CreateSplitCanvas()
Definition: JDrawer.h:579

◆ DrawFunction() [1/2]

void JDrawer::DrawFunction ( TF1 *  myFun,
const char *  xTitle,
const char *  yTitle,
const char *  title = "",
const char *  drawOption = "" 
)
inline

Definition at line 442 of file JDrawer.h.

References CreateCanvas(), histoStyle::drawOption, SetFunctionStyle(), and runGCPTkAlMap::title.

443  {
444  // If no titles are given, keep the original ones
445  if (strcmp(xTitle, "") == 0)
446  xTitle = myFun->GetXaxis()
447  ->GetTitle(); // To compare char*:s we need to use strcmp function provided by <cstring> library
448  if (strcmp(yTitle, "") == 0)
449  yTitle = myFun->GetYaxis()->GetTitle();
450  if (strcmp(title, "") == 0)
451  title = myFun->GetTitle();
452 
453  // Set up the histogram and draw it to canvas
454  CreateCanvas();
455  myFun->SetTitle(title);
456  SetFunctionStyle(myFun, xTitle, yTitle);
457  myFun->Draw(drawOption);
458  }
void CreateCanvas()
Definition: JDrawer.h:533
void SetFunctionStyle(TF1 *hid, TString xtit, TString ytit)
Definition: JDrawer.h:154

◆ DrawFunction() [2/2]

void JDrawer::DrawFunction ( TF1 *  myFun,
const char *  drawOption = "" 
)
inline

Definition at line 466 of file JDrawer.h.

References DrawFunction(), and histoStyle::drawOption.

Referenced by DrawFunction().

466 { DrawFunction(myFun, "", "", "", drawOption); }
void DrawFunction(TF1 *myFun, const char *xTitle, const char *yTitle, const char *title="", const char *drawOption="")
Definition: JDrawer.h:442

◆ DrawGraph()

void JDrawer::DrawGraph ( TGraph *  graph,
double  xlow,
double  xhigh,
double  ylow,
double  yhigh,
const char *  xTitle = "",
const char *  yTitle = "",
const char *  title = "",
const char *  drawOption = "" 
)
inline

Definition at line 379 of file JDrawer.h.

References CreateCanvas(), histoStyle::drawOption, and runGCPTkAlMap::title.

387  {
388  // Create the canvas with right specs and a graph into it
389  CreateCanvas(xlow, xhigh, ylow, yhigh, xTitle, yTitle, title);
390  graph->Draw(drawOption);
391  }
void CreateCanvas()
Definition: JDrawer.h:533

◆ DrawGraphCustomAxes()

void JDrawer::DrawGraphCustomAxes ( TGraph *  graph,
double  xlow,
double  xhigh,
double  ylow,
double  yhigh,
const char *  xTitle = "",
const char *  yTitle = "",
const char *  title = "",
const char *  drawOption = "" 
)
inline

Definition at line 406 of file JDrawer.h.

References CreateCanvas(), histoStyle::drawOption, SetGraphStyle(), and runGCPTkAlMap::title.

414  {
415  // If no titles are given, keep the original ones
416  if (strcmp(xTitle, "") == 0)
417  xTitle = graph->GetXaxis()
418  ->GetTitle(); // To compare char*:s we need to use strcmp function provided by <cstring> library
419  if (strcmp(yTitle, "") == 0)
420  yTitle = graph->GetYaxis()->GetTitle();
421  if (strcmp(title, "") == 0)
422  title = graph->GetTitle();
423 
424  // Set up the histogram and draw it to canvas
425  CreateCanvas();
426  graph->SetTitle(title);
427  graph->GetXaxis()->SetRangeUser(xlow, xhigh);
428  graph->GetYaxis()->SetRangeUser(ylow, yhigh);
429  SetGraphStyle(graph, xTitle, yTitle);
430  graph->Draw(drawOption);
431  }
void SetGraphStyle(TGraph *hid, TString xtit, TString ytit)
Definition: JDrawer.h:165
void CreateCanvas()
Definition: JDrawer.h:533

◆ DrawHistogram() [1/2]

void JDrawer::DrawHistogram ( TH1 *  histo,
const char *  xTitle,
const char *  yTitle,
const char *  title = "",
const char *  drawOption = "" 
)
inline

Definition at line 256 of file JDrawer.h.

References CreateCanvas(), histoStyle::drawOption, timingPdfMaker::histo, SetHistogramStyle(), and runGCPTkAlMap::title.

257  {
258  // If no titles are given, keep the original ones
259  if (strcmp(xTitle, "") == 0)
260  xTitle = histo->GetXaxis()
261  ->GetTitle(); // To compare char*:s we need to use strcmp function provided by <cstring> library
262  if (strcmp(yTitle, "") == 0)
263  yTitle = histo->GetYaxis()->GetTitle();
264  if (strcmp(title, "") == 0)
265  title = histo->GetTitle();
266 
267  // Set up the histogram and draw it to canvas
268  CreateCanvas();
269  histo->SetTitle(title);
270  SetHistogramStyle(histo, xTitle, yTitle);
271  histo->Draw(drawOption);
272  }
void CreateCanvas()
Definition: JDrawer.h:533
void SetHistogramStyle(TH1 *hid, TString xtit, TString ytit)
Definition: JDrawer.h:143

◆ DrawHistogram() [2/2]

void JDrawer::DrawHistogram ( TH1 *  histo,
const char *  drawOption = "" 
)
inline

Definition at line 280 of file JDrawer.h.

References DrawHistogram(), histoStyle::drawOption, and timingPdfMaker::histo.

Referenced by DrawHistogram().

280 { DrawHistogram(histo, "", "", "", drawOption); }
void DrawHistogram(TH1 *histo, const char *xTitle, const char *yTitle, const char *title="", const char *drawOption="")
Definition: JDrawer.h:256

◆ DrawHistogramToCurrentCanvas()

void JDrawer::DrawHistogramToCurrentCanvas ( TH1 *  histo,
const char *  xTitle,
const char *  yTitle,
const char *  title = "",
const char *  drawOption = "" 
)
inline

Definition at line 230 of file JDrawer.h.

References histoStyle::drawOption, timingPdfMaker::histo, SetHistogramStyle(), and runGCPTkAlMap::title.

231  {
232  // If no titles are given, keep the original ones
233  if (strcmp(xTitle, "") == 0)
234  xTitle = histo->GetXaxis()
235  ->GetTitle(); // To compare char*:s we need to use strcmp function provided by <cstring> library
236  if (strcmp(yTitle, "") == 0)
237  yTitle = histo->GetYaxis()->GetTitle();
238  if (strcmp(title, "") == 0)
239  title = histo->GetTitle();
240 
241  // Set up the histogram and draw it to current canvas
242  histo->SetTitle(title);
243  SetHistogramStyle(histo, xTitle, yTitle);
244  histo->Draw(drawOption);
245  }
void SetHistogramStyle(TH1 *hid, TString xtit, TString ytit)
Definition: JDrawer.h:143

◆ DrawHistogramToLowerPad()

void JDrawer::DrawHistogramToLowerPad ( TH1 *  histo,
const char *  xTitle = "",
const char *  yTitle = "",
const char *  title = "",
const char *  drawOption = "" 
)
inline

Definition at line 352 of file JDrawer.h.

References CreateSplitCanvas(), DrawHistogramToPad(), histoStyle::drawOption, fLowerSplitPad, timingPdfMaker::histo, and runGCPTkAlMap::title.

356  {
357  // If there is no lower pad, create one
358  if (fLowerSplitPad == nullptr) {
359  //SetDefaultAppearanceSplitCanvas();
361  }
362 
364  }
void CreateSplitCanvas()
Definition: JDrawer.h:579
void DrawHistogramToPad(TH1 *histo, TPad *drawPad, const char *xTitle="", const char *yTitle="", const char *title="", const char *drawOption="")
Definition: JDrawer.h:291
TPad * fLowerSplitPad
Definition: JDrawer.h:72

◆ DrawHistogramToPad()

void JDrawer::DrawHistogramToPad ( TH1 *  histo,
TPad *  drawPad,
const char *  xTitle = "",
const char *  yTitle = "",
const char *  title = "",
const char *  drawOption = "" 
)
inline

Definition at line 291 of file JDrawer.h.

References histoStyle::drawOption, timingPdfMaker::histo, SetHistogramStyle(), SetPadValues(), and runGCPTkAlMap::title.

Referenced by DrawHistogramToLowerPad(), and DrawHistogramToUpperPad().

296  {
297  // If no titles are given, keep the original ones
298  if (strcmp(xTitle, "") == 0)
299  xTitle = histo->GetXaxis()
300  ->GetTitle(); // To compare char*:s we need to use strcmp function provided by <cstring> library
301  if (strcmp(yTitle, "") == 0)
302  yTitle = histo->GetYaxis()->GetTitle();
303  if (strcmp(title, "") == 0)
304  title = histo->GetTitle();
305 
306  // Change to the desired pad
307  SetPadValues(drawPad);
308  drawPad->cd();
309 
310  // Remove statistics box and title
311  gStyle->SetOptStat(0);
312  gStyle->SetOptTitle(0);
313 
314  // Set up the histogram and draw it to the pad
315  histo->SetTitle(title);
316  SetHistogramStyle(histo, xTitle, yTitle);
317  histo->Draw(drawOption);
318  }
void SetHistogramStyle(TH1 *hid, TString xtit, TString ytit)
Definition: JDrawer.h:143
void SetPadValues(TPad *pad)
Definition: JDrawer.h:172

◆ DrawHistogramToUpperPad()

void JDrawer::DrawHistogramToUpperPad ( TH1 *  histo,
const char *  xTitle = "",
const char *  yTitle = "",
const char *  title = "",
const char *  drawOption = "" 
)
inline

Definition at line 329 of file JDrawer.h.

References CreateSplitCanvas(), DrawHistogramToPad(), histoStyle::drawOption, fUpperSplitPad, timingPdfMaker::histo, and runGCPTkAlMap::title.

333  {
334  // If there is no upper pad, create one
335  if (fUpperSplitPad == nullptr) {
336  //SetDefaultAppearanceSplitCanvas();
338  }
339 
341  }
TPad * fUpperSplitPad
Definition: JDrawer.h:71
void CreateSplitCanvas()
Definition: JDrawer.h:579
void DrawHistogramToPad(TH1 *histo, TPad *drawPad, const char *xTitle="", const char *yTitle="", const char *title="", const char *drawOption="")
Definition: JDrawer.h:291

◆ GenerateName()

TString JDrawer::GenerateName ( const char *  objectName)
inlineprivate

Definition at line 185 of file JDrawer.h.

References fNameIndex, fTopLeftX, fTopLeftY, Skims_PA_cff::name, and summarizeEdmComparisonLogfiles::objectName.

Referenced by CreateCanvas(), CreateCanvasGraphRow(), and CreateSplitCanvas().

185  {
186  TString name = Form("%s%d%d%d", objectName, fNameIndex++, fTopLeftX, fTopLeftY);
187  return name.Data();
188  }
int fTopLeftX
Definition: JDrawer.h:32
int fNameIndex
Definition: JDrawer.h:81
int fTopLeftY
Definition: JDrawer.h:33

◆ GenerateNameForCanvas()

TString JDrawer::GenerateNameForCanvas ( )
inlineprivate

Definition at line 193 of file JDrawer.h.

References fNameIndex, fTopLeftX, fTopLeftY, and Skims_PA_cff::name.

Referenced by CreateCanvas(), CreateCanvasGraphRow(), and CreateSplitCanvas().

193  {
194  TString name;
195  name = Form("canvas%d%d", fTopLeftX, fTopLeftY);
196  while (true) {
197  // If a canvas with a specified name does not exist, accept the name
198  if (gROOT->GetListOfCanvases()->FindObject(name) == nullptr) {
199  return name.Data();
200  }
201 
202  // If a canvas with a specified name does exist, try a new name
203  name = Form("canvas%d%d%d", fTopLeftX, fTopLeftY, fNameIndex++);
204  }
205  }
int fTopLeftX
Definition: JDrawer.h:32
int fNameIndex
Definition: JDrawer.h:81
int fTopLeftY
Definition: JDrawer.h:33

◆ GetCanvasDisplacementX()

int JDrawer::GetCanvasDisplacementX ( )
inline

Definition at line 883 of file JDrawer.h.

References fTopLeftX.

883 { return fTopLeftX; }
int fTopLeftX
Definition: JDrawer.h:32

◆ GetCanvasDisplacementY()

int JDrawer::GetCanvasDisplacementY ( )
inline

Definition at line 886 of file JDrawer.h.

References fTopLeftY.

886 { return fTopLeftY; }
int fTopLeftY
Definition: JDrawer.h:33

◆ GetCanvasName()

TString JDrawer::GetCanvasName ( )
inline

Definition at line 1142 of file JDrawer.h.

References gather_cfg::cout, fCanvas, and Skims_PA_cff::name.

1142  {
1143  if (fCanvas == nullptr) {
1144  std::cout << "Error: No canvas defined! Cannot return name." << std::endl;
1145  return "";
1146  }
1147  TString name = Form("%s", fCanvas->GetName());
1148  return name;
1149  }
TCanvas * fCanvas
Definition: JDrawer.h:69

◆ GetLowerPad()

TPad* JDrawer::GetLowerPad ( )
inline

Definition at line 1116 of file JDrawer.h.

References fLowerSplitPad.

1116 { return fLowerSplitPad; }
TPad * fLowerSplitPad
Definition: JDrawer.h:72

◆ GetPad()

TPad* JDrawer::GetPad ( int  padNumber)
inline

Definition at line 1055 of file JDrawer.h.

References fLeftRowPad, fLowerSplitPad, fMiddleRowPad, fRightRowPad, and fUpperSplitPad.

1055  {
1056  switch (padNumber) {
1057  case 0:
1058  return fLeftRowPad;
1059 
1060  case 1:
1061  return fMiddleRowPad;
1062 
1063  case 2:
1064  return fRightRowPad;
1065 
1066  case 3:
1067  return fUpperSplitPad;
1068 
1069  case 4:
1070  return fLowerSplitPad;
1071 
1072  default:
1073  return nullptr;
1074  }
1075  }
TPad * fUpperSplitPad
Definition: JDrawer.h:71
TPad * fLeftRowPad
Definition: JDrawer.h:73
TPad * fMiddleRowPad
Definition: JDrawer.h:74
TPad * fRightRowPad
Definition: JDrawer.h:75
TPad * fLowerSplitPad
Definition: JDrawer.h:72

◆ GetUpperPad()

TPad* JDrawer::GetUpperPad ( )
inline

Definition at line 1111 of file JDrawer.h.

References fUpperSplitPad.

1111 { return fUpperSplitPad; }
TPad * fUpperSplitPad
Definition: JDrawer.h:71

◆ Reset()

void JDrawer::Reset ( )
inline

Definition at line 471 of file JDrawer.h.

References fCanvas, fCanvasDisplacementX, fCanvasDisplacementY, fCanvasesInOneRow, fCanvasHeight, fCanvasWidth, fDivisionsX, fDivisionsY, fFont, fGridX, fGridY, fLabelOffsetX, fLabelOffsetY, fLabelOffsetZ, fLabelSizeX, fLabelSizeY, fLabelSizeZ, fLeftRowPad, fLogX, fLogY, fLogZ, fLowerSplitPad, fMarginBottom, fMarginLeft, fMarginRight, fMarginTop, fMiddleRowPad, fRightRowPad, fSinglePad, fSplitRatio, fTickX, fTickY, fTitleOffsetX, fTitleOffsetY, fTitleOffsetZ, fTitleSizeX, fTitleSizeY, fTitleSizeZ, fTopLeftX, fTopLeftY, and fUpperSplitPad.

Referenced by JDrawer(), SetDefaultAppearanceGraph(), SetDefaultAppearanceGraphRow(), and SetDefaultAppearanceSplitCanvas().

471  {
472  // Set default values for margins
473  fMarginLeft = 0.15; // left margin
474  fMarginRight = 0.06; // right margin
475  fMarginBottom = 0.15; // bottom margin
476  fMarginTop = 0.06; // top margin
477 
478  // Set default values for the size and place of the canvas
479  fTopLeftX = 10; // Number of pixels the the canvas is out of the top left corner of the screen in x-direction
480  fTopLeftY = 10; // Number of pixels the the canvas is out of the top left corner of the screen in y-direction
481  fCanvasWidth = 700; // Width of the canvas
482  fCanvasHeight = 500; // Height of the canvas
483 
484  // Set default values for histogram appearance settings
485  fTitleOffsetX = 1.1; // Offset of the x-axis title
486  fTitleOffsetY = 1.1; // Offset of the y-axis title
487  fTitleOffsetZ = 1.3; // Pffset of the z-axis title
488  fTitleSizeX = 0.06; // Size of the x-axis title
489  fTitleSizeY = 0.06; // Size of the y-axis title
490  fTitleSizeZ = 0.06; // Size of the z-axis title
491  fLabelOffsetX = 0.01; // Offset of the x-axis label
492  fLabelOffsetY = 0.001; // Offset of the y-axis label
493  fLabelOffsetZ = 0.001; // Offset of the z-axis label
494  fLabelSizeX = 0.05; // Size of the x-axis label
495  fLabelSizeY = 0.05; // Size of the y-axis label
496  fLabelSizeZ = 0.05; // Size of the z-axis label
497  fDivisionsX = 505; // The number of divisions in x-axis
498  fDivisionsY = 505; // The number of divisions in y-axis
499  fFont = 42; // Font index for titles and labels
500 
501  // Axes are linear by default
502  fLogX = 0; // 1: Logarithmic x-axis, 0: linear x-axis
503  fLogY = 0; // 1: Logarithmic y-axis, 0: linear y-axis
504  fLogZ = 0; // 1: Logarithmic z-axis, 0: linear z-axis
505 
506  // Set default values for canves displacement information
507  fCanvasDisplacementX = 100; // Displacement of the canvas for one index in x-direction
508  fCanvasDisplacementY = 100; // Displacement of the canvas for one index in y-direction
509  fCanvasesInOneRow = 10; // Number of canvases in a row before a new row is started
510 
511  // Set defauls values for pad properties
512  fGridX = 0; // 1: Grid in x-axis, 0: no grid
513  fGridY = 0; // 1: Grid in y-axis, 0: no grid
514  fTickX = 1; // 1: Ticks in x-axis, 0: no ticks
515  fTickY = 1; // 1: Ticks in y-axis, 0: no ticks
516 
517  // Default setting values for splitted canvas
518  fSplitRatio = 0.4; // The percentage of the lower pad from the total canvas when splitting the canvas
519 
520  // Set the canvas handles to null
521  fCanvas = nullptr;
522  fSinglePad = nullptr;
523  fUpperSplitPad = nullptr;
524  fLowerSplitPad = nullptr;
525  fLeftRowPad = nullptr;
526  fMiddleRowPad = nullptr;
527  fRightRowPad = nullptr;
528  }
int fTickX
Definition: JDrawer.h:60
int fTopLeftX
Definition: JDrawer.h:32
double fDivisionsY
Definition: JDrawer.h:51
double fMarginBottom
Definition: JDrawer.h:28
TPad * fUpperSplitPad
Definition: JDrawer.h:71
TPad * fLeftRowPad
Definition: JDrawer.h:73
int fCanvasHeight
Definition: JDrawer.h:35
int fGridY
Definition: JDrawer.h:59
int fTickY
Definition: JDrawer.h:61
double fTitleSizeY
Definition: JDrawer.h:42
double fMarginTop
Definition: JDrawer.h:29
double fTitleSizeX
Definition: JDrawer.h:41
double fTitleOffsetZ
Definition: JDrawer.h:40
double fMarginRight
Definition: JDrawer.h:27
int fFont
Definition: JDrawer.h:52
double fLabelOffsetY
Definition: JDrawer.h:45
TPad * fMiddleRowPad
Definition: JDrawer.h:74
int fLogY
Definition: JDrawer.h:56
int fLogZ
Definition: JDrawer.h:57
double fTitleSizeZ
Definition: JDrawer.h:43
TCanvas * fCanvas
Definition: JDrawer.h:69
double fLabelOffsetZ
Definition: JDrawer.h:46
double fLabelSizeX
Definition: JDrawer.h:47
double fLabelSizeZ
Definition: JDrawer.h:49
double fLabelSizeY
Definition: JDrawer.h:48
double fMarginLeft
Definition: JDrawer.h:26
int fCanvasDisplacementX
Definition: JDrawer.h:64
double fDivisionsX
Definition: JDrawer.h:50
int fCanvasesInOneRow
Definition: JDrawer.h:66
double fTitleOffsetX
Definition: JDrawer.h:38
double fLabelOffsetX
Definition: JDrawer.h:44
TPad * fRightRowPad
Definition: JDrawer.h:75
double fSplitRatio
Definition: JDrawer.h:78
int fTopLeftY
Definition: JDrawer.h:33
TPad * fSinglePad
Definition: JDrawer.h:70
int fCanvasWidth
Definition: JDrawer.h:34
double fTitleOffsetY
Definition: JDrawer.h:39
int fLogX
Definition: JDrawer.h:55
int fCanvasDisplacementY
Definition: JDrawer.h:65
int fGridX
Definition: JDrawer.h:58
TPad * fLowerSplitPad
Definition: JDrawer.h:72

◆ SelectLowerPad()

void JDrawer::SelectLowerPad ( )
inline

Definition at line 1126 of file JDrawer.h.

References fLowerSplitPad.

1126 { fLowerSplitPad->cd(); }
TPad * fLowerSplitPad
Definition: JDrawer.h:72

◆ SelectPad()

void JDrawer::SelectPad ( int  padNumber)
inline

Definition at line 1080 of file JDrawer.h.

References gather_cfg::cout, fLeftRowPad, fLowerSplitPad, fMiddleRowPad, fRightRowPad, and fUpperSplitPad.

Referenced by CreateCanvasGraphRow().

1080  {
1081  switch (padNumber) {
1082  case 0:
1083  fLeftRowPad->cd();
1084  break;
1085 
1086  case 1:
1087  fMiddleRowPad->cd();
1088  break;
1089 
1090  case 2:
1091  fRightRowPad->cd();
1092  break;
1093 
1094  case 3:
1095  fUpperSplitPad->cd();
1096  break;
1097 
1098  case 4:
1099  fLowerSplitPad->cd();
1100  break;
1101 
1102  default:
1103  std::cout << "Pad " << padNumber << " not found" << std::endl;
1104  break;
1105  }
1106  }
TPad * fUpperSplitPad
Definition: JDrawer.h:71
TPad * fLeftRowPad
Definition: JDrawer.h:73
TPad * fMiddleRowPad
Definition: JDrawer.h:74
TPad * fRightRowPad
Definition: JDrawer.h:75
TPad * fLowerSplitPad
Definition: JDrawer.h:72

◆ SelectUpperPad()

void JDrawer::SelectUpperPad ( )
inline

Definition at line 1121 of file JDrawer.h.

References fUpperSplitPad.

1121 { fUpperSplitPad->cd(); }
TPad * fUpperSplitPad
Definition: JDrawer.h:71

◆ SetAxisStyles()

void JDrawer::SetAxisStyles ( TAxis *  xAxis,
TAxis *  yAxis,
TAxis *  zAxis,
TString  xtit,
TString  ytit 
)
inlineprivate

Definition at line 94 of file JDrawer.h.

References fDivisionsX, fDivisionsY, fFont, fLabelOffsetX, fLabelOffsetY, fLabelOffsetZ, fLabelSizeX, fLabelSizeY, fLabelSizeZ, fTitleOffsetX, fTitleOffsetY, fTitleOffsetZ, fTitleSizeX, fTitleSizeY, fTitleSizeZ, HLT_2024v10_cff::xAxis, HLT_2024v10_cff::yAxis, and HLT_2024v10_cff::zAxis.

Referenced by SetFunctionStyle(), SetGraphStyle(), and SetHistogramStyle().

94  {
95  xAxis->CenterTitle(true); // Axis titles are centered
96  yAxis->CenterTitle(true); // Axis titles are centered
97  if (zAxis)
98  zAxis->CenterTitle(true); // Axis titles are centered
99 
100  xAxis->SetTitleOffset(fTitleOffsetX); // Give a small offset to the title so that it does overlap with axis
101  yAxis->SetTitleOffset(fTitleOffsetY); // Give a small offset to the title so that it does overlap with axis
102  if (zAxis)
103  zAxis->SetTitleOffset(fTitleOffsetZ); // Give a small offset to the title so that it does overlap with axis
104 
105  xAxis->SetTitleSize(fTitleSizeX); // Define the size of the title
106  yAxis->SetTitleSize(fTitleSizeY); // Define the size of the title
107  if (zAxis)
108  zAxis->SetTitleSize(fTitleSizeZ); // Define the size of the title
109 
110  xAxis->SetLabelOffset(fLabelOffsetX); // Give a small offset to the label so that it does overlap with axis
111  yAxis->SetLabelOffset(fLabelOffsetY); // Give a small offset to the label so that it does overlap with axis
112  if (zAxis)
113  zAxis->SetLabelOffset(fLabelOffsetZ); // Give a small offset to the label so that it does overlap with axis
114 
115  xAxis->SetLabelSize(fLabelSizeX); // Define the sixe of the label
116  yAxis->SetLabelSize(fLabelSizeY); // Define the sixe of the label
117  if (zAxis)
118  zAxis->SetLabelSize(fLabelSizeZ); // Define the sixe of the label
119 
120  xAxis->SetNdivisions(fDivisionsX); // Set the number of division markers
121  yAxis->SetNdivisions(fDivisionsY); // Set the number of division markers
122 
123  xAxis->SetTitle(xtit); // Set the axis title
124  yAxis->SetTitle(ytit); // Set the axis title
125 
126  xAxis->SetLabelFont(fFont); // Set the label font
127  yAxis->SetLabelFont(fFont); // Set the label font
128  if (zAxis)
129  zAxis->SetLabelFont(fFont); // Set the label font
130  xAxis->SetTitleFont(fFont); // Set the title font
131  yAxis->SetTitleFont(fFont); // Set the title font
132  if (zAxis)
133  zAxis->SetTitleFont(fFont); // Set the title font
134  }
double fDivisionsY
Definition: JDrawer.h:51
double fTitleSizeY
Definition: JDrawer.h:42
double fTitleSizeX
Definition: JDrawer.h:41
double fTitleOffsetZ
Definition: JDrawer.h:40
int fFont
Definition: JDrawer.h:52
double fLabelOffsetY
Definition: JDrawer.h:45
double fTitleSizeZ
Definition: JDrawer.h:43
double fLabelOffsetZ
Definition: JDrawer.h:46
double fLabelSizeX
Definition: JDrawer.h:47
double fLabelSizeZ
Definition: JDrawer.h:49
double fLabelSizeY
Definition: JDrawer.h:48
double fDivisionsX
Definition: JDrawer.h:50
double fTitleOffsetX
Definition: JDrawer.h:38
double fLabelOffsetX
Definition: JDrawer.h:44
double fTitleOffsetY
Definition: JDrawer.h:39

◆ SetBottomMargin()

void JDrawer::SetBottomMargin ( double  margin)
inline

Definition at line 740 of file JDrawer.h.

References fMarginBottom, and margin.

740 { fMarginBottom = margin; }
double fMarginBottom
Definition: JDrawer.h:28
Double_t margin

◆ SetCanvasDisplacement() [1/2]

void JDrawer::SetCanvasDisplacement ( int  x,
int  y 
)
inline

Definition at line 900 of file JDrawer.h.

References SetCanvasDisplacementX(), SetCanvasDisplacementY(), x, and y.

Referenced by CreateSplitCanvas().

900  {
903  }
void SetCanvasDisplacementX(int displacement)
Definition: JDrawer.h:889
void SetCanvasDisplacementY(int displacement)
Definition: JDrawer.h:892

◆ SetCanvasDisplacement() [2/2]

void JDrawer::SetCanvasDisplacement ( int  index)
inline

Definition at line 916 of file JDrawer.h.

References fCanvasDisplacementX, fCanvasDisplacementY, fCanvasesInOneRow, SetCanvasDisplacementX(), and SetCanvasDisplacementY().

916  {
919  }
void SetCanvasDisplacementX(int displacement)
Definition: JDrawer.h:889
void SetCanvasDisplacementY(int displacement)
Definition: JDrawer.h:892
int fCanvasDisplacementX
Definition: JDrawer.h:64
int fCanvasesInOneRow
Definition: JDrawer.h:66
int fCanvasDisplacementY
Definition: JDrawer.h:65

◆ SetCanvasDisplacementSettings()

void JDrawer::SetCanvasDisplacementSettings ( int  displacementX,
int  displacementY,
int  canvasesInRow 
)
inline

Definition at line 928 of file JDrawer.h.

References fCanvasDisplacementX, fCanvasDisplacementY, and fCanvasesInOneRow.

928  {
929  fCanvasDisplacementX = displacementX;
930  fCanvasDisplacementY = displacementY;
931  fCanvasesInOneRow = canvasesInRow;
932  }
int fCanvasDisplacementX
Definition: JDrawer.h:64
int fCanvasesInOneRow
Definition: JDrawer.h:66
int fCanvasDisplacementY
Definition: JDrawer.h:65

◆ SetCanvasDisplacementX()

void JDrawer::SetCanvasDisplacementX ( int  displacement)
inline

Definition at line 889 of file JDrawer.h.

References fTopLeftX.

Referenced by SetCanvasDisplacement().

889 { fTopLeftX = displacement; }
int fTopLeftX
Definition: JDrawer.h:32

◆ SetCanvasDisplacementY()

void JDrawer::SetCanvasDisplacementY ( int  displacement)
inline

Definition at line 892 of file JDrawer.h.

References fTopLeftY.

Referenced by SetCanvasDisplacement().

892 { fTopLeftY = displacement; }
int fTopLeftY
Definition: JDrawer.h:33

◆ SetCanvasSize()

void JDrawer::SetCanvasSize ( int  width,
int  height 
)
inline

Definition at line 947 of file JDrawer.h.

References fCanvasHeight, fCanvasWidth, and ApeEstimator_cff::width.

947  {
949  fCanvasHeight = height;
950  }
int fCanvasHeight
Definition: JDrawer.h:35
int fCanvasWidth
Definition: JDrawer.h:34

◆ SetDefaultAppearanceGraph()

void JDrawer::SetDefaultAppearanceGraph ( )
inline

Definition at line 1035 of file JDrawer.h.

References Reset(), SetHistogramAppearance(), SetLeftMargin(), and SetRelativeCanvasSize().

1035  {
1036  Reset();
1037  SetHistogramAppearance(0.9, 1.3, 0.06, 0.05, 0.01, 0.001, 0.05, 0.05, 505, 505, 42);
1038  SetRelativeCanvasSize(0.8, 1);
1039  SetLeftMargin(0.17);
1040  }
void SetRelativeCanvasSize(double relativeSize, double aspectRatio)
Definition: JDrawer.h:1134
void SetLeftMargin(double margin)
Definition: JDrawer.h:734
void Reset()
Definition: JDrawer.h:471
void SetHistogramAppearance(double titoffx, double titoffy, double titsizex, double titsizey, double labeloffx, double labeloffy, double labelsizex, double labelsizey, int divx, int divy, int fontIndex)
Definition: JDrawer.h:819

◆ SetDefaultAppearanceGraphRow()

void JDrawer::SetDefaultAppearanceGraphRow ( )
inline

Definition at line 1045 of file JDrawer.h.

References Reset(), SetHistogramAppearance(), SetLeftMargin(), and SetRelativeCanvasSize().

1045  {
1046  Reset();
1047  SetHistogramAppearance(0.9, 1.3, 0.06, 0.05, 0.01, 0.001, 0.05, 0.05, 505, 505, 42);
1048  SetRelativeCanvasSize(0.8, 3);
1049  SetLeftMargin(0.17);
1050  }
void SetRelativeCanvasSize(double relativeSize, double aspectRatio)
Definition: JDrawer.h:1134
void SetLeftMargin(double margin)
Definition: JDrawer.h:734
void Reset()
Definition: JDrawer.h:471
void SetHistogramAppearance(double titoffx, double titoffy, double titsizex, double titsizey, double labeloffx, double labeloffy, double labelsizex, double labelsizey, int divx, int divy, int fontIndex)
Definition: JDrawer.h:819

◆ SetDefaultAppearanceSplitCanvas()

void JDrawer::SetDefaultAppearanceSplitCanvas ( )
inline

Definition at line 1023 of file JDrawer.h.

References Reset(), SetHistogramAppearance(), SetMargins(), SetRelativeCanvasSize(), and SetSplitRatio().

Referenced by CreateSplitCanvas().

1023  {
1024  Reset();
1025  //SetHistogramAppearance(2.5, 2.5, 20, 20, 0.01, 0.001, 16, 16, 505, 505, 43); // Smaller label size for axes
1026  SetHistogramAppearance(2.5, 2.3, 25, 25, 0.01, 0.001, 20, 20, 505, 505, 43); // Increased label size for axes
1027  SetSplitRatio(0.4);
1028  SetRelativeCanvasSize(1.1, 0.7);
1029  SetMargins(0.21, 0.05, 0.09, 0.1); // Left, right, top, bottom
1030  }
void SetSplitRatio(double split)
Definition: JDrawer.h:1015
void SetRelativeCanvasSize(double relativeSize, double aspectRatio)
Definition: JDrawer.h:1134
void Reset()
Definition: JDrawer.h:471
void SetHistogramAppearance(double titoffx, double titoffy, double titsizex, double titsizey, double labeloffx, double labeloffy, double labelsizex, double labelsizey, int divx, int divy, int fontIndex)
Definition: JDrawer.h:819
void SetMargins(double left, double right, double top, double bottom)
Definition: JDrawer.h:753

◆ SetFont()

void JDrawer::SetFont ( int  fontIndex)
inline

Definition at line 791 of file JDrawer.h.

References fFont.

791 { fFont = fontIndex; }
int fFont
Definition: JDrawer.h:52

◆ SetFunctionStyle()

void JDrawer::SetFunctionStyle ( TF1 *  hid,
TString  xtit,
TString  ytit 
)
inlineprivate

Definition at line 154 of file JDrawer.h.

References SetAxisStyles().

Referenced by DrawFunction().

154  {
155  SetAxisStyles(hid->GetXaxis(), hid->GetYaxis(), hid->GetZaxis(), xtit, ytit);
156  }
void SetAxisStyles(TAxis *xAxis, TAxis *yAxis, TAxis *zAxis, TString xtit, TString ytit)
Definition: JDrawer.h:94

◆ SetGraphStyle()

void JDrawer::SetGraphStyle ( TGraph *  hid,
TString  xtit,
TString  ytit 
)
inlineprivate

Definition at line 165 of file JDrawer.h.

References SetAxisStyles().

Referenced by DrawGraphCustomAxes().

165  {
166  SetAxisStyles(hid->GetXaxis(), hid->GetYaxis(), nullptr, xtit, ytit);
167  }
void SetAxisStyles(TAxis *xAxis, TAxis *yAxis, TAxis *zAxis, TString xtit, TString ytit)
Definition: JDrawer.h:94

◆ SetGrid()

void JDrawer::SetGrid ( int  gridX,
int  gridY 
)
inline

Definition at line 977 of file JDrawer.h.

References SetGridX(), and SetGridY().

977  {
978  SetGridX(gridX);
979  SetGridY(gridY);
980  }
void SetGridX(bool grid=true)
Definition: JDrawer.h:955
void SetGridY(bool grid=true)
Definition: JDrawer.h:966

◆ SetGridX()

void JDrawer::SetGridX ( bool  grid = true)
inline

Definition at line 955 of file JDrawer.h.

References fGridX, and getRunAppsInfo::grid.

Referenced by SetGrid().

955  {
956  if (grid) {
957  fGridX = 1;
958  } else {
959  fGridX = 0;
960  }
961  }
int fGridX
Definition: JDrawer.h:58

◆ SetGridY()

void JDrawer::SetGridY ( bool  grid = true)
inline

Definition at line 966 of file JDrawer.h.

References fGridY, and getRunAppsInfo::grid.

Referenced by SetGrid().

966  {
967  if (grid) {
968  fGridY = 1;
969  } else {
970  fGridY = 0;
971  }
972  }
int fGridY
Definition: JDrawer.h:59

◆ SetHistogramAppearance()

void JDrawer::SetHistogramAppearance ( double  titoffx,
double  titoffy,
double  titsizex,
double  titsizey,
double  labeloffx,
double  labeloffy,
double  labelsizex,
double  labelsizey,
int  divx,
int  divy,
int  fontIndex 
)
inline

Definition at line 819 of file JDrawer.h.

References fDivisionsX, fDivisionsY, fFont, fLabelOffsetX, fLabelOffsetY, fLabelSizeX, fLabelSizeY, fTitleOffsetX, fTitleOffsetY, fTitleSizeX, and fTitleSizeY.

Referenced by SetDefaultAppearanceGraph(), SetDefaultAppearanceGraphRow(), and SetDefaultAppearanceSplitCanvas().

829  {
830  fTitleOffsetX = titoffx; // Offset of the x-axis title
831  fTitleOffsetY = titoffy; // Offset of the y-axis title
832  fTitleSizeX = titsizex; // Size of the x-axis title
833  fTitleSizeY = titsizey; // Size of the y-axis title
834  fLabelOffsetX = labeloffx; // Offset of the x-axis label
835  fLabelOffsetY = labeloffy; // Offset of the y-axis label
836  fLabelSizeX = labelsizex; // Size of the x-axis label
837  fLabelSizeY = labelsizey; // Size of the y-axis label
838  fDivisionsX = divx; // The number of divisions in x-axis
839  fDivisionsY = divy; // The number of divisions in y-axis
840  fFont = fontIndex; // Font index for titles and labels
841  }
double fDivisionsY
Definition: JDrawer.h:51
double fTitleSizeY
Definition: JDrawer.h:42
double fTitleSizeX
Definition: JDrawer.h:41
int fFont
Definition: JDrawer.h:52
double fLabelOffsetY
Definition: JDrawer.h:45
double fLabelSizeX
Definition: JDrawer.h:47
double fLabelSizeY
Definition: JDrawer.h:48
double fDivisionsX
Definition: JDrawer.h:50
double fTitleOffsetX
Definition: JDrawer.h:38
double fLabelOffsetX
Definition: JDrawer.h:44
double fTitleOffsetY
Definition: JDrawer.h:39

◆ SetHistogramStyle()

void JDrawer::SetHistogramStyle ( TH1 *  hid,
TString  xtit,
TString  ytit 
)
inlineprivate

Definition at line 143 of file JDrawer.h.

References SetAxisStyles().

Referenced by ApplyStyleSettings(), CreateCanvas(), CreateCanvasGraphRow(), DrawHistogram(), DrawHistogramToCurrentCanvas(), and DrawHistogramToPad().

143  {
144  SetAxisStyles(hid->GetXaxis(), hid->GetYaxis(), hid->GetZaxis(), xtit, ytit);
145  }
void SetAxisStyles(TAxis *xAxis, TAxis *yAxis, TAxis *zAxis, TString xtit, TString ytit)
Definition: JDrawer.h:94

◆ SetLabelOffsetX()

void JDrawer::SetLabelOffsetX ( double  offset)
inline

◆ SetLabelOffsetY()

void JDrawer::SetLabelOffsetY ( double  offset)
inline

◆ SetLabelSizeX()

void JDrawer::SetLabelSizeX ( double  size)
inline

Definition at line 779 of file JDrawer.h.

References fLabelSizeX, and findQualityFiles::size.

779 { fLabelSizeX = size; }
size
Write out results.
double fLabelSizeX
Definition: JDrawer.h:47

◆ SetLabelSizeY()

void JDrawer::SetLabelSizeY ( double  size)
inline

Definition at line 782 of file JDrawer.h.

References fLabelSizeY, and findQualityFiles::size.

782 { fLabelSizeY = size; }
size
Write out results.
double fLabelSizeY
Definition: JDrawer.h:48

◆ SetLeftMargin()

void JDrawer::SetLeftMargin ( double  margin)
inline

Definition at line 734 of file JDrawer.h.

References fMarginLeft, and margin.

Referenced by SetDefaultAppearanceGraph(), and SetDefaultAppearanceGraphRow().

734 { fMarginLeft = margin; }
Double_t margin
double fMarginLeft
Definition: JDrawer.h:26

◆ SetLogX()

void JDrawer::SetLogX ( bool  log = true)
inline

Definition at line 848 of file JDrawer.h.

References fLogX, and dqm-mbProfile::log.

848  {
849  if (log) {
850  fLogX = 1;
851  } else {
852  fLogX = 0;
853  }
854  }
int fLogX
Definition: JDrawer.h:55

◆ SetLogY()

void JDrawer::SetLogY ( bool  log = true)
inline

Definition at line 861 of file JDrawer.h.

References fLogY, and dqm-mbProfile::log.

861  {
862  if (log) {
863  fLogY = 1;
864  } else {
865  fLogY = 0;
866  }
867  }
int fLogY
Definition: JDrawer.h:56

◆ SetLogZ()

void JDrawer::SetLogZ ( bool  log = true)
inline

Definition at line 874 of file JDrawer.h.

References fLogZ, and dqm-mbProfile::log.

874  {
875  if (log) {
876  fLogZ = 1;
877  } else {
878  fLogZ = 0;
879  }
880  }
int fLogZ
Definition: JDrawer.h:57

◆ SetMargins()

void JDrawer::SetMargins ( double  left,
double  right,
double  top,
double  bottom 
)
inline

Definition at line 753 of file JDrawer.h.

References fMarginBottom, fMarginLeft, fMarginRight, and fMarginTop.

Referenced by SetDefaultAppearanceSplitCanvas().

753  {
754  fMarginLeft = left;
755  fMarginRight = right;
756  fMarginTop = top;
757  fMarginBottom = bottom;
758  }
double fMarginBottom
Definition: JDrawer.h:28
double fMarginTop
Definition: JDrawer.h:29
double fMarginRight
Definition: JDrawer.h:27
double fMarginLeft
Definition: JDrawer.h:26

◆ SetNDivisionsX()

void JDrawer::SetNDivisionsX ( int  div)
inline

Definition at line 785 of file JDrawer.h.

References fDivisionsX.

785 { fDivisionsX = div; }
double fDivisionsX
Definition: JDrawer.h:50

◆ SetNDivisionsY()

void JDrawer::SetNDivisionsY ( int  div)
inline

Definition at line 788 of file JDrawer.h.

References fDivisionsY.

788 { fDivisionsY = div; }
double fDivisionsY
Definition: JDrawer.h:51

◆ SetNumberOfCanvasesInOneRow()

void JDrawer::SetNumberOfCanvasesInOneRow ( int  canvasesInRow)
inline

Definition at line 939 of file JDrawer.h.

References fCanvasesInOneRow.

Referenced by CreateSplitCanvas().

939 { fCanvasesInOneRow = canvasesInRow; }
int fCanvasesInOneRow
Definition: JDrawer.h:66

◆ SetPadRange()

void JDrawer::SetPadRange ( double  xLow,
double  yLow,
double  xHigh,
double  yHigh 
)
inline

Definition at line 1159 of file JDrawer.h.

References fSinglePad.

1159  {
1160  // TODO: Setting range also for split canvas
1161  fSinglePad->Range(xLow, yLow, xHigh, yHigh);
1162  fSinglePad->Clear();
1163  }
TPad * fSinglePad
Definition: JDrawer.h:70

◆ SetPadValues()

void JDrawer::SetPadValues ( TPad *  pad)
inlineprivate

Definition at line 172 of file JDrawer.h.

References fGridX, fGridY, fLogX, fLogY, fLogZ, fTickX, and fTickY.

Referenced by CreateCanvas(), CreateCanvasGraphRow(), and DrawHistogramToPad().

172  {
173  pad->SetLogy(fLogY);
174  pad->SetLogx(fLogX);
175  pad->SetLogz(fLogZ);
176  pad->SetGridx(fGridX);
177  pad->SetGridy(fGridY);
178  pad->SetTickx(fTickX);
179  pad->SetTicky(fTickY);
180  }
int fTickX
Definition: JDrawer.h:60
int fGridY
Definition: JDrawer.h:59
int fTickY
Definition: JDrawer.h:61
int fLogY
Definition: JDrawer.h:56
int fLogZ
Definition: JDrawer.h:57
int fLogX
Definition: JDrawer.h:55
int fGridX
Definition: JDrawer.h:58

◆ SetRelativeCanvasSize()

void JDrawer::SetRelativeCanvasSize ( double  relativeSize,
double  aspectRatio 
)
inline

Definition at line 1134 of file JDrawer.h.

References fCanvasHeight, and fCanvasWidth.

Referenced by SetDefaultAppearanceGraph(), SetDefaultAppearanceGraphRow(), and SetDefaultAppearanceSplitCanvas().

1134  {
1135  fCanvasHeight = 600 * relativeSize;
1136  fCanvasWidth = aspectRatio * fCanvasHeight;
1137  }
int fCanvasHeight
Definition: JDrawer.h:35
int fCanvasWidth
Definition: JDrawer.h:34

◆ SetRightMargin()

void JDrawer::SetRightMargin ( double  margin)
inline

Definition at line 737 of file JDrawer.h.

References fMarginRight, and margin.

737 { fMarginRight = margin; }
double fMarginRight
Definition: JDrawer.h:27
Double_t margin

◆ SetSplitRatio()

void JDrawer::SetSplitRatio ( double  split)
inline

Definition at line 1015 of file JDrawer.h.

References fSplitRatio, and submitPVValidationJobs::split().

Referenced by SetDefaultAppearanceSplitCanvas().

1015 { fSplitRatio = split; }
double fSplitRatio
Definition: JDrawer.h:78

◆ SetTick()

void JDrawer::SetTick ( int  tickX,
int  tickY 
)
inline

Definition at line 1007 of file JDrawer.h.

References SetTickX(), and SetTickY().

1007  {
1008  SetTickX(tickX);
1009  SetTickY(tickY);
1010  }
void SetTickY(bool tick=true)
Definition: JDrawer.h:996
void SetTickX(bool tick=true)
Definition: JDrawer.h:985

◆ SetTickX()

void JDrawer::SetTickX ( bool  tick = true)
inline

Definition at line 985 of file JDrawer.h.

References fTickX.

Referenced by SetTick().

985  {
986  if (tick) {
987  fTickX = 1;
988  } else {
989  fTickX = 0;
990  }
991  }
int fTickX
Definition: JDrawer.h:60

◆ SetTickY()

void JDrawer::SetTickY ( bool  tick = true)
inline

Definition at line 996 of file JDrawer.h.

References fTickY.

Referenced by SetTick().

996  {
997  if (tick) {
998  fTickY = 1;
999  } else {
1000  fTickY = 0;
1001  }
1002  }
int fTickY
Definition: JDrawer.h:61

◆ SetTitleOffsetX()

void JDrawer::SetTitleOffsetX ( double  offset)
inline

◆ SetTitleOffsetY()

void JDrawer::SetTitleOffsetY ( double  offset)
inline

◆ SetTitleSizeX()

void JDrawer::SetTitleSizeX ( double  size)
inline

Definition at line 767 of file JDrawer.h.

References fTitleSizeX, and findQualityFiles::size.

767 { fTitleSizeX = size; }
size
Write out results.
double fTitleSizeX
Definition: JDrawer.h:41

◆ SetTitleSizeY()

void JDrawer::SetTitleSizeY ( double  size)
inline

Definition at line 770 of file JDrawer.h.

References fTitleSizeY, and findQualityFiles::size.

770 { fTitleSizeY = size; }
size
Write out results.
double fTitleSizeY
Definition: JDrawer.h:42

◆ SetTopMargin()

void JDrawer::SetTopMargin ( double  margin)
inline

Definition at line 743 of file JDrawer.h.

References fMarginTop, and margin.

743 { fMarginTop = margin; }
double fMarginTop
Definition: JDrawer.h:29
Double_t margin

Member Data Documentation

◆ fCanvas

TCanvas* JDrawer::fCanvas
private

Definition at line 69 of file JDrawer.h.

Referenced by CreateCanvas(), CreateCanvasGraphRow(), CreateSplitCanvas(), GetCanvasName(), and Reset().

◆ fCanvasDisplacementX

int JDrawer::fCanvasDisplacementX
private

Definition at line 64 of file JDrawer.h.

Referenced by Reset(), SetCanvasDisplacement(), and SetCanvasDisplacementSettings().

◆ fCanvasDisplacementY

int JDrawer::fCanvasDisplacementY
private

Definition at line 65 of file JDrawer.h.

Referenced by Reset(), SetCanvasDisplacement(), and SetCanvasDisplacementSettings().

◆ fCanvasesInOneRow

int JDrawer::fCanvasesInOneRow
private

◆ fCanvasHeight

int JDrawer::fCanvasHeight
private

◆ fCanvasWidth

int JDrawer::fCanvasWidth
private

◆ fDivisionsX

double JDrawer::fDivisionsX
private

Definition at line 50 of file JDrawer.h.

Referenced by Reset(), SetAxisStyles(), SetHistogramAppearance(), and SetNDivisionsX().

◆ fDivisionsY

double JDrawer::fDivisionsY
private

Definition at line 51 of file JDrawer.h.

Referenced by Reset(), SetAxisStyles(), SetHistogramAppearance(), and SetNDivisionsY().

◆ fFont

int JDrawer::fFont
private

Definition at line 52 of file JDrawer.h.

Referenced by Reset(), SetAxisStyles(), SetFont(), and SetHistogramAppearance().

◆ fGridX

int JDrawer::fGridX
private

Definition at line 58 of file JDrawer.h.

Referenced by Reset(), SetGridX(), and SetPadValues().

◆ fGridY

int JDrawer::fGridY
private

Definition at line 59 of file JDrawer.h.

Referenced by Reset(), SetGridY(), and SetPadValues().

◆ fLabelOffsetX

double JDrawer::fLabelOffsetX
private

Definition at line 44 of file JDrawer.h.

Referenced by Reset(), SetAxisStyles(), SetHistogramAppearance(), and SetLabelOffsetX().

◆ fLabelOffsetY

double JDrawer::fLabelOffsetY
private

Definition at line 45 of file JDrawer.h.

Referenced by Reset(), SetAxisStyles(), SetHistogramAppearance(), and SetLabelOffsetY().

◆ fLabelOffsetZ

double JDrawer::fLabelOffsetZ
private

Definition at line 46 of file JDrawer.h.

Referenced by Reset(), and SetAxisStyles().

◆ fLabelSizeX

double JDrawer::fLabelSizeX
private

Definition at line 47 of file JDrawer.h.

Referenced by Reset(), SetAxisStyles(), SetHistogramAppearance(), and SetLabelSizeX().

◆ fLabelSizeY

double JDrawer::fLabelSizeY
private

Definition at line 48 of file JDrawer.h.

Referenced by Reset(), SetAxisStyles(), SetHistogramAppearance(), and SetLabelSizeY().

◆ fLabelSizeZ

double JDrawer::fLabelSizeZ
private

Definition at line 49 of file JDrawer.h.

Referenced by Reset(), and SetAxisStyles().

◆ fLeftRowPad

TPad* JDrawer::fLeftRowPad
private

Definition at line 73 of file JDrawer.h.

Referenced by CreateCanvasGraphRow(), GetPad(), Reset(), and SelectPad().

◆ fLogX

int JDrawer::fLogX
private

Definition at line 55 of file JDrawer.h.

Referenced by Reset(), SetLogX(), and SetPadValues().

◆ fLogY

int JDrawer::fLogY
private

Definition at line 56 of file JDrawer.h.

Referenced by Reset(), SetLogY(), and SetPadValues().

◆ fLogZ

int JDrawer::fLogZ
private

Definition at line 57 of file JDrawer.h.

Referenced by Reset(), SetLogZ(), and SetPadValues().

◆ fLowerSplitPad

TPad* JDrawer::fLowerSplitPad
private

◆ fMarginBottom

double JDrawer::fMarginBottom
private

◆ fMarginLeft

double JDrawer::fMarginLeft
private

◆ fMarginRight

double JDrawer::fMarginRight
private

◆ fMarginTop

double JDrawer::fMarginTop
private

◆ fMiddleRowPad

TPad* JDrawer::fMiddleRowPad
private

Definition at line 74 of file JDrawer.h.

Referenced by CreateCanvasGraphRow(), GetPad(), Reset(), and SelectPad().

◆ fNameIndex

int JDrawer::fNameIndex
private

Definition at line 81 of file JDrawer.h.

Referenced by GenerateName(), GenerateNameForCanvas(), and JDrawer().

◆ fRightRowPad

TPad* JDrawer::fRightRowPad
private

Definition at line 75 of file JDrawer.h.

Referenced by CreateCanvasGraphRow(), GetPad(), Reset(), and SelectPad().

◆ fSinglePad

TPad* JDrawer::fSinglePad
private

Definition at line 70 of file JDrawer.h.

Referenced by CreateCanvas(), Reset(), and SetPadRange().

◆ fSplitRatio

double JDrawer::fSplitRatio
private

Definition at line 78 of file JDrawer.h.

Referenced by CreateSplitCanvas(), Reset(), and SetSplitRatio().

◆ fTickX

int JDrawer::fTickX
private

Definition at line 60 of file JDrawer.h.

Referenced by Reset(), SetPadValues(), and SetTickX().

◆ fTickY

int JDrawer::fTickY
private

Definition at line 61 of file JDrawer.h.

Referenced by Reset(), SetPadValues(), and SetTickY().

◆ fTitleOffsetX

double JDrawer::fTitleOffsetX
private

Definition at line 38 of file JDrawer.h.

Referenced by Reset(), SetAxisStyles(), SetHistogramAppearance(), and SetTitleOffsetX().

◆ fTitleOffsetY

double JDrawer::fTitleOffsetY
private

Definition at line 39 of file JDrawer.h.

Referenced by Reset(), SetAxisStyles(), SetHistogramAppearance(), and SetTitleOffsetY().

◆ fTitleOffsetZ

double JDrawer::fTitleOffsetZ
private

Definition at line 40 of file JDrawer.h.

Referenced by Reset(), and SetAxisStyles().

◆ fTitleSizeX

double JDrawer::fTitleSizeX
private

Definition at line 41 of file JDrawer.h.

Referenced by Reset(), SetAxisStyles(), SetHistogramAppearance(), and SetTitleSizeX().

◆ fTitleSizeY

double JDrawer::fTitleSizeY
private

Definition at line 42 of file JDrawer.h.

Referenced by Reset(), SetAxisStyles(), SetHistogramAppearance(), and SetTitleSizeY().

◆ fTitleSizeZ

double JDrawer::fTitleSizeZ
private

Definition at line 43 of file JDrawer.h.

Referenced by Reset(), and SetAxisStyles().

◆ fTopLeftX

int JDrawer::fTopLeftX
private

◆ fTopLeftY

int JDrawer::fTopLeftY
private

◆ fUpperSplitPad

TPad* JDrawer::fUpperSplitPad
private