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 ()
 

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:486
int fNameIndex
Definition: JDrawer.h:81

◆ ~JDrawer()

JDrawer::~JDrawer ( )
inline

Definition at line 219 of file JDrawer.h.

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

219  {
220  if (fCanvas)
221  delete fCanvas;
222  if (fSinglePad)
223  delete fSinglePad;
224  if (fUpperSplitPad)
225  delete fUpperSplitPad;
226  if (fLowerSplitPad)
227  delete fLowerSplitPad;
228  if (fLeftRowPad)
229  delete fLeftRowPad;
230  if (fMiddleRowPad)
231  delete fMiddleRowPad;
232  if (fRightRowPad)
233  delete fRightRowPad;
234  }
TPad * fUpperSplitPad
Definition: JDrawer.h:71
TPad * fLeftRowPad
Definition: JDrawer.h:73
TPad * fMiddleRowPad
Definition: JDrawer.h:74
TCanvas * fCanvas
Definition: JDrawer.h:69
TPad * fRightRowPad
Definition: JDrawer.h:75
TPad * fSinglePad
Definition: JDrawer.h:70
TPad * fLowerSplitPad
Definition: JDrawer.h:72

Member Function Documentation

◆ ApplyStyleSettings()

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

Definition at line 815 of file JDrawer.h.

References timingPdfMaker::histo, and SetHistogramStyle().

815  {
816  SetHistogramStyle(histo, xTitle, yTitle);
817  }
void SetHistogramStyle(TH1 *hid, TString xtit, TString ytit)
Definition: JDrawer.h:143

◆ CreateCanvas() [1/2]

void JDrawer::CreateCanvas ( )
inline

Definition at line 548 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().

548  {
549  // Create a canvas and set up its appearance
550  gStyle->SetOptStat(0); // remove statistics box
551  TString cname = GenerateNameForCanvas();
552  fCanvas = new TCanvas(cname.Data(), cname.Data(), fTopLeftX, fTopLeftY, fCanvasWidth, fCanvasHeight);
553  fSinglePad = new TPad("pad", "pad", 0.01, 0.01, 0.99, 0.99, 0, 0, 0);
554  fSinglePad->SetLeftMargin(fMarginLeft);
555  fSinglePad->SetBottomMargin(fMarginBottom);
556  fSinglePad->SetTopMargin(fMarginTop);
557  fSinglePad->SetRightMargin(fMarginRight);
559  fSinglePad->Draw();
560  fSinglePad->cd();
561  }
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 574 of file JDrawer.h.

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

580  {
581  // First make a canvas
582  CreateCanvas();
583 
584  // Create a dummy 2D-histogram to set the drawing ranges and titles
585  TString dummyName = GenerateName("histo");
586  TH2F *dummyHisto = new TH2F(dummyName.Data(), title, 10, xlow, xhigh, 10, ylow, yhigh);
587  SetHistogramStyle(dummyHisto, xTitle, yTitle);
588  dummyHisto->Draw();
589  }
void CreateCanvas()
Definition: JDrawer.h:548
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 632 of file JDrawer.h.

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

Referenced by CreateCanvasGraphRow().

632  {
633  TString dummyName; // dummy name generator
634  dummyName = GenerateNameForCanvas();
635 
636  // Create the canvas
637  fCanvas = new TCanvas(dummyName.Data(), dummyName.Data(), fTopLeftX, fTopLeftY, fCanvasWidth, fCanvasHeight);
638  fCanvas->SetFillStyle(4000); // The created canvas is completely transparent
639  fCanvas->SetFillColor(10); // Canvas is filled with white color
640  gStyle->SetOptStat(0); // Disable the drawing of the statistics box to the canvas
641  gStyle->SetOptTitle(0); // Disable the drawing of titles to the canvas
642  fCanvas->SetMargin(0, 0, 0, 0); // Remove the margins from the bottom canvas
643  fCanvas->Draw(); // Draw the canvas to the screen
644 
645  // ---- Create the two pads to the canvas ----
646 
647  // First, find the correct relation between different pads based on the required margins
648  double smallMargin = 0.0006;
649  double evenSmallerMargin = 0.0002;
650  double relativePlotSizeLeftPad = 1 - (fMarginLeft + evenSmallerMargin);
651  double relativePlotSizeMiddlePad = 1 - (2 * smallMargin);
652  double relativePlotSizeRightPad = 1 - (fMarginRight + smallMargin);
653  double firstSeparator = 1 / (1 + relativePlotSizeLeftPad / relativePlotSizeMiddlePad +
654  relativePlotSizeLeftPad / relativePlotSizeRightPad);
655  double secondSeparator = firstSeparator + (relativePlotSizeLeftPad / relativePlotSizeMiddlePad) * firstSeparator;
656 
657  // The first pad stretches from the left corner 1/3 of the total horizontal space, taking into account marginals
658  dummyName = GenerateName("LeftPad");
659  fLeftRowPad = new TPad(dummyName.Data(), dummyName.Data(), 0, 0, firstSeparator, 1, 0);
660  fLeftRowPad->SetTopMargin(fMarginTop);
661  fLeftRowPad->SetBottomMargin(fMarginBottom);
662  fLeftRowPad->SetLeftMargin(fMarginLeft);
663  fLeftRowPad->SetRightMargin(
664  evenSmallerMargin); // Make the right margin small so that the pads fit nicely on top of each other
666  fLeftRowPad->Draw();
667 
668  // The second pad stretches from 1/3 of the total horizontal space to 2/3, taking into account marginals
669  dummyName = GenerateName("MiddlePad");
670  fMiddleRowPad = new TPad(dummyName.Data(), dummyName.Data(), firstSeparator, 0, secondSeparator, 1, 0);
671  fMiddleRowPad->SetTopMargin(fMarginTop);
672  fMiddleRowPad->SetBottomMargin(fMarginBottom);
673  fMiddleRowPad->SetLeftMargin(
674  smallMargin); // Make the left margin small so that the pads fit nicely on top of each other
675  fMiddleRowPad->SetRightMargin(
676  smallMargin); // Make the right margin small so that the pads fit nicely on top of each other
678  fMiddleRowPad->Draw();
679 
680  // The third pad stretches from 2/3 of the total horizontal space right corner, taking into account marginals
681  dummyName = GenerateName("RightPad");
682  fRightRowPad = new TPad(dummyName.Data(), dummyName.Data(), secondSeparator, 0, 1, 1, 0);
683  fRightRowPad->SetTopMargin(fMarginTop);
684  fRightRowPad->SetBottomMargin(fMarginBottom);
685  fRightRowPad->SetLeftMargin(
686  smallMargin); // Make the left margin small so that the pads fit nicely on top of each other
687  fRightRowPad->SetRightMargin(fMarginRight);
689  fRightRowPad->Draw();
690  }
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 703 of file JDrawer.h.

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

709  {
710  // First make a canvas
712 
713  // Create a dummy 2D-histogram to set the drawing ranges and titles
714  SelectPad(0);
715  TString dummyName = GenerateName("histo");
716  TH2F *dummyHisto = new TH2F(dummyName.Data(), "", 10, xlow, xhigh, 10, ylow, yhigh);
717  SetHistogramStyle(dummyHisto, xTitle, yTitle);
718  dummyHisto->Draw();
719 
720  // Create a dummy 2D-histogram to set the drawing ranges and titles
721  SelectPad(1);
722  dummyName = GenerateName("histo");
723  dummyHisto = new TH2F(dummyName.Data(), title, 10, xlow, xhigh, 10, ylow, yhigh);
724  SetHistogramStyle(dummyHisto, xTitle, "");
725  dummyHisto->Draw();
726 
727  // Create a dummy 2D-histogram to set the drawing ranges and titles
728  SelectPad(2);
729  dummyName = GenerateName("histo");
730  dummyHisto = new TH2F(dummyName.Data(), "", 10, xlow, xhigh, 10, ylow, yhigh);
731  SetHistogramStyle(dummyHisto, xTitle, "");
732  dummyHisto->Draw();
733  }
void SelectPad(int padNumber)
Definition: JDrawer.h:1095
void CreateCanvasGraphRow()
Definition: JDrawer.h:632
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 594 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().

594  {
595  TString dummyName; // dummy name generator
596  dummyName = GenerateNameForCanvas();
597 
598  // Create the canvas
599  fCanvas = new TCanvas(dummyName.Data(), dummyName.Data(), fTopLeftX, fTopLeftY, fCanvasWidth, fCanvasHeight);
600  fCanvas->SetFillStyle(4000); // The created canvas is completely transparent
601  fCanvas->SetFillColor(10); // Canvas is filled with white color
602  gStyle->SetOptStat(0); // Disable the drawing of the statistics box to the canvas
603  gStyle->SetOptTitle(0); // Disable the drawing of titles to the canvas
604  fCanvas->SetMargin(0, 0, 0, 0); // Remove the margins from the bottom canvas
605  fCanvas->Draw(); // Draw the canvas to the screen
606 
607  // ---- Create the two pads to the canvas ----
608 
609  // The upper pad stretches from the top of the canvas to the defined split ratio
610  dummyName = GenerateName("UpperPad");
611  fUpperSplitPad = new TPad(dummyName.Data(), dummyName.Data(), 0, fSplitRatio, 1, 1, 0);
612  fUpperSplitPad->SetTopMargin(fMarginTop / (1 - fSplitRatio)); // Adjust top margin according to the split ratio
613  fUpperSplitPad->SetBottomMargin(
614  0.0015); // Make the bottom margin small so that the pads fit nicely on top of each other
615  fUpperSplitPad->SetLeftMargin(fMarginLeft);
616  fUpperSplitPad->SetRightMargin(fMarginRight);
617  fUpperSplitPad->Draw();
618 
619  // The lower pad stretches from the defined split ratio to the bottom of the canvas
620  dummyName = GenerateName("LowerPad");
621  fLowerSplitPad = new TPad(dummyName.Data(), dummyName.Data(), 0, 0, 1, fSplitRatio, 0);
622  fLowerSplitPad->SetTopMargin(0.0015); // Make the top margin small so that the pads fit nicely on top of each other
623  fLowerSplitPad->SetBottomMargin(fMarginBottom / fSplitRatio); // Adjust bottom margin according to the split ratio
624  fLowerSplitPad->SetLeftMargin(fMarginLeft);
625  fLowerSplitPad->SetRightMargin(fMarginRight);
626  fLowerSplitPad->Draw();
627  }
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 741 of file JDrawer.h.

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

741  {
743  SetNumberOfCanvasesInOneRow(canvasesInRow);
744  SetCanvasDisplacement(canvasIndex);
746  }
void SetCanvasDisplacement(int x, int y)
Definition: JDrawer.h:915
void SetNumberOfCanvasesInOneRow(int canvasesInRow)
Definition: JDrawer.h:954
void SetDefaultAppearanceSplitCanvas()
Definition: JDrawer.h:1038
void CreateSplitCanvas()
Definition: JDrawer.h:594

◆ DrawFunction() [1/2]

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

Definition at line 457 of file JDrawer.h.

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

458  {
459  // If no titles are given, keep the original ones
460  if (strcmp(xTitle, "") == 0)
461  xTitle = myFun->GetXaxis()
462  ->GetTitle(); // To compare char*:s we need to use strcmp function provided by <cstring> library
463  if (strcmp(yTitle, "") == 0)
464  yTitle = myFun->GetYaxis()->GetTitle();
465  if (strcmp(title, "") == 0)
466  title = myFun->GetTitle();
467 
468  // Set up the histogram and draw it to canvas
469  CreateCanvas();
470  myFun->SetTitle(title);
471  SetFunctionStyle(myFun, xTitle, yTitle);
472  myFun->Draw(drawOption);
473  }
void CreateCanvas()
Definition: JDrawer.h:548
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 481 of file JDrawer.h.

References DrawFunction(), and histoStyle::drawOption.

Referenced by DrawFunction().

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

◆ 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 394 of file JDrawer.h.

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

402  {
403  // Create the canvas with right specs and a graph into it
404  CreateCanvas(xlow, xhigh, ylow, yhigh, xTitle, yTitle, title);
405  graph->Draw(drawOption);
406  }
void CreateCanvas()
Definition: JDrawer.h:548

◆ 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 421 of file JDrawer.h.

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

Referenced by jetHtPlotter().

429  {
430  // If no titles are given, keep the original ones
431  if (strcmp(xTitle, "") == 0)
432  xTitle = graph->GetXaxis()
433  ->GetTitle(); // To compare char*:s we need to use strcmp function provided by <cstring> library
434  if (strcmp(yTitle, "") == 0)
435  yTitle = graph->GetYaxis()->GetTitle();
436  if (strcmp(title, "") == 0)
437  title = graph->GetTitle();
438 
439  // Set up the histogram and draw it to canvas
440  CreateCanvas();
441  graph->SetTitle(title);
442  graph->GetXaxis()->SetRangeUser(xlow, xhigh);
443  graph->GetYaxis()->SetRangeUser(ylow, yhigh);
444  SetGraphStyle(graph, xTitle, yTitle);
445  graph->Draw(drawOption);
446  }
void SetGraphStyle(TGraph *hid, TString xtit, TString ytit)
Definition: JDrawer.h:165
void CreateCanvas()
Definition: JDrawer.h:548

◆ DrawHistogram() [1/2]

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

Definition at line 271 of file JDrawer.h.

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

Referenced by drawSingleHistogram(), and jetHtPlotter().

272  {
273  // If no titles are given, keep the original ones
274  if (strcmp(xTitle, "") == 0)
275  xTitle = histo->GetXaxis()
276  ->GetTitle(); // To compare char*:s we need to use strcmp function provided by <cstring> library
277  if (strcmp(yTitle, "") == 0)
278  yTitle = histo->GetYaxis()->GetTitle();
279  if (strcmp(title, "") == 0)
280  title = histo->GetTitle();
281 
282  // Set up the histogram and draw it to canvas
283  CreateCanvas();
284  histo->SetTitle(title);
285  SetHistogramStyle(histo, xTitle, yTitle);
286  histo->Draw(drawOption);
287  }
void CreateCanvas()
Definition: JDrawer.h:548
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 295 of file JDrawer.h.

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

Referenced by DrawHistogram().

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

◆ DrawHistogramToCurrentCanvas()

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

Definition at line 245 of file JDrawer.h.

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

246  {
247  // If no titles are given, keep the original ones
248  if (strcmp(xTitle, "") == 0)
249  xTitle = histo->GetXaxis()
250  ->GetTitle(); // To compare char*:s we need to use strcmp function provided by <cstring> library
251  if (strcmp(yTitle, "") == 0)
252  yTitle = histo->GetYaxis()->GetTitle();
253  if (strcmp(title, "") == 0)
254  title = histo->GetTitle();
255 
256  // Set up the histogram and draw it to current canvas
257  histo->SetTitle(title);
258  SetHistogramStyle(histo, xTitle, yTitle);
259  histo->Draw(drawOption);
260  }
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 367 of file JDrawer.h.

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

371  {
372  // If there is no lower pad, create one
373  if (fLowerSplitPad == nullptr) {
374  //SetDefaultAppearanceSplitCanvas();
376  }
377 
379  }
void CreateSplitCanvas()
Definition: JDrawer.h:594
void DrawHistogramToPad(TH1 *histo, TPad *drawPad, const char *xTitle="", const char *yTitle="", const char *title="", const char *drawOption="")
Definition: JDrawer.h:306
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 306 of file JDrawer.h.

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

Referenced by DrawHistogramToLowerPad(), and DrawHistogramToUpperPad().

311  {
312  // If no titles are given, keep the original ones
313  if (strcmp(xTitle, "") == 0)
314  xTitle = histo->GetXaxis()
315  ->GetTitle(); // To compare char*:s we need to use strcmp function provided by <cstring> library
316  if (strcmp(yTitle, "") == 0)
317  yTitle = histo->GetYaxis()->GetTitle();
318  if (strcmp(title, "") == 0)
319  title = histo->GetTitle();
320 
321  // Change to the desired pad
322  SetPadValues(drawPad);
323  drawPad->cd();
324 
325  // Remove statistics box and title
326  gStyle->SetOptStat(0);
327  gStyle->SetOptTitle(0);
328 
329  // Set up the histogram and draw it to the pad
330  histo->SetTitle(title);
331  SetHistogramStyle(histo, xTitle, yTitle);
332  histo->Draw(drawOption);
333  }
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 344 of file JDrawer.h.

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

348  {
349  // If there is no upper pad, create one
350  if (fUpperSplitPad == nullptr) {
351  //SetDefaultAppearanceSplitCanvas();
353  }
354 
356  }
TPad * fUpperSplitPad
Definition: JDrawer.h:71
void CreateSplitCanvas()
Definition: JDrawer.h:594
void DrawHistogramToPad(TH1 *histo, TPad *drawPad, const char *xTitle="", const char *yTitle="", const char *title="", const char *drawOption="")
Definition: JDrawer.h:306

◆ 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 898 of file JDrawer.h.

References fTopLeftX.

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

◆ GetCanvasDisplacementY()

int JDrawer::GetCanvasDisplacementY ( )
inline

Definition at line 901 of file JDrawer.h.

References fTopLeftY.

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

◆ GetCanvasName()

TString JDrawer::GetCanvasName ( )
inline

Definition at line 1157 of file JDrawer.h.

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

1157  {
1158  if (fCanvas == nullptr) {
1159  std::cout << "Error: No canvas defined! Cannot return name." << std::endl;
1160  return "";
1161  }
1162  TString name = Form("%s", fCanvas->GetName());
1163  return name;
1164  }
TCanvas * fCanvas
Definition: JDrawer.h:69

◆ GetLowerPad()

TPad* JDrawer::GetLowerPad ( )
inline

Definition at line 1131 of file JDrawer.h.

References fLowerSplitPad.

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

◆ GetPad()

TPad* JDrawer::GetPad ( int  padNumber)
inline

Definition at line 1070 of file JDrawer.h.

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

1070  {
1071  switch (padNumber) {
1072  case 0:
1073  return fLeftRowPad;
1074 
1075  case 1:
1076  return fMiddleRowPad;
1077 
1078  case 2:
1079  return fRightRowPad;
1080 
1081  case 3:
1082  return fUpperSplitPad;
1083 
1084  case 4:
1085  return fLowerSplitPad;
1086 
1087  default:
1088  return nullptr;
1089  }
1090  }
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 1126 of file JDrawer.h.

References fUpperSplitPad.

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

◆ Reset()

void JDrawer::Reset ( )
inline

Definition at line 486 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().

486  {
487  // Set default values for margins
488  fMarginLeft = 0.15; // left margin
489  fMarginRight = 0.06; // right margin
490  fMarginBottom = 0.15; // bottom margin
491  fMarginTop = 0.06; // top margin
492 
493  // Set default values for the size and place of the canvas
494  fTopLeftX = 10; // Number of pixels the the canvas is out of the top left corner of the screen in x-direction
495  fTopLeftY = 10; // Number of pixels the the canvas is out of the top left corner of the screen in y-direction
496  fCanvasWidth = 700; // Width of the canvas
497  fCanvasHeight = 500; // Height of the canvas
498 
499  // Set default values for histogram appearance settings
500  fTitleOffsetX = 1.1; // Offset of the x-axis title
501  fTitleOffsetY = 1.1; // Offset of the y-axis title
502  fTitleOffsetZ = 1.3; // Pffset of the z-axis title
503  fTitleSizeX = 0.06; // Size of the x-axis title
504  fTitleSizeY = 0.06; // Size of the y-axis title
505  fTitleSizeZ = 0.06; // Size of the z-axis title
506  fLabelOffsetX = 0.01; // Offset of the x-axis label
507  fLabelOffsetY = 0.001; // Offset of the y-axis label
508  fLabelOffsetZ = 0.001; // Offset of the z-axis label
509  fLabelSizeX = 0.05; // Size of the x-axis label
510  fLabelSizeY = 0.05; // Size of the y-axis label
511  fLabelSizeZ = 0.05; // Size of the z-axis label
512  fDivisionsX = 505; // The number of divisions in x-axis
513  fDivisionsY = 505; // The number of divisions in y-axis
514  fFont = 42; // Font index for titles and labels
515 
516  // Axes are linear by default
517  fLogX = 0; // 1: Logarithmic x-axis, 0: linear x-axis
518  fLogY = 0; // 1: Logarithmic y-axis, 0: linear y-axis
519  fLogZ = 0; // 1: Logarithmic z-axis, 0: linear z-axis
520 
521  // Set default values for canves displacement information
522  fCanvasDisplacementX = 100; // Displacement of the canvas for one index in x-direction
523  fCanvasDisplacementY = 100; // Displacement of the canvas for one index in y-direction
524  fCanvasesInOneRow = 10; // Number of canvases in a row before a new row is started
525 
526  // Set defauls values for pad properties
527  fGridX = 0; // 1: Grid in x-axis, 0: no grid
528  fGridY = 0; // 1: Grid in y-axis, 0: no grid
529  fTickX = 1; // 1: Ticks in x-axis, 0: no ticks
530  fTickY = 1; // 1: Ticks in y-axis, 0: no ticks
531 
532  // Default setting values for splitted canvas
533  fSplitRatio = 0.4; // The percentage of the lower pad from the total canvas when splitting the canvas
534 
535  // Set the canvas handles to null
536  fCanvas = nullptr;
537  fSinglePad = nullptr;
538  fUpperSplitPad = nullptr;
539  fLowerSplitPad = nullptr;
540  fLeftRowPad = nullptr;
541  fMiddleRowPad = nullptr;
542  fRightRowPad = nullptr;
543  }
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 1141 of file JDrawer.h.

References fLowerSplitPad.

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

◆ SelectPad()

void JDrawer::SelectPad ( int  padNumber)
inline

Definition at line 1095 of file JDrawer.h.

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

Referenced by CreateCanvasGraphRow().

1095  {
1096  switch (padNumber) {
1097  case 0:
1098  fLeftRowPad->cd();
1099  break;
1100 
1101  case 1:
1102  fMiddleRowPad->cd();
1103  break;
1104 
1105  case 2:
1106  fRightRowPad->cd();
1107  break;
1108 
1109  case 3:
1110  fUpperSplitPad->cd();
1111  break;
1112 
1113  case 4:
1114  fLowerSplitPad->cd();
1115  break;
1116 
1117  default:
1118  std::cout << "Pad " << padNumber << " not found" << std::endl;
1119  break;
1120  }
1121  }
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 1136 of file JDrawer.h.

References fUpperSplitPad.

1136 { 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_2022v15_cff::xAxis, HLT_2022v15_cff::yAxis, and HLT_2022v15_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 755 of file JDrawer.h.

References fMarginBottom, and margin.

Referenced by jetHtPlotter().

755 { 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 915 of file JDrawer.h.

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

Referenced by CreateSplitCanvas().

915  {
918  }
void SetCanvasDisplacementX(int displacement)
Definition: JDrawer.h:904
void SetCanvasDisplacementY(int displacement)
Definition: JDrawer.h:907

◆ SetCanvasDisplacement() [2/2]

void JDrawer::SetCanvasDisplacement ( int  index)
inline

Definition at line 931 of file JDrawer.h.

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

931  {
934  }
void SetCanvasDisplacementX(int displacement)
Definition: JDrawer.h:904
void SetCanvasDisplacementY(int displacement)
Definition: JDrawer.h:907
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 943 of file JDrawer.h.

References fCanvasDisplacementX, fCanvasDisplacementY, and fCanvasesInOneRow.

943  {
944  fCanvasDisplacementX = displacementX;
945  fCanvasDisplacementY = displacementY;
946  fCanvasesInOneRow = canvasesInRow;
947  }
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 904 of file JDrawer.h.

References fTopLeftX.

Referenced by SetCanvasDisplacement().

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

◆ SetCanvasDisplacementY()

void JDrawer::SetCanvasDisplacementY ( int  displacement)
inline

Definition at line 907 of file JDrawer.h.

References fTopLeftY.

Referenced by SetCanvasDisplacement().

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

◆ SetCanvasSize()

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

Definition at line 962 of file JDrawer.h.

References fCanvasHeight, fCanvasWidth, and ApeEstimator_cff::width.

Referenced by jetHtPlotter().

962  {
964  fCanvasHeight = height;
965  }
int fCanvasHeight
Definition: JDrawer.h:35
int fCanvasWidth
Definition: JDrawer.h:34

◆ SetDefaultAppearanceGraph()

void JDrawer::SetDefaultAppearanceGraph ( )
inline

Definition at line 1050 of file JDrawer.h.

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

1050  {
1051  Reset();
1052  SetHistogramAppearance(0.9, 1.3, 0.06, 0.05, 0.01, 0.001, 0.05, 0.05, 505, 505, 42);
1053  SetRelativeCanvasSize(0.8, 1);
1054  SetLeftMargin(0.17);
1055  }
void SetRelativeCanvasSize(double relativeSize, double aspectRatio)
Definition: JDrawer.h:1149
void SetLeftMargin(double margin)
Definition: JDrawer.h:749
void Reset()
Definition: JDrawer.h:486
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:834

◆ SetDefaultAppearanceGraphRow()

void JDrawer::SetDefaultAppearanceGraphRow ( )
inline

Definition at line 1060 of file JDrawer.h.

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

1060  {
1061  Reset();
1062  SetHistogramAppearance(0.9, 1.3, 0.06, 0.05, 0.01, 0.001, 0.05, 0.05, 505, 505, 42);
1063  SetRelativeCanvasSize(0.8, 3);
1064  SetLeftMargin(0.17);
1065  }
void SetRelativeCanvasSize(double relativeSize, double aspectRatio)
Definition: JDrawer.h:1149
void SetLeftMargin(double margin)
Definition: JDrawer.h:749
void Reset()
Definition: JDrawer.h:486
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:834

◆ SetDefaultAppearanceSplitCanvas()

void JDrawer::SetDefaultAppearanceSplitCanvas ( )
inline

Definition at line 1038 of file JDrawer.h.

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

Referenced by CreateSplitCanvas().

1038  {
1039  Reset();
1040  //SetHistogramAppearance(2.5, 2.5, 20, 20, 0.01, 0.001, 16, 16, 505, 505, 43); // Smaller label size for axes
1041  SetHistogramAppearance(2.5, 2.3, 25, 25, 0.01, 0.001, 20, 20, 505, 505, 43); // Increased label size for axes
1042  SetSplitRatio(0.4);
1043  SetRelativeCanvasSize(1.1, 0.7);
1044  SetMargins(0.21, 0.05, 0.09, 0.1); // Left, right, top, bottom
1045  }
void SetSplitRatio(double split)
Definition: JDrawer.h:1030
void SetRelativeCanvasSize(double relativeSize, double aspectRatio)
Definition: JDrawer.h:1149
void Reset()
Definition: JDrawer.h:486
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:834
void SetMargins(double left, double right, double top, double bottom)
Definition: JDrawer.h:768

◆ SetFont()

void JDrawer::SetFont ( int  fontIndex)
inline

Definition at line 806 of file JDrawer.h.

References fFont.

806 { 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 992 of file JDrawer.h.

References SetGridX(), and SetGridY().

992  {
993  SetGridX(gridX);
994  SetGridY(gridY);
995  }
void SetGridX(bool grid=true)
Definition: JDrawer.h:970
void SetGridY(bool grid=true)
Definition: JDrawer.h:981

◆ SetGridX()

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

Definition at line 970 of file JDrawer.h.

References fGridX, and getRunAppsInfo::grid.

Referenced by SetGrid().

970  {
971  if (grid) {
972  fGridX = 1;
973  } else {
974  fGridX = 0;
975  }
976  }
int fGridX
Definition: JDrawer.h:58

◆ SetGridY()

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

Definition at line 981 of file JDrawer.h.

References fGridY, and getRunAppsInfo::grid.

Referenced by SetGrid().

981  {
982  if (grid) {
983  fGridY = 1;
984  } else {
985  fGridY = 0;
986  }
987  }
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 834 of file JDrawer.h.

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

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

844  {
845  fTitleOffsetX = titoffx; // Offset of the x-axis title
846  fTitleOffsetY = titoffy; // Offset of the y-axis title
847  fTitleSizeX = titsizex; // Size of the x-axis title
848  fTitleSizeY = titsizey; // Size of the y-axis title
849  fLabelOffsetX = labeloffx; // Offset of the x-axis label
850  fLabelOffsetY = labeloffy; // Offset of the y-axis label
851  fLabelSizeX = labelsizex; // Size of the x-axis label
852  fLabelSizeY = labelsizey; // Size of the y-axis label
853  fDivisionsX = divx; // The number of divisions in x-axis
854  fDivisionsY = divy; // The number of divisions in y-axis
855  fFont = fontIndex; // Font index for titles and labels
856  }
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 794 of file JDrawer.h.

References fLabelSizeX, and findQualityFiles::size.

Referenced by jetHtPlotter().

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

◆ SetLabelSizeY()

void JDrawer::SetLabelSizeY ( double  size)
inline

Definition at line 797 of file JDrawer.h.

References fLabelSizeY, and findQualityFiles::size.

Referenced by jetHtPlotter().

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

◆ SetLeftMargin()

void JDrawer::SetLeftMargin ( double  margin)
inline

Definition at line 749 of file JDrawer.h.

References fMarginLeft, and margin.

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

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

◆ SetLogX()

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

Definition at line 863 of file JDrawer.h.

References fLogX, and dqm-mbProfile::log.

863  {
864  if (log) {
865  fLogX = 1;
866  } else {
867  fLogX = 0;
868  }
869  }
int fLogX
Definition: JDrawer.h:55

◆ SetLogY()

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

Definition at line 876 of file JDrawer.h.

References fLogY, and dqm-mbProfile::log.

Referenced by drawSingleHistogram().

876  {
877  if (log) {
878  fLogY = 1;
879  } else {
880  fLogY = 0;
881  }
882  }
int fLogY
Definition: JDrawer.h:56

◆ SetLogZ()

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

Definition at line 889 of file JDrawer.h.

References fLogZ, and dqm-mbProfile::log.

889  {
890  if (log) {
891  fLogZ = 1;
892  } else {
893  fLogZ = 0;
894  }
895  }
int fLogZ
Definition: JDrawer.h:57

◆ SetMargins()

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

Definition at line 768 of file JDrawer.h.

References fMarginBottom, fMarginLeft, fMarginRight, and fMarginTop.

Referenced by SetDefaultAppearanceSplitCanvas().

768  {
769  fMarginLeft = left;
770  fMarginRight = right;
771  fMarginTop = top;
772  fMarginBottom = bottom;
773  }
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 800 of file JDrawer.h.

References fDivisionsX.

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

◆ SetNDivisionsY()

void JDrawer::SetNDivisionsY ( int  div)
inline

Definition at line 803 of file JDrawer.h.

References fDivisionsY.

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

◆ SetNumberOfCanvasesInOneRow()

void JDrawer::SetNumberOfCanvasesInOneRow ( int  canvasesInRow)
inline

Definition at line 954 of file JDrawer.h.

References fCanvasesInOneRow.

Referenced by CreateSplitCanvas().

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

◆ SetPadRange()

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

Definition at line 1174 of file JDrawer.h.

References fSinglePad.

1174  {
1175  // TODO: Setting range also for split canvas
1176  fSinglePad->Range(xLow, yLow, xHigh, yHigh);
1177  fSinglePad->Clear();
1178  }
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 1149 of file JDrawer.h.

References fCanvasHeight, and fCanvasWidth.

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

1149  {
1150  fCanvasHeight = 600 * relativeSize;
1151  fCanvasWidth = aspectRatio * fCanvasHeight;
1152  }
int fCanvasHeight
Definition: JDrawer.h:35
int fCanvasWidth
Definition: JDrawer.h:34

◆ SetRightMargin()

void JDrawer::SetRightMargin ( double  margin)
inline

Definition at line 752 of file JDrawer.h.

References fMarginRight, and margin.

Referenced by jetHtPlotter().

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

◆ SetSplitRatio()

void JDrawer::SetSplitRatio ( double  split)
inline

Definition at line 1030 of file JDrawer.h.

References fSplitRatio, and submitPVValidationJobs::split().

Referenced by SetDefaultAppearanceSplitCanvas().

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

◆ SetTick()

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

Definition at line 1022 of file JDrawer.h.

References SetTickX(), and SetTickY().

1022  {
1023  SetTickX(tickX);
1024  SetTickY(tickY);
1025  }
void SetTickY(bool tick=true)
Definition: JDrawer.h:1011
void SetTickX(bool tick=true)
Definition: JDrawer.h:1000

◆ SetTickX()

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

Definition at line 1000 of file JDrawer.h.

References fTickX.

Referenced by SetTick().

1000  {
1001  if (tick) {
1002  fTickX = 1;
1003  } else {
1004  fTickX = 0;
1005  }
1006  }
int fTickX
Definition: JDrawer.h:60

◆ SetTickY()

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

Definition at line 1011 of file JDrawer.h.

References fTickY.

Referenced by SetTick().

1011  {
1012  if (tick) {
1013  fTickY = 1;
1014  } else {
1015  fTickY = 0;
1016  }
1017  }
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 782 of file JDrawer.h.

References fTitleSizeX, and findQualityFiles::size.

Referenced by jetHtPlotter().

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

◆ SetTitleSizeY()

void JDrawer::SetTitleSizeY ( double  size)
inline

Definition at line 785 of file JDrawer.h.

References fTitleSizeY, and findQualityFiles::size.

Referenced by jetHtPlotter().

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

◆ SetTopMargin()

void JDrawer::SetTopMargin ( double  margin)
inline

Definition at line 758 of file JDrawer.h.

References fMarginTop, and margin.

Referenced by drawSingleHistogram(), and jetHtPlotter().

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

Member Data Documentation

◆ fCanvas

TCanvas* JDrawer::fCanvas
private

◆ 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(), SelectPad(), and ~JDrawer().

◆ 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(), SelectPad(), and ~JDrawer().

◆ 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(), SelectPad(), and ~JDrawer().

◆ fSinglePad

TPad* JDrawer::fSinglePad
private

Definition at line 70 of file JDrawer.h.

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

◆ 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