NAGASH 0.9.8
Next Generation Analysis System
|
Next Generation Figure Package, now replaced by NAGASH::FigureTool. More...
#include <NAGASH/NGFigure.h>
Public Member Functions | |
NGFigure (std::shared_ptr< MSGTool > msg, const char *FigureName, const char *TitleX, const char *TitleY) | |
Constructor. | |
~NGFigure () | |
bool | Check () |
bool | ConfigParameters () |
bool | DefinePad () |
void | DrawFigure () |
bool | DrawHist () |
bool | DrawHist2D () |
bool | DrawHStack () |
bool | HackStagger () |
bool | Normalize () |
bool | RebinHist () |
bool | SaveHist () |
void | SeparateUncertainty (bool doseparate=true) |
void | Set2DColorOnly (bool docoloronly=true) |
void | Set2DTextOnly (bool dotextonly=true) |
void | SetAsmble (int index) |
void | SetAxis () |
void | SetFixedNormFactor (bool fix=true, double scale=-1) |
void | SetGraphLine (int line_style, int line_width, int line_color) |
void | SetGraphMarker (int marker_style, int marker_size, int marker_color) |
void | SetGrid (bool grid=true) |
void | SetGridX (bool grid=true) |
void | SetGridY (bool grid=true) |
void | SetHeaderName (const char *header) |
void | SetHist () |
void | SetInputGraph (TGraph *graph, const char *legendname, const char *drawoption) |
Set input graph. | |
void | SetInputHist (const char *filename, const char *histname, const char *legendname, int rebinnum=-1, double scale=1) |
Set input histogram. | |
void | SetInputHist (TFile *infile, const char *histname, const char *legendname, int rebinnum=-1, double scale=1) |
Set input histogram. | |
void | SetInputHist (TH1D *hist, const char *legendnamem, int rebinnum=-1, double scale=1) |
Set input histogram. | |
void | SetInputHist2D (const char *filename, const char *histname, const char *legendname, int rebinnumx=-1, int rebinnumy=-1) |
Set input 2D histogram. | |
void | SetInputHist2D (TFile *infile, const char *histname, const char *legendname, int rebinnumx=-1, int rebinnumy=-1) |
Set input 2D histogram. | |
void | SetInputHist2D (TH2D *hist, const char *legendnamem, int rebinnumx=-1, int rebinnumy=-1) |
Set input 2D histogram. | |
void | SetLeftPercentage (double percent) |
void | SetLegend (bool) |
void | SetLegendColumn (int num) |
void | SetMainGridX (bool grid=true) |
void | SetMainGridY (bool grid=true) |
void | SetMainLogY (bool dosetlogy=true) |
void | SetMainYRange (double min, double max) |
void | SetMainZRange (double min, double max) |
void | SetMargin () |
void | SetMatrixStyle (bool domatrix=true) |
void | SetMode (const char *main_mode_tag, const char *sub_mode_tag="UNKNOWN", const char *SubTitleY="UNKNOWN") |
The mode of the figure. | |
void | SetNormRange (double min, double max) |
void | SetNotNorm () |
void | SetShowChi2 (bool show=true) |
void | SetStagger (bool dostagger=true) |
void | SetStyleIndex (int index) |
void | SetSubGridX (bool grid=true) |
void | SetSubGridY (bool grid=true) |
void | SetSubYRange (double min, double max) |
void | SetXBinName (const char *binname) |
void | SetXRange (double min, double max) |
Draw range of the xaxis. | |
void | SetYBinName (const char *binname) |
Additional Inherited Members | |
Protected Member Functions inherited from NAGASH::Tool | |
Tool ()=delete | |
Tool (const Tool &tool)=delete | |
Tool (std::shared_ptr< MSGTool > MSG) | |
Constructor. | |
Tool (Tool &&tool)=delete | |
virtual | ~Tool ()=default |
std::shared_ptr< MSGTool > | MSGUser () |
return the MSGTool inside. | |
Tool & | operator= (const Tool &tool)=delete |
Tool & | operator= (Tool &&tool)=delete |
Next Generation Figure Package, now replaced by NAGASH::FigureTool.
Finished in 2019.Jun.4th Version 1.0 Modified to adjust NAGASH in 2021.3.4
Definition at line 15 of file NGFigure.h.
NGFigure::NGFigure | ( | std::shared_ptr< MSGTool > | msg, |
const char * | FigureName, | ||
const char * | TitleX, | ||
const char * | TitleY | ||
) |
Constructor.
msg | input MSGTool. |
FigureName | name of the figure you want to save. |
TitleX | x-axis title. |
TitleY | y-axis title. |
Definition at line 24 of file NGFigure.cxx.
NGFigure::~NGFigure | ( | ) |
Definition at line 2024 of file NGFigure.cxx.
bool NGFigure::Check | ( | ) |
Definition at line 424 of file NGFigure.cxx.
bool NGFigure::ConfigParameters | ( | ) |
Definition at line 594 of file NGFigure.cxx.
bool NGFigure::DefinePad | ( | ) |
Definition at line 1236 of file NGFigure.cxx.
void NGFigure::DrawFigure | ( | ) |
Definition at line 1986 of file NGFigure.cxx.
bool NGFigure::DrawHist | ( | ) |
Definition at line 1264 of file NGFigure.cxx.
bool NGFigure::DrawHist2D | ( | ) |
Definition at line 1880 of file NGFigure.cxx.
bool NGFigure::DrawHStack | ( | ) |
Definition at line 1853 of file NGFigure.cxx.
bool NGFigure::HackStagger | ( | ) |
Definition at line 1930 of file NGFigure.cxx.
bool NGFigure::Normalize | ( | ) |
Definition at line 462 of file NGFigure.cxx.
bool NGFigure::RebinHist | ( | ) |
Definition at line 360 of file NGFigure.cxx.
bool NGFigure::SaveHist | ( | ) |
Definition at line 1382 of file NGFigure.cxx.
void NGFigure::SeparateUncertainty | ( | bool | doseparate = true | ) |
Definition at line 2213 of file NGFigure.cxx.
void NGFigure::Set2DColorOnly | ( | bool | docoloronly = true | ) |
Definition at line 2223 of file NGFigure.cxx.
void NGFigure::Set2DTextOnly | ( | bool | dotextonly = true | ) |
Definition at line 2218 of file NGFigure.cxx.
void NGFigure::SetAsmble | ( | int | index | ) |
Definition at line 2165 of file NGFigure.cxx.
void NGFigure::SetAxis | ( | ) |
Definition at line 1419 of file NGFigure.cxx.
void NGFigure::SetFixedNormFactor | ( | bool | fix = true , |
double | scale = -1 |
||
) |
Definition at line 2185 of file NGFigure.cxx.
void NGFigure::SetGraphLine | ( | int | line_style, |
int | line_width, | ||
int | line_color | ||
) |
Definition at line 344 of file NGFigure.cxx.
void NGFigure::SetGraphMarker | ( | int | marker_style, |
int | marker_size, | ||
int | marker_color | ||
) |
Definition at line 328 of file NGFigure.cxx.
void NGFigure::SetGrid | ( | bool | grid = true | ) |
Definition at line 2159 of file NGFigure.cxx.
void NGFigure::SetGridX | ( | bool | grid = true | ) |
Definition at line 2147 of file NGFigure.cxx.
void NGFigure::SetGridY | ( | bool | grid = true | ) |
Definition at line 2153 of file NGFigure.cxx.
void NGFigure::SetHeaderName | ( | const char * | header | ) |
Definition at line 2191 of file NGFigure.cxx.
void NGFigure::SetHist | ( | ) |
Definition at line 1498 of file NGFigure.cxx.
void NGFigure::SetInputGraph | ( | TGraph * | graph, |
const char * | legendname, | ||
const char * | drawoption | ||
) |
Set input graph.
graph | pointer to the TGraph. |
legendname | name of the legend of this graph. |
drawoption | draw option of this graph, same as options in TGraph::Draw(). |
Definition at line 253 of file NGFigure.cxx.
void NGFigure::SetInputHist | ( | const char * | filename, |
const char * | histname, | ||
const char * | legendname, | ||
int | rebinnum = -1 , |
||
double | scale = 1 |
||
) |
Set input histogram.
filename | ROOT file name that stores the histogram. |
histname | name of the histogram. |
legendname | name of the legend of this histogram. |
rebinnum | rebin number of the histogram if you want to rebin it. |
scale | scale factor of the histogram if you want to scale it. |
Definition at line 66 of file NGFigure.cxx.
void NGFigure::SetInputHist | ( | TFile * | infile, |
const char * | histname, | ||
const char * | legendname, | ||
int | rebinnum = -1 , |
||
double | scale = 1 |
||
) |
Set input histogram.
infile | pointer to the TFile. |
histname | name of the histogram. |
legendname | name of the legend of this histogram. |
rebinnum | rebin number of the histogram if you want to rebin it. |
scale | scale factor of the histogram if you want to scale it. |
Definition at line 103 of file NGFigure.cxx.
void NGFigure::SetInputHist | ( | TH1D * | hist, |
const char * | legendname, | ||
int | rebinnum = -1 , |
||
double | scale = 1 |
||
) |
Set input histogram.
hist | pointer to the histogram. |
legendname | name of the legend of this histogram. |
rebinnum | rebin number of the histogram if you want to rebin it. |
scale | scale factor of the histogram if you want to scale it. |
Definition at line 139 of file NGFigure.cxx.
void NGFigure::SetInputHist2D | ( | const char * | filename, |
const char * | histname, | ||
const char * | legendname, | ||
int | rebinnumx = -1 , |
||
int | rebinnumy = -1 |
||
) |
Set input 2D histogram.
filename | ROOT file name that stores the 2D histogram. |
histname | name of the 2D histogram. |
legendname | name of the legend of this 2D histogram. |
rebinnumx | rebin number of the xaxis. |
rebinnumy | rebin number of the yaxis. |
Definition at line 168 of file NGFigure.cxx.
void NGFigure::SetInputHist2D | ( | TFile * | infile, |
const char * | histname, | ||
const char * | legendname, | ||
int | rebinnumx = -1 , |
||
int | rebinnumy = -1 |
||
) |
Set input 2D histogram.
infile | pointer to the TFile. |
histname | name of the 2D histogram. |
legendname | name of the legend of this 2D histogram. |
rebinnumx | rebin number of the xaxis. |
rebinnumy | rebin number of the yaxis. |
Definition at line 201 of file NGFigure.cxx.
void NGFigure::SetInputHist2D | ( | TH2D * | hist, |
const char * | legendname, | ||
int | rebinnumx = -1 , |
||
int | rebinnumy = -1 |
||
) |
Set input 2D histogram.
hist | pointer to the 2D histogram. |
legendname | name of the legend of this 2D histogram. |
rebinnumx | rebin number of the xaxis. |
rebinnumy | rebin number of the yaxis. |
Definition at line 232 of file NGFigure.cxx.
void NGFigure::SetLeftPercentage | ( | double | percent | ) |
Definition at line 2175 of file NGFigure.cxx.
void NGFigure::SetLegend | ( | bool | dolegend | ) |
Definition at line 2238 of file NGFigure.cxx.
void NGFigure::SetLegendColumn | ( | int | num | ) |
Definition at line 2233 of file NGFigure.cxx.
void NGFigure::SetMainGridX | ( | bool | grid = true | ) |
Definition at line 2137 of file NGFigure.cxx.
void NGFigure::SetMainGridY | ( | bool | grid = true | ) |
Definition at line 2142 of file NGFigure.cxx.
void NGFigure::SetMainLogY | ( | bool | dosetlogy = true | ) |
Definition at line 1414 of file NGFigure.cxx.
void NGFigure::SetMainYRange | ( | double | min, |
double | max | ||
) |
Definition at line 2071 of file NGFigure.cxx.
void NGFigure::SetMainZRange | ( | double | min, |
double | max | ||
) |
Definition at line 2085 of file NGFigure.cxx.
void NGFigure::SetMargin | ( | ) |
Definition at line 1388 of file NGFigure.cxx.
void NGFigure::SetMatrixStyle | ( | bool | domatrix = true | ) |
Definition at line 2180 of file NGFigure.cxx.
void NGFigure::SetMode | ( | const char * | main_mode_tag, |
const char * | sub_mode_tag = "UNKNOWN" , |
||
const char * | SubTitleY = "UNKNOWN" |
||
) |
The mode of the figure.
main_mode_tag | mode of the main pad, possible values are: SINGLE (single histogram), MULTI (multiple histograms), HSTACK (hstack histogram) and HIST2D (2D histogram). |
sub_mode_tag | (optional) mode of the sub pad, possible values are: RATIO , PULL , DELTA and PERCENTAGE (hstack only). |
SubTitleY | sub pad y-axis title. |
Definition at line 33 of file NGFigure.cxx.
void NGFigure::SetNormRange | ( | double | min, |
double | max | ||
) |
Definition at line 2113 of file NGFigure.cxx.
void NGFigure::SetNotNorm | ( | ) |
Definition at line 2228 of file NGFigure.cxx.
void NGFigure::SetShowChi2 | ( | bool | show = true | ) |
Definition at line 2196 of file NGFigure.cxx.
void NGFigure::SetStagger | ( | bool | dostagger = true | ) |
Definition at line 2066 of file NGFigure.cxx.
void NGFigure::SetStyleIndex | ( | int | index | ) |
Definition at line 2170 of file NGFigure.cxx.
void NGFigure::SetSubGridX | ( | bool | grid = true | ) |
Definition at line 2127 of file NGFigure.cxx.
void NGFigure::SetSubGridY | ( | bool | grid = true | ) |
Definition at line 2132 of file NGFigure.cxx.
void NGFigure::SetSubYRange | ( | double | min, |
double | max | ||
) |
Definition at line 2099 of file NGFigure.cxx.
void NGFigure::SetXBinName | ( | const char * | binname | ) |
Definition at line 2201 of file NGFigure.cxx.
void NGFigure::SetXRange | ( | double | min, |
double | max | ||
) |
Draw range of the xaxis.
Definition at line 46 of file NGFigure.cxx.
void NGFigure::SetYBinName | ( | const char * | binname | ) |
Definition at line 2207 of file NGFigure.cxx.
|
private |
Definition at line 24 of file NGFigure.h.
|
private |
Definition at line 30 of file NGFigure.h.
|
private |
Definition at line 31 of file NGFigure.h.
|
private |
Definition at line 109 of file NGFigure.h.
|
private |
Definition at line 164 of file NGFigure.h.
|
private |
Definition at line 27 of file NGFigure.h.
|
private |
Definition at line 190 of file NGFigure.h.
|
private |
Definition at line 188 of file NGFigure.h.
|
private |
Definition at line 25 of file NGFigure.h.
|
private |
Definition at line 186 of file NGFigure.h.
|
private |
Definition at line 181 of file NGFigure.h.
|
private |
Definition at line 26 of file NGFigure.h.
|
private |
Definition at line 80 of file NGFigure.h.
|
private |
Definition at line 90 of file NGFigure.h.
|
private |
Definition at line 91 of file NGFigure.h.
|
private |
Definition at line 73 of file NGFigure.h.
|
private |
Definition at line 37 of file NGFigure.h.
|
private |
Definition at line 86 of file NGFigure.h.
|
private |
Definition at line 84 of file NGFigure.h.
|
private |
Definition at line 85 of file NGFigure.h.
|
private |
Definition at line 83 of file NGFigure.h.
|
private |
Definition at line 82 of file NGFigure.h.
|
private |
Definition at line 81 of file NGFigure.h.
|
private |
Definition at line 43 of file NGFigure.h.
|
private |
Definition at line 21 of file NGFigure.h.
|
private |
Definition at line 99 of file NGFigure.h.
|
private |
Definition at line 101 of file NGFigure.h.
|
private |
Definition at line 96 of file NGFigure.h.
|
private |
Definition at line 97 of file NGFigure.h.
|
private |
Definition at line 196 of file NGFigure.h.
|
private |
Definition at line 59 of file NGFigure.h.
|
private |
Definition at line 151 of file NGFigure.h.
|
private |
Definition at line 58 of file NGFigure.h.
|
private |
Definition at line 20 of file NGFigure.h.
|
private |
Definition at line 74 of file NGFigure.h.
|
private |
Definition at line 57 of file NGFigure.h.
|
private |
Definition at line 32 of file NGFigure.h.
|
private |
Definition at line 33 of file NGFigure.h.
|
private |
Definition at line 129 of file NGFigure.h.
|
private |
Definition at line 155 of file NGFigure.h.
|
private |
Definition at line 65 of file NGFigure.h.
|
private |
Definition at line 56 of file NGFigure.h.
|
private |
Definition at line 52 of file NGFigure.h.
|
private |
Definition at line 131 of file NGFigure.h.
|
private |
Definition at line 157 of file NGFigure.h.
|
private |
Definition at line 135 of file NGFigure.h.
|
private |
Definition at line 60 of file NGFigure.h.
|
private |
Definition at line 107 of file NGFigure.h.
|
private |
Definition at line 162 of file NGFigure.h.
|
private |
Definition at line 68 of file NGFigure.h.
|
private |
Definition at line 144 of file NGFigure.h.
|
private |
Definition at line 143 of file NGFigure.h.
|
private |
Definition at line 142 of file NGFigure.h.
|
private |
Definition at line 75 of file NGFigure.h.
|
private |
Definition at line 79 of file NGFigure.h.
|
private |
Definition at line 78 of file NGFigure.h.
|
private |
Definition at line 72 of file NGFigure.h.
|
private |
Definition at line 42 of file NGFigure.h.
|
private |
Definition at line 40 of file NGFigure.h.
|
private |
Definition at line 38 of file NGFigure.h.
|
private |
Definition at line 48 of file NGFigure.h.
|
private |
Definition at line 47 of file NGFigure.h.
|
private |
Definition at line 46 of file NGFigure.h.
|
private |
Definition at line 93 of file NGFigure.h.
|
private |
Definition at line 22 of file NGFigure.h.
|
private |
Definition at line 61 of file NGFigure.h.
|
private |
Definition at line 53 of file NGFigure.h.
|
private |
Definition at line 132 of file NGFigure.h.
|
private |
Definition at line 158 of file NGFigure.h.
|
private |
Definition at line 136 of file NGFigure.h.
|
private |
Definition at line 62 of file NGFigure.h.
|
private |
Definition at line 54 of file NGFigure.h.
|
private |
Definition at line 133 of file NGFigure.h.
|
private |
Definition at line 159 of file NGFigure.h.
|
private |
Definition at line 137 of file NGFigure.h.
|
private |
Definition at line 71 of file NGFigure.h.
|
private |
Definition at line 149 of file NGFigure.h.
|
private |
Definition at line 192 of file NGFigure.h.
|
private |
Definition at line 34 of file NGFigure.h.
|
private |
Definition at line 35 of file NGFigure.h.
|
private |
Definition at line 139 of file NGFigure.h.
|
private |
Definition at line 178 of file NGFigure.h.
|
private |
Definition at line 140 of file NGFigure.h.
|
private |
Definition at line 179 of file NGFigure.h.
|
private |
Definition at line 63 of file NGFigure.h.
|
private |
Definition at line 146 of file NGFigure.h.
|
private |
Definition at line 104 of file NGFigure.h.
|
private |
Definition at line 76 of file NGFigure.h.
|
private |
Definition at line 28 of file NGFigure.h.
|
private |
Definition at line 29 of file NGFigure.h.
|
private |
Definition at line 106 of file NGFigure.h.
|
private |
Definition at line 161 of file NGFigure.h.
|
private |
Definition at line 18 of file NGFigure.h.
|
private |
Definition at line 44 of file NGFigure.h.
|
private |
Definition at line 183 of file NGFigure.h.
|
private |
Definition at line 184 of file NGFigure.h.
|
private |
Definition at line 185 of file NGFigure.h.
|
private |
Definition at line 182 of file NGFigure.h.
|
private |
Definition at line 66 of file NGFigure.h.
|
private |
Definition at line 98 of file NGFigure.h.
|
private |
Definition at line 100 of file NGFigure.h.
|
private |
Definition at line 150 of file NGFigure.h.
|
private |
Definition at line 41 of file NGFigure.h.
|
private |
Definition at line 39 of file NGFigure.h.
|
private |
Definition at line 50 of file NGFigure.h.
|
private |
Definition at line 49 of file NGFigure.h.
|
private |
Definition at line 94 of file NGFigure.h.
|
private |
Definition at line 23 of file NGFigure.h.
|
private |
Definition at line 108 of file NGFigure.h.
|
private |
Definition at line 163 of file NGFigure.h.
|
private |
Definition at line 89 of file NGFigure.h.
|
private |
Definition at line 88 of file NGFigure.h.
|
private |
Definition at line 195 of file NGFigure.h.
|
private |
Definition at line 103 of file NGFigure.h.
|
private |
Definition at line 112 of file NGFigure.h.
|
private |
Definition at line 167 of file NGFigure.h.
|
private |
Definition at line 111 of file NGFigure.h.
|
private |
Definition at line 166 of file NGFigure.h.
|
private |
Definition at line 114 of file NGFigure.h.
|
private |
Definition at line 169 of file NGFigure.h.
|
private |
Definition at line 128 of file NGFigure.h.
|
private |
Definition at line 115 of file NGFigure.h.
|
private |
Definition at line 170 of file NGFigure.h.
|
private |
Definition at line 113 of file NGFigure.h.
|
private |
Definition at line 168 of file NGFigure.h.
|
private |
Definition at line 154 of file NGFigure.h.
|
private |
Definition at line 118 of file NGFigure.h.
|
private |
Definition at line 173 of file NGFigure.h.
|
private |
Definition at line 117 of file NGFigure.h.
|
private |
Definition at line 172 of file NGFigure.h.
|
private |
Definition at line 120 of file NGFigure.h.
|
private |
Definition at line 175 of file NGFigure.h.
|
private |
Definition at line 127 of file NGFigure.h.
|
private |
Definition at line 121 of file NGFigure.h.
|
private |
Definition at line 176 of file NGFigure.h.
|
private |
Definition at line 119 of file NGFigure.h.
|
private |
Definition at line 174 of file NGFigure.h.
|
private |
Definition at line 153 of file NGFigure.h.
|
private |
Definition at line 124 of file NGFigure.h.
|
private |
Definition at line 125 of file NGFigure.h.
|
private |
Definition at line 123 of file NGFigure.h.