HighLAND
|
#include <DrawingToolsBase.hxx>
Public Member Functions | |
DrawingToolsBase (const std::string &file="", Int_t T2KstyleIndex=1) | |
TH1_h * | AddErrorsInQuadrature (TH1_h *h1, TH1_h *h2, const std::string &opt="") |
std::string | GetSameRootOption (const std::string &root_opt) |
extract the same or sames option from the full root option | |
std::string | GetNoSameRootOption (const std::string &root_opt) |
remove same and sames options from the root option | |
void | Reset () |
reset all saved histograms | |
double | GetEntries (TTree *tree, const std::string &cut) |
Get number (sum of weights) of events (i.e. bunches) passing "cut". | |
double | GetEntries (TTree *tree, const std::string &cut, const std::string &var, const std::string &opt="", int toy_ref=-1) |
Get number (sum of weights) for variable var pasing "cut" (useful for vector variables, which number can be different than number of events/bunches) | |
void | ScaleHisto (TH1 *h, double scale, bool scale_errors=true) |
Scale an histogram and its errors(when requested) | |
double * | GetVariableBins (int nx, double xmin, double xmax, double *) |
Get a vector with variable binning. | |
std::string | GetSameLevel (const std::string &root_opt) |
Get the superposition level. | |
std::string | GetUniqueName (const std::string &name) |
void | CreateLegend (const std::string &uopt="") |
create the legend | |
void | PrintEventNumbers (TTree *tree, const std::string &cut, const std::string &file="", int toy_ref=-1) |
Print the event number of a specific selection. | |
std::string | FormatCut (const std::string &cut) |
Give the appropriate format to any cut. | |
std::string | AddRangeCut (const std::string &var, int nx, double *xbins, int ny, double *ybins, const std::string &cut, const std::string &uopt) |
Add cut on range shown on plot. | |
TH1 * | Draw (TTree *tree, const std::string &var, int nbins, double *xbins, const std::string &categ="all", const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1, bool scale_errors=true) |
1D histos | |
TH1 * | Draw (TTree *tree, const std::string &var, int nbins, double xmin, double xmax, const std::string &categ="all", const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1, bool scale_errors=true) |
TH1 * | Draw (TTree *tree, const std::string &var, int nx, double *xbins, int ny, double *ybins, const std::string &categ="all", const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1, bool scale_errors=true) |
2D histos | |
TH1 * | Draw (TTree *tree, const std::string &var, int nx, double xmin, double xmax, int ny, double ymin, double ymax, const std::string &categ="all", const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1, bool scale_errors=true) |
void | Draw (TTree *tree, const std::string &var, int nx, double xmin, double xmax, int ny, double ymin, double ymax, const std::string &idVar, std::vector< int > idSel, std::vector< std::string > idName, std::vector< int > idColor, const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1., bool scale_errors=true) |
void | Draw (TTree *tree_mc, TTree *tree_data, const std::string &var, int nx, double xmin, double xmax, int ny, double ymin, double ymax, const std::string &idVar, std::vector< int > idSel, std::vector< std::string > idName, std::vector< int > idColor, const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1., bool scale_errors=true) |
void | Draw (TTree *tree, const std::string &var, int nx, double *xbins, int ny, double *ybins, const std::string &idvar, std::vector< int > idSel, std::vector< std::string > idName, std::vector< int > idColor, const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1, bool scale_errors=true) |
void | Draw (TTree *tree_mc, TTree *tree_data, const std::string &var, int nx, double *xbins, int ny, double *ybins, const std::string &idvar, std::vector< int > idSel, std::vector< std::string > idName, std::vector< int > idColor, const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1, bool scale_errors=true) |
double | GetEff (TTree *tree, const std::string &var, double xmin, double xmax, const std::string &cut1, const std::string &cut2, const std::string &root_opt="", const std::string &opt="") |
double | GetEff (TTree *tree, const std::string &var, double xmin, double xmax, double &errlow, double &errhigh, const std::string &cut1, const std::string &cut2, const std::string &root_opt="", const std::string &opt="") |
void | DrawRatio (TTree *tree, const std::string &var, int nbins, double *xbins, const std::string &cut1, const std::string &cut2, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
void | DrawRatio (TTree *tree, const std::string &var, int nx, double xmin, double xmax, const std::string &cut1, const std::string &cut2, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
void | DrawEff (TTree *tree, const std::string &var, int nbins, double *xbins, const std::string &cut1, const std::string &cut2, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
void | DrawEff (TTree *tree, const std::string &var, int nx, double xmin, double xmax, const std::string &cut1, const std::string &cut2, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
void | DrawDoubleEff (TTree *tree1, TTree *tree2, const std::string &var, int nx, double *xbins, const std::string &cut1, const std::string &cut2, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
ratio between two Efficiencies | |
void | DrawDoubleEff (TTree *tree1, TTree *tree2, const std::string &var, int nx, double xmin, double xmax, const std::string &cut1, const std::string &cut2, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
void | DrawSignificance (TTree *tree, const std::string &var, int nbins, double *xbins, const std::string &cut1, const std::string &cut2, double norm=1, double rel_syst=0, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
1D significance | |
void | DrawSignificance (TTree *tree, const std::string &var, int nbins, double xmin, double xmax, const std::string &cut1, const std::string &cut2, double norm=1, double rel_syst=0, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
void | DrawGraph (TGraphAsymmErrors *eff, int nbins, double *xbins, const std::string &uroot_opt, const std::string &uopt, const std::string &leg, double ymax=1.05) |
[DrawingToolsBase_eff_ratio] | |
void | DumpGraph (TGraphAsymmErrors *graph, int nbins, const std::string &uopt) |
TH1_h * | GetEventsVSCut (TTree *tree, const std::string &var, const std::string &cut_norm, int isel, int branch, int &first_cut, int &last_cut, const std::string &root_opt="", const std::string &opt="") |
Get a TH1 containing the number of events passing the selection as a function of the cut. | |
void | DrawEventsVSCut (TTree *tree, const std::string &cut_norm="", int first_cut=-1, int last_cut=-1, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
void | DrawEventsVSCut (TTree *tree, int branch, const std::string &cut_norm="", int first_cut=-1, int last_cut=-1, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
Draw the number of events passing the selection as a function of the cut, for a given branch. | |
void | DrawEventsVSCut (TTree *tree, int isel, int branch, const std::string &cut_norm="", int first_cut=-1, int last_cut=-1, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
Draw the number of events passing the selection as a function of the cut, for a given selection and branch. | |
void | DrawRatioVSCut (TTree *tree1, TTree *tree2, const std::string &precut="", int first_cut=-1, int last_cut=-1, const std::string &root_opt="", const std::string &opt="", const std::string &leg="", double norm=1.) |
Draw the ratio between two trees as a function of the cut. | |
void | DrawRatioVSCut (TTree *tree1, TTree *tree2, int branch, const std::string &precut="", int first_cut=-1, int last_cut=-1, const std::string &root_opt="", const std::string &opt="", const std::string &leg="", double norm=1.) |
Draw the ratio between two trees as a function of the cut for a given branch. | |
void | DrawRatioVSCut (TTree *tree1, TTree *tree2, int isel, int branch, const std::string &precut="", int first_cut=-1, int last_cut=-1, const std::string &root_opt="", const std::string &opt="", const std::string &leg="", double norm=1.) |
Draw the ratio between two trees as a function of the cut for a given selection and branch. | |
void | DrawEffVSCut (TTree *tree, const std::string &signal="", const std::string &precut="", int first_cut=-1, int last_cut=-1, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
Draw the selection efficiency as a function of the cut. Must use the truth tree as input. | |
void | DrawEffVSCut (TTree *tree, int branch, const std::string &signal="", const std::string &precut="", int first_cut=-1, int last_cut=-1, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
Draw the selection efficiency as a function of the cut for a given branch. Must use the truth tree as input. | |
void | DrawEffVSCut (TTree *tree, int isel, int branch, const std::string &signal="", const std::string &precut="", int first_cut=-1, int last_cut=-1, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
Draw the selection efficiency as a function of the cut for a given selection and branch. Must use the truth tree as input. | |
void | DrawPurVSCut (TTree *tree, const std::string &signal="", const std::string &precut="", int first_cut=-1, int last_cut=-1, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
Draw the selection purity as a function of the cut. Must use the default tree as input. | |
void | DrawPurVSCut (TTree *tree, int branch, const std::string &signal="", const std::string &precut="", int first_cut=-1, int last_cut=-1, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
Draw the selection purity as a function of the cut for a given branch. Must use the default tree as input. | |
void | DrawPurVSCut (TTree *tree, int isel, int branch, const std::string &signal="", const std::string &precut="", int first_cut=-1, int last_cut=-1, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
Draw the selection purity as a function of the cut for a given selection and branch. Must use the default tree as input. | |
void | DrawRatioVSCut (TH1_h *h1, TH1_h *h2, int isel, int branch, int first_cut, const std::string &root_opt, const std::string &opt, const std::string &leg) |
[DrawingToolsBaseVsCutsMethods] More... | |
void | DrawToys (TTree *tree, const std::string &cut="", const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
void | DrawToysRatio (TTree *tree1, TTree *tree2, const std::string &cut="", const std::string &root_opt="", const std::string &opt="", const std::string &leg="", double norm=1) |
void | DrawToysRatioTwoCuts (TTree *tree1, TTree *tree2, const std::string &cut1, const std::string &cut2, const std::string &root_opt="", const std::string &opt="", const std::string &leg="", double norm=1) |
void | DrawToysBase (TH1_h &result, TH1_h &entries, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
[DrawingToolsBaseDrawToyMethods] More... | |
void | DrawVariations (const std::string &name, Int_t ipar=-1, int nx=100, double xmin=-5, double xmax=5, const std::string &root_opt="", const std::string &opt="", const std::string &leg="") |
Draw the variations for systematic parameter ipar. | |
void | Draw (TTree *tree1, TTree *tree2, const std::string &var, int nx, double xmin, double xmax, const std::string &categ="all", const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1, bool scale_errors=false) |
1D comparison More... | |
void | Draw (TTree *tree1, TTree *tree2, const std::string &var, int nbins, double *xbins, const std::string &categ="all", const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1, bool scale_errors=false) |
void | Draw (TTree *tree1, TTree *tree2, const std::string &var, int nx, double xmin, double xmax, int ny, double ymin, double ymax, const std::string &categ="all", const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1, bool scale_errors=false) |
2D comparison | |
void | Draw (TTree *tree1, TTree *tree2, const std::string &var, int nx, double *xbins, int ny, double *ybins, const std::string &categ="all", const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1, bool scale_errors=false) |
void | DrawRatio (TTree *tree1, TTree *tree2, const std::string &var, int nx, double xmin, double xmax, const std::string &cut="", const std::string &root_opt="", const std::string &opt="", const std::string &leg="", double norm=1) |
Ratio between the two data samples with the same cut. | |
void | DrawRatio (TTree *tree1, TTree *tree2, const std::string &var, int nx, double *xbins, const std::string &cut="", const std::string &root_opt="", const std::string &opt="", const std::string &leg="", double norm=1) |
void | DrawRatioTwoCuts (TTree *tree1, TTree *tree2, const std::string &var, int nx, double *xbins, int ny, double *ybins, const std::string &cut1="", const std::string &cut2="", const std::string &root_opt="", const std::string &opt="", const std::string &leg="", double norm=1, bool scale_errors=false) |
void | DrawRatioTwoCuts (TTree *tree1, TTree *tree2, const std::string &var, int nx, double xmin, double xmax, const std::string &cut1, const std::string &cut2, const std::string &root_opt="", const std::string &opt="", const std::string &leg="", double norm=1) |
Ratio between the two data samples with different cuts. | |
virtual void | DrawRatioTwoCuts (TTree *tree1, TTree *tree2, const std::string &var, int nx, double *xbins, const std::string &cut1, const std::string &cut2, const std::string &root_opt="", const std::string &opt="", const std::string &leg="", double norm=1) |
void | DrawRatio (TH1_h *ratio, const std::string &root_opt, const std::string &uopt, const std::string &leg) |
just Draw the ratio histogram | |
void | Project (HistoStack *hs1, HistoStack *hs2, TTree *tree1, TTree *tree2, const std::string &var, int nx, double *xbins, int ny, double *ybins, const std::string &categ="all", const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm2=1, bool scale_errors=true) |
void | ProjectNew (HistoStack *hs1, HistoStack *hs2, TTree *tree1, TTree *tree2, const std::string &var, int nx, double *xbins, int ny, double *ybins, const std::string &categ="all", const std::string &cut1="", const std::string &cut2="", const std::string &root_opt="", const std::string &opt="", double norm2=1, bool scale_errors=true) |
void | DumpHisto (TH1 *histo, const std::string &uopt) |
dump histo contents | |
void | DumpHistoInfo (TH1 *histo, const std::string &uopt) |
Dump integral, underflow and overflow. | |
void | DrawHisto (TH1 *h, int lc, int lw, int fc, int fs, const std::string &root_opt="", const std::string &opt="", const std::string &leg_opt="", int mode=0) |
void | DrawHisto (TH1 *h, int lw, int fc, int fs, const std::string &root_opt="", const std::string &opt="", const std::string &leg_opt="", int mode=0) |
void | DrawHisto (TH2 *h, int lc, int lw, int fc, int fs, const std::string &root_opt="", const std::string &opt="", const std::string &leg_opt="", int mode=0) |
void | DrawHisto (TH3F *h, int lc, int lw, int fc, int fs, const std::string &opt="") |
void | DrawHistoStack (HistoStack *hs, const std::string &categ, const std::string &root_opt, const std::string &opt, const std::string &leg_opt="", int mode=2) |
void | DrawHistoStack (HistoStack *hs, const std::string &categ, const std::string &root_opt, const std::string &opt, int lc, int lw, int fc, int fs, const std::string &leg_opt="", int mode=2) |
void | DrawHistoStacks (HistoStack *hs1, HistoStack *hs2, const std::string &categ, const std::string &root_opt, const std::string &opt, double norm) |
void | DrawRatioHistoStacks (HistoStack *hs1, HistoStack *hs2, const std::string &root_opt, const std::string &opt, double norm, const std::string &leg="") |
void | Project (HistoStack *hs, const std::string &sample_name, TTree *tree, const std::string &var, int nx, double *xbins, int ny, double *ybins, const std::string &categ="all", const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1, bool scale_errors=true) |
void | Project (HistoStack *hs, TTree *tree, const std::string &var, int nx, double *xbins, int ny, double *ybins, const std::string &idVar, std::vector< int > idSel, std::vector< std::string > idName, std::vector< int > idColor, const std::string &cut="", const std::string &root_opt="", const std::string &opt="", double norm=1, bool scale_errors=true) |
TH1_h * | GetHisto (TTree *tree, const std::string &name, const std::string &var, int nx, double *xbins, const std::string &cut, const std::string &root_opt, const std::string &opt, double scale, bool scale_errors=true, int toy_ref=-1) |
virtual TH2_h * | GetHisto (TTree *tree, const std::string &name, const std::string &var, int nx, double *xbins, int ny, double *ybins, const std::string &cut, const std::string &root_opt, const std::string &opt, double scale, bool scale_errors=true, int toy_ref=-1) |
virtual TH1_h * | GetHisto (HistoStack *hs, TTree *tree, const std::string &name, const std::string &var, int nx, double *xbins, const std::string &cut, const std::string &root_opt, const std::string &opt, TH1_h *&hsyst, double scale, bool scale_errors=true, int toy_ref=-1) |
TH1_h * | GetHisto (HistoStack *hs, TTree *tree, const std::string &name, const std::string &var, int nx, double *xbins, const std::string &cut, const std::string &root_opt, const std::string &opt, double scale, bool scale_errors=true, int toy_ref=-1) |
TH1_h * | GetRatioHisto (HistoStack *hs1, HistoStack *hs2, const std::string &opt) |
virtual TH1_h * | GetRatioHisto (TTree *tree1, TTree *tree2, const std::string &name, const std::string &var, int nx, double *xbins, const std::string &cut1, const std::string &cut2, const std::string &root_opt, const std::string &opt, double norm, double scale, bool scale_errors=true, int toy_ref=-1) |
virtual void | FillHistoErrors (HistoStack *hs1, HistoStack *hs2, TTree *tree1, TTree *tree2, const std::string &name, const std::string &var, int nx, double *xbins, const std::string &cut1, const std::string &cut2, const std::string &opt, double norm, TH1_h *hstat, TH1_h *&hsyst) |
virtual void | FillHistoErrors (HistoStack *hs1, HistoStack *hs2, TH1_h *histo, const std::string uopt) |
virtual void | UpdateSystInfo (HistoStack *hs1, HistoStack *hs2, TTree *tree1, TTree *tree2, const std::string &var, int nx, double *xbins, const std::string &cut1, const std::string &cut2, const std::string &opt, double norm) |
fill/update systematics information (fill appopriate histograms) for the stacks | |
virtual void | FillGraphErrors (HistoStack *hs1, HistoStack *hs2, TGraphAsymmErrors *graph, const std::string uopt) |
void | DumpLegendPos () |
Dump position and size of the legend/small legend. | |
void | DumpSmallLegendPos () |
void | SetLegendEntryHeight (double h) |
[DrawingToolsCommandLineOptions] More... | |
void | SetLegendParam (double a, double b, double c, double d) |
Set position and size of the legend. | |
void | SetLegendPos (double x=-999, double y=-999) |
void | SetLegendPos (std::string pos) |
void | SetLegendSize (double w=-999, double h=-999) |
Set legend/small legend size, width and height (if -999 keep same value) | |
void | SetSmallLegendSize (double w=-999, double h=-999) |
double | GetLegendX () |
Get position/size of the legend/small legend. | |
double | GetLegendY () |
double | GetLegendW () |
double | GetLegendH () |
double | GetSmallLegendX () |
double | GetSmallLegendY () |
double | GetSmallLegendW () |
double | GetSmallLegendH () |
void | SetOptStat (int opt) |
Set the stat option (by int or string) | |
void | SetOptStat (Option_t *stat) |
double | GetStatW () |
Set/Get the stat box size. | |
double | GetStatH () |
void | SetStatSize (double w=-999, double h=-999) |
double | GetStatX () |
Set/Get the stat box position (if -999 keep same value) | |
double | GetStatY () |
void | SetStatPos (double x=-999, double y=-999) |
void | SetStackFillStyle (int FillStyle) |
Change the fill style. | |
void | SetDifferentStackFillStyles (bool diff=true) |
Make each histogram in the stack have a different fill style. | |
void | SetMarkerStyle (int style) |
change the marker style | |
void | SetMarkerSize (double size) |
change the marker size | |
void | SetFillStyle (int style) |
Set the fill style of the current histogram.. | |
void | SetLineWidth (int width) |
Set the line width of the current histogram.. | |
void | SetLineColor (int color) |
Set the line color of the current histogram.. | |
void | SetLineColor (EColor kColor) |
void | SetFillColor (int color) |
Set the line color of the current histogram.. | |
void | SetFillColor (EColor kColor) |
void | SetMCErrorColor (EColor kColor) |
Set the color for the MC error bars. | |
void | SetMCErrorColor (int color) |
void | SetMCStatErrorColor (EColor kColor) |
void | SetMCStatErrorColor (int color) |
void | SetAutoColors (int colors[], int ncolors) |
Set the auto colors when superimposing histograms. | |
void | SetAutoMarkers (int markers[], int nmarkers) |
Set the auto Markers when superimposing histograms. | |
const std::string & | GetEffDivideParams () |
Setter and Getter for params controlling the efficiency calculation. | |
void | SetEffDivideParams (const std::string ¶ms) |
void | SetDefaultEffDivideParams () |
Setter of default params. | |
void | SetTitleX (const std::string &titleX) |
Set the title in X. | |
void | SetTitleY (const std::string &titleY) |
Set the title in Y. | |
void | SetTitle (const std::string &title) |
Set the title that appears at the top of the plot. | |
void | SetDataLabel (const std::string &label, Color_t color=kBlack) |
void | SetAllMCLabel (const std::string &label, Color_t color=kBlack) |
void | SetAllMCStatLabel (const std::string &label) |
void | SetAllMCSystLabel (const std::string &label) |
void | SetMinY (double minY=0) |
void | SetMaxY (double maxY=0) |
void | SetRangeY (double minY=0, double maxY=0) |
void | SetLogY (bool logY=true) |
Set the current histogram to be drawn with a logarithmic Y axis. | |
void | SetLogZ (bool logZ=true) |
Set the current 2D histogram to be drawn with a logarithmic Z axis (works only for category "all"). | |
void | SetRelativeMaxY (double maxY) |
Set the maximum value in Y relative to the bin with maximum content. | |
std::string | GetErrorStyle (const std::string &opt) |
Gets the root error style from the user option. | |
void | SetDraw2p2h (bool draw=true) |
switch on/off 2p2h type for reaction histos | |
void | DrawCutLineVertical (double xval, bool addarrow=false, std::string arrowdir="l", double arrowpos=0.5) |
[DrawingToolsCommandLineOptions] More... | |
void | DrawCutLineHorizontal (double yval, bool addarrow=false, std::string arrowdir="u", double arrowpos=0.5) |
void | DrawCutLine (double xmin, double ymin, double xmax, double ymax) |
void | DrawCutRegion (double xmin, double ymin, double xmax, double ymax, std::string opt="tblr") |
void | DrawCutArrow (double xmin, double ymin, double xmax, double ymax) |
void | SetCutLineColor (int col) |
Set the color of lines drawn with the DrawCut* functions. | |
void | SetCutLineColor (EColor kCol) |
void | SetCutLineWidth (int width) |
Set the width of lines drawn with the DrawCut* functions. | |
CorrectionManager & | corr () |
[DrawingToolsBaseDrawCutLineMethods] More... | |
SystematicManager & | syst () |
SelectionManager & | sel () |
ConfigurationManager & | conf () |
CategoryManager & | cat () |
DocStringManager & | doc () |
Header & | header () |
SystematicsTools & | syst_tools () |
an access to tools instance | |
ConfigTreeTools & | config_tools () |
void | DumpVariationSystematics () |
Print out the Standard Systematics for a given configuration. | |
void | DumpWeightSystematics () |
Print out the Weight Systematics for a given configuration. | |
void | DumpSystematics () |
Print out all Systematics for a given configuration. | |
void | DumpCorrections (const std::string &file="") |
Print out the Corrections. | |
void | ReadCorrections (const std::string &file) |
Read the list of Corrections. | |
void | ReadSystematics (const std::string &file) |
void | DumpConfigurations (const std::string &file="") |
Print out the Configurations. | |
void | DumpConfiguration (const std::string &name) |
Print out the Configuration. | |
void | ReadConfigurations (const std::string &file) |
Read the list of Configurations. | |
void | DumpSoftwareVersions (const std::string &file="") |
—— Package versions -------—— More... | |
void | DumpOriginalSoftwareVersion (const std::string &file="", bool all=true) |
Dumps on the screen the software version of the original file (i.e. output of recon) | |
void | DumpFileInfo (const std::string &file="") |
---— Package versions ----------— | |
void | ReadCategories (const std::string &file) |
void | DumpCategories () |
void | DumpCategories (const std::string &file) |
void | DumpCategory (std::string category) |
void | ChangeCategory (const std::string &categ_name, int ntypes, std::string *names, int *codes, int *colors) |
[DrawingToolsBase_categ] More... | |
bool | HasCategory (const std::string &categ_name) |
Check whether a category has been defined. | |
void | ReadSelections (const std::string &file) |
Read the list of Selections. | |
void | DumpSelections (const std::string &file="") |
void | DumpBranches (Int_t sel_index=0) |
Dump the list of branches in the selection provided selection index. | |
void | DumpBranches (const std::string &sel_name) |
Dump the list of branches in the selection provided selection name. | |
void | DumpCuts (int branch=-1) |
[DrawingToolsBase_DumpSelections] More... | |
void | DumpSteps (int branch=-1) |
void | DumpCuts (const std::string &sel_name, int branch=-1) |
void | DumpSteps (const std::string &sel_name, int branch=-1) |
void | DumpCuts (Int_t sel_index, int branch) |
void | DumpSteps (Int_t sel_index, int branch) |
std::vector< std::string > | GetCutNames (const std::string &sel_name, int branch=0) |
[DrawingToolsBase_DumpSteps] More... | |
std::vector< std::string > | GetStepNames (const std::string &sel_name, int branch=0) |
Get a vector of steps names for a given branch (in order) in a selection with a given name. | |
std::vector< std::string > | GetCutNames (Int_t sel_index, int branch) |
Get a vector of cut names for a given branch (in order) in a selection with a given index. | |
std::vector< std::string > | GetStepNames (Int_t sel_index, int branch) |
Get a vector of steps names for a given branch (in order) in a selection with a given index. | |
void | ExplainOption (std::string name) |
void | ListOptions () |
List all drawing options. | |
void | ExplainVar (std::string name, std::string tree_name="default") |
[DrawingToolsBase_ops] More... | |
void | ListVars (std::string tree_name="default") |
List all the variables stored in a tree. If no tree name is provided the "default" tree is used. | |
void | ReadDocStrings (const std::string &file) |
[DrawingToolsBase_vars] More... | |
void | DumpPOT (TTree *tree) |
void | DumpPOT (const std::string &file) |
Dump the POT information for this sample, provided an input file name. | |
void | ReadConfig (const std::string &file) |
[DrawingToolsBase_POT] More... | |
void | ReadOther (const std::string &file) |
Read any other variables in the config tree. | |
void | ReadOther (TTree *chain) |
void | PrintPurities (TTree *tree, const std::string &categ, const std::string &cut, double events_ratio=1) |
std::vector< TGraph *> | GetGraphs () |
Get all the graphs that have been drawn. Useful if you want to save them to file. | |
TGraph * | GetLastGraph () |
Get the last graph that was drawn. Useful if you want to modify its appearance. | |
std::vector< TH1 *> | GetHistos () |
TLegend * | GetLastLegend () |
Get the last legend that was drawn. Useful if you want to modify its appearance. | |
void | ChangeLegendEntry (Int_t index, const std::string &new_label="", const std::string &new_opt="") |
Change the label or drawing style of a entry in the legend provided the entry number. | |
void | DeleteLegendEntry (Int_t index) |
Delete a given Legent entry provided its index. | |
std::vector< TH1 *> | Get2DHistos () |
TH1 * | GetLastHisto () |
Get all the last Histo that was drawn. Useful if you want to modify its appearance. | |
TH1 * | GetLastStackTotal (int nexttolast=0) |
HistoStack * | GetLastStack (int nexttolast=0) |
Get the most recently-drawn stacked histogram. Useful to access its histograms. | |
void | StartDocument (const std::string &title, bool pdf=true, bool web=false, const std::string &pdffile="plots.pdf", const std::string &webpath="plots") |
void | AddDocumentPage (const std::string &name) |
void | FinishDocument () |
int | MakeDirectory (const std::string &path, mode_t mode) |
Make a directory on the filesystem. | |
std::string | ConvertCutForTruthTree (const std::string cut, bool replace_selmu=true) |
double | GetChi2 (const TH1 *h1, const TH1 *h2) |
int | GetNDOF (const TH1 *h1, const TH1 *h2) |
double | GetPvalue (double chi2, int ndof) |
double | GetPvalue (const TH1 *h1, const TH1 *h2) |
Protected Member Functions | |
int | GetFillStyle (int i) |
Protected Attributes | |
int | _unique |
Counter for ensuring all histograms get a unique name. | |
bool | _drawleg |
std::vector< TLegend * > | _legends |
double | _legendParam [4] |
double | _legendSize [2] |
double | _legendPos [2] |
double | _legendSmallSize [2] |
double | _statPos [2] |
std::string | _legendPosS |
int | _stat_option |
int | _stack_fill_style |
bool | _different_fill_styles |
int | _marker_style |
int | _fill_style |
int | _fill_color |
int | _line_width |
int | _line_color |
int | _mcerror_color |
int | _mcstaterror_color |
double | _marker_size |
int | _cut_line_col |
int | _cut_line_width |
std::string | _titleX |
std::string | _titleY |
std::string | _title |
Color_t | _data_color |
Color_t | _allmc_color |
std::string | _data_label |
std::string | _allmc_label |
std::string | _allmcstat_label |
std::string | _allmcsyst_label |
double | _minY |
double | _maxY |
double | _relativeMaxY |
bool | _logY |
bool | _logZ |
std::string | _eff_params |
parameter to control options for TGraphAsymmErrors::Divide() method, the one used to get the efficiencies | |
bool | _draw_2p2h |
TFile * | _file |
int | _same_level |
int | _same_level_tot |
int | _auto_colors [NMAXAUTOCOLORS] |
int | _auto_markers [NMAXAUTOCOLORS] |
std::vector< TH1 *> | _saved_histos |
std::vector< TH2 *> | _saved_histos2D |
std::vector< HistoStack *> | _saved_histoStacks |
std::vector< TGraph *> | _saved_graphs |
std::vector< TLine *> | _cut_lines |
TPad * | _MainPad |
TPad * | _RatioPad |
TCanvas * | _pdfcanvas |
TPad * | _bodypad |
TPad * | _headpad |
std::string | _pdfpath |
std::string | _webpath |
std::string | _webheader |
std::string | _webbody |
std::string | _config_file |
DocStringManager | _docStrings |
CategoryManager | _categories |
ConfigurationManager | _configurations |
CorrectionManager | _corrections |
SystematicManager | _systematics |
SelectionManager | _selections |
SystematicsTools | _syst_tools |
ConfigTreeTools | _configTree_tools |
Header | _header |
Int_t | _minAccumLevelToSave |
This is the base class for the DrawingTools, and uses a single TTree to as input, rather than a DataSample object. It handles color code drawing and variable binning.
Users generally shouldn't instantiate this class directly, but use the DrawingTools class instead. See the DrawingTools class documentation for more details.
TODO: This class must be properly documented.
Definition at line 62 of file DrawingToolsBase.hxx.
void DrawingToolsBase::AddDocumentPage | ( | const std::string & | name | ) |
Add a page to the PDF document and/or webpage that was opened with StartDocument(). "name" will appear on web pages to give context to what each plot is. If StartDocument() createdg a canvas for you, "name" will also appear in the header section of the PDF page.
Definition at line 3590 of file DrawingToolsBase.cxx.
void DrawingToolsBase::ChangeCategory | ( | const std::string & | categ_name, |
int | ntypes, | ||
std::string * | names, | ||
int * | codes, | ||
int * | colors | ||
) |
[DrawingToolsBase_categ]
Update or add a category.
Definition at line 3304 of file DrawingToolsBase.cxx.
|
inline |
[DrawingToolsBaseDrawCutLineMethods]
Provide easy access to the managers.
Definition at line 613 of file DrawingToolsBase.hxx.
void DrawingToolsBase::Draw | ( | TTree * | tree1, |
TTree * | tree2, | ||
const std::string & | var, | ||
int | nx, | ||
double | xmin, | ||
double | xmax, | ||
const std::string & | categ = "all" , |
||
const std::string & | cut = "" , |
||
const std::string & | root_opt = "" , |
||
const std::string & | opt = "" , |
||
double | norm = 1 , |
||
bool | scale_errors = false |
||
) |
1D comparison
Definition at line 1241 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DrawCutArrow | ( | double | xmin, |
double | ymin, | ||
double | xmax, | ||
double | ymax | ||
) |
Draw an arrow between two points. If a legend had already been created by the DrawingTools, and drawn on the current pad, it is re-drawn. This means that the line does not cover it up.
Definition at line 3457 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DrawCutLine | ( | double | xmin, |
double | ymin, | ||
double | xmax, | ||
double | ymax | ||
) |
Draw an abritary line between two points. If a legend had already been created by the DrawingTools, and drawn on the current pad, it is re-drawn. This means that the line does not cover it up.
Definition at line 3442 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DrawCutLineHorizontal | ( | double | yval, |
bool | addarrow = false , |
||
std::string | arrowdir = "u" , |
||
double | arrowpos = 0.5 |
||
) |
Draw a horizontal line at the specified Y value, spanning the currently-drawn histogram. See note in DrawCutLine() about legends being re-drawn when calling this function. If addarrow is set to true, then an arrow indicating the direction of the cut is drawn. arrowdir respects the following options: u : Draw the arrow pointing upwards (default) d : Draw the arrow pointing downwards arrowpos specifies the fractional length along the cut line to draw the arrow at, measuring from the left end of the line. Defaults to half way along.
Definition at line 3420 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DrawCutLineVertical | ( | double | xval, |
bool | addarrow = false , |
||
std::string | arrowdir = "l" , |
||
double | arrowpos = 0.5 |
||
) |
[DrawingToolsCommandLineOptions]
[DrawingToolsBaseDrawCutLineMethods] Draw a vertical line at the specified X value, spanning the currently-drawn histogram. See note in DrawCutLine() about legends being re-drawn when calling this function. If addarrow is set to true, then an arrow indicating the direction of the cut is drawn. arrowdir respects the following options: l : Draw the arrow pointing to the left r : Draw the arrow pointing to the right (default) arrowpos specifies the fractional length along the cut line to draw the arrow at, measuring from the bottom of the line. Defaults to half way along.
Definition at line 3397 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DrawCutRegion | ( | double | xmin, |
double | ymin, | ||
double | xmax, | ||
double | ymax, | ||
std::string | opt = "tblr" |
||
) |
Draw a box defined by the minimum and maximum points. The opt parameter specifies, among other things, which sides of the box to draw: t : draw the (t)op of the box b : draw the (b)ottom of the box l : draw the (l)eft of the box r : draw the (r)ight of the box nochop : Don't constrain the sides of the box to stay within the current axes.
See note in DrawCutLine() about legends being re-drawn when calling this function.
Definition at line 3472 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DrawEventsVSCut | ( | TTree * | tree, |
const std::string & | cut_norm = "" , |
||
int | first_cut = -1 , |
||
int | last_cut = -1 , |
||
const std::string & | root_opt = "" , |
||
const std::string & | opt = "" , |
||
const std::string & | leg = "" |
||
) |
[DrawingToolsBaseVsCutsMethods] Draw the number of events passing the selection as a function of the cut
Definition at line 1427 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DrawRatio | ( | TTree * | tree, |
const std::string & | var, | ||
int | nbins, | ||
double * | xbins, | ||
const std::string & | cut1, | ||
const std::string & | cut2, | ||
const std::string & | root_opt = "" , |
||
const std::string & | opt = "" , |
||
const std::string & | leg = "" |
||
) |
[DrawingToolsBase_eff_ratio] 1D Ratio between two independent cuts (the denominator cut is cut2, the numerator cut is cut1)
Definition at line 1232 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DrawRatioVSCut | ( | TH1_h * | h1, |
TH1_h * | h2, | ||
int | isel, | ||
int | branch, | ||
int | first_cut, | ||
const std::string & | root_opt, | ||
const std::string & | opt, | ||
const std::string & | leg | ||
) |
[DrawingToolsBaseVsCutsMethods]
Draw the ratio between two samples as a function of the cut
Definition at line 1702 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DrawToys | ( | TTree * | tree, |
const std::string & | cut = "" , |
||
const std::string & | root_opt = "" , |
||
const std::string & | opt = "" , |
||
const std::string & | leg = "" |
||
) |
[DrawingToolsBaseDrawToyMethods] This method draws the distribution of the number of selected events for all toys (one entry per toy in the histogram), provided a cut This is useful to check that the systematic error bars correspond to the RMS of this distribution
Definition at line 1828 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DrawToysBase | ( | TH1_h & | result, |
TH1_h & | entries, | ||
const std::string & | root_opt = "" , |
||
const std::string & | opt = "" , |
||
const std::string & | leg = "" |
||
) |
[DrawingToolsBaseDrawToyMethods]
Basic method used by the ones above
Definition at line 1947 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DrawToysRatio | ( | TTree * | tree1, |
TTree * | tree2, | ||
const std::string & | cut = "" , |
||
const std::string & | root_opt = "" , |
||
const std::string & | opt = "" , |
||
const std::string & | leg = "" , |
||
double | norm = 1 |
||
) |
This method draws the distribution of the ratio of number of selected events between two samples for all toys (one entry per toy in the histogram), provided a cut (the same for numerator and denominator)
Definition at line 1869 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DrawToysRatioTwoCuts | ( | TTree * | tree1, |
TTree * | tree2, | ||
const std::string & | cut1, | ||
const std::string & | cut2, | ||
const std::string & | root_opt = "" , |
||
const std::string & | opt = "" , |
||
const std::string & | leg = "" , |
||
double | norm = 1 |
||
) |
This method draws the distribution of the ratio of number of selected events between two samples for all toys (one entry per toy in the histogram), provided two cuts, one for the numerator and another for the denominator
Definition at line 1881 of file DrawingToolsBase.cxx.
|
inline |
[DrawingToolsBase_categ] Print out the list of categories which can be used when plotting stacked histograms
Definition at line 709 of file DrawingToolsBase.hxx.
|
inline |
Print out the list of categories stored in the given file which can be used when plotting stacked histograms
Definition at line 713 of file DrawingToolsBase.hxx.
|
inline |
Print the options saved for the given category, including the name of each category, the value stored in the output file for that category, and the colour used to plot the category.
Definition at line 717 of file DrawingToolsBase.hxx.
void DrawingToolsBase::DumpCuts | ( | int | branch = -1 | ) |
[DrawingToolsBase_DumpSelections]
[DrawingToolsBase_DumpSteps] Print to screen the details of cuts for a given branch or selection. Specifying a branch of -1 (the default) will print details for all branches. When there are multiple selections the input index is for the selection
Definition at line 4154 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DumpCuts | ( | const std::string & | sel_name, |
int | branch = -1 |
||
) |
Print to screen the details of cuts for a given branch and selection (name). Specifying a branch of -1 (the default) will print details for all branches.
Definition at line 4174 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DumpCuts | ( | Int_t | sel_index, |
int | branch | ||
) |
Print to screen the details of cuts for a given branch and selection (index). Specifying a branch of -1 (the default) will print details for all branches.
Definition at line 4186 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DumpPOT | ( | TTree * | tree | ) |
[DrawingToolsBase_POT] Dump the POT information for this sample, provided the header tree
Definition at line 4198 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DumpSelections | ( | const std::string & | file = "" | ) |
[DrawingToolsBase_DumpSelections] Dump the list of Selections
Definition at line 4134 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DumpSoftwareVersions | ( | const std::string & | file = "" | ) |
—— Package versions -------——
Dumps on the screen the highland/psyche software versions used to produce this file
Definition at line 3814 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DumpSteps | ( | int | branch = -1 | ) |
Print to screen the details of steps for a given branch or selection. Specifying a branch of -1 (the default) will print details for all branches. When there are multiple selections the input index is for the selection
Definition at line 4164 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DumpSteps | ( | const std::string & | sel_name, |
int | branch = -1 |
||
) |
Print to screen the details of steps for a given branch and selection (name). Specifying a branch of -1 (the default) will print details for all branches.
Definition at line 4180 of file DrawingToolsBase.cxx.
void DrawingToolsBase::DumpSteps | ( | Int_t | sel_index, |
int | branch | ||
) |
Print to screen the details of steps for a given branch and selection (index). Specifying a branch of -1 (the default) will print details for all branches.
Definition at line 4192 of file DrawingToolsBase.cxx.
|
inline |
[DrawingToolsBase_ops] Explain the user drawing options
Definition at line 809 of file DrawingToolsBase.hxx.
|
inline |
[DrawingToolsBase_ops]
[DrawingToolsBase_vars] Explain the meaning of a variable stored in a tree. If no tree name is provided the "default" tree is used
Definition at line 817 of file DrawingToolsBase.hxx.
void DrawingToolsBase::FinishDocument | ( | ) |
Close the PDF document / webpage that was opened with StartDocument. Note that you MUST call this function or your PDF document will be corrupt / the webpage will be empty.
Definition at line 3624 of file DrawingToolsBase.cxx.
|
inline |
Get all the 1D histos that have been drawn. Useful if you want to save them to file. NOTE! The "same" plot may appear multiple times due to the way the comparison histograms are drawn.
Definition at line 876 of file DrawingToolsBase.hxx.
double DrawingToolsBase::GetChi2 | ( | const TH1 * | h1, |
const TH1 * | h2 | ||
) |
Compute the Chi2 without normalizing by area (as Chi2Test of root does) h1/h2 should be already normalized by POT, with errors properly propagated: just get them from your DATA-mc plot with GetLastStackTotal(0) and GetLastStackTotal(1)
Definition at line 4076 of file DrawingToolsBase.cxx.
|
inline |
[DrawingToolsBase_DumpSteps]
Get a vector of cut names for a given branch (in order) in a selection with a given name
Definition at line 782 of file DrawingToolsBase.hxx.
double DrawingToolsBase::GetEff | ( | TTree * | tree, |
const std::string & | var, | ||
double | xmin, | ||
double | xmax, | ||
const std::string & | cut1, | ||
const std::string & | cut2, | ||
const std::string & | root_opt = "" , |
||
const std::string & | opt = "" |
||
) |
Get the efficiency (BayesDivide ratio) of two histograms in which the numerator (cut1+cut2) is a subset of the denominator (cut2). Integrate over "var" between xmin and xmax. This is useful for doing quick optimisation studies, where one can loop over several cut options to see the effect they have.
Definition at line 855 of file DrawingToolsBase.cxx.
double DrawingToolsBase::GetEff | ( | TTree * | tree, |
const std::string & | var, | ||
double | xmin, | ||
double | xmax, | ||
double & | errlow, | ||
double & | errhigh, | ||
const std::string & | cut1, | ||
const std::string & | cut2, | ||
const std::string & | root_opt = "" , |
||
const std::string & | opt = "" |
||
) |
See other GetEff() interface for documentation. In this interface, errlow and errhigh will be filled with the upper and lower errors on the efficiency.
Definition at line 864 of file DrawingToolsBase.cxx.
|
protected |
Get the fill style to apply to the i'th histogram in a stack. Depends on whether SetDifferentStackFillStyles() has been called.
Definition at line 2627 of file DrawingToolsBase.cxx.
|
inline |
Get all the 1D histos that have been drawn. Useful if you want to save them to file. NOTE! The "same" plot may appear multiple times due to the way the comparison histograms are drawn.
Definition at line 862 of file DrawingToolsBase.hxx.
|
inline |
Get the total from the most recently-drawn stacked histogram. Useful if you want to save it to file.
Definition at line 887 of file DrawingToolsBase.hxx.
std::string DrawingToolsBase::GetUniqueName | ( | const std::string & | name | ) |
Get a unique name for a histogram, to avoid name clashes when drawing on multiple canvases.
Definition at line 2668 of file DrawingToolsBase.cxx.
void DrawingToolsBase::PrintPurities | ( | TTree * | tree, |
const std::string & | categ, | ||
const std::string & | cut, | ||
double | events_ratio = 1 |
||
) |
Print on the screen the purities for the different categories defined by "categ" and with cuts "cut". The expected number of events are also printed, after scaling by events_ratio.
Definition at line 3215 of file DrawingToolsBase.cxx.
|
inline |
Read the list of categories stored in the given file which can be used when plotting stacked histograms
Definition at line 705 of file DrawingToolsBase.hxx.
void DrawingToolsBase::ReadConfig | ( | const std::string & | file | ) |
[DrawingToolsBase_POT]
Read config tree
Definition at line 248 of file DrawingToolsBase.cxx.
|
inline |
[DrawingToolsBase_vars]
Read the details of docstrings from a given file. The details will have been read automatically if you passed the path to a valid highland file in the DrawingTools or DrawingToolsBase constructor.
Definition at line 825 of file DrawingToolsBase.hxx.
|
inline |
Set the label for the mc when drawing comparison plots. Defaults to "MC all". Setting it to "" (empty string) will disable adding it to the legend.
Definition at line 519 of file DrawingToolsBase.hxx.
|
inline |
Set the label for the mc with only statistical errors when drawing comparison plots. Defaults to "MC all (stat)". Setting it to "" (empty string) will disable adding it to the legend.
Definition at line 523 of file DrawingToolsBase.hxx.
|
inline |
Set the label for the mc with only systematic errors when drawing comparison plots. Defaults to "MC all (syst)". Setting it to "" (empty string) will disable adding it to the legend.
Definition at line 527 of file DrawingToolsBase.hxx.
|
inline |
Set the label for the data when drawing comparison plots. Defaults to "Data". Setting it to "" (empty string) will disable adding it to the legend.
Definition at line 515 of file DrawingToolsBase.hxx.
|
inline |
[DrawingToolsCommandLineOptions]
Set the height (in normalized coordinates: NDC) of each legend entry
Definition at line 420 of file DrawingToolsBase.hxx.
void DrawingToolsBase::SetLegendPos | ( | double | x = -999 , |
double | y = -999 |
||
) |
Set legend/small legend position by double (-999 keep current value) or by string ("l"=left, "r"=right , "c"=center, "t"=top, "b"=bottom)
Definition at line 282 of file DrawingToolsBase.cxx.
|
inline |
Set the maximum of the Y-axis. By default the maximum is set automatically by the DrawingTools. Call SetMaxY() to revert to the default behaviour.
Definition at line 535 of file DrawingToolsBase.hxx.
void DrawingToolsBase::SetMinY | ( | double | minY = 0 | ) |
Set the minimum of the Y-axis. By default the minimum is set to 0. Call SetMinY() to revert to the default behaviour.
Definition at line 3498 of file DrawingToolsBase.cxx.
|
inline |
Set the minimum and maximum of the Y-axis. See the documentation of SetMinY and SetMaxY for the default behaviour. Call SetRangeY() to revert to the default behaviour.
Definition at line 539 of file DrawingToolsBase.hxx.
void DrawingToolsBase::StartDocument | ( | const std::string & | title, |
bool | pdf = true , |
||
bool | web = false , |
||
const std::string & | pdffile = "plots.pdf" , |
||
const std::string & | webpath = "plots" |
||
) |
Start the creation of a PDF document and/or webpage which will contain the plots you make. This makes it particularly easy to share many plots. pdffile is the path to the PDF FILE that will be created webpath is the path to the DIRECTORY in which the webpage and images will be placed.
There are two possible use cases for these functions: draw.StartDocument(...); // Will create a canvas for you draw.Draw(...); // Will draw on the right canvas draw.AddDocumentPage(...); // Will save the current page ... draw.FinishDocument(); // Finish and close
OR
TCanvas canvas(...); // Create your own canvas draw.StartDocument(...); // Won't create a canvas for you draw.Draw(...); // Will draw on your canvas draw.AddDocumentPage(...); // Will save the current page ... draw.FinishDocument(); // Finish and close
In the first case, a canvas was automatically created. This canvas is split into two sections - a header and a body. The header will be populated with the "name" you provide in AddDocumentPage. This makes it easier to understand what each plot is. In the second case, it is assumed you know what you want, so we don't create this header section.
Definition at line 3548 of file DrawingToolsBase.cxx.