12#include <TMultiGraph.h>
61 GwollumPlot(
const string aName,
const string aStyleName=
"GWOLLUM");
81 void AddText(
const string aText,
82 const double aX,
const double aY,
const double aSize,
83 const int aPadIndex=0);
98 void AddLegendEntry(
const TObject *aObj,
const string aLabel,
const string aStyle=
"LPF");
121 Wpad->SetPad(0,0,1,1);
132 inline void Draw(TObject *aObj,
const string aOptions=
"",
const int aPadIndex=0){
134 aObj->Draw(aOptions.c_str());
144 inline void UnDraw(TObject *aObj,
const int aPadIndex=0){
146 gPad->GetListOfPrimitives()->Remove(aObj);
155 inline void Clear(
const int aPadIndex=0){
166 inline void Print(
const string aFileName){
168 Wcan->Print(aFileName.c_str());
179 void Print(
const string aFileName,
const double aScaleFactor);
188 void Print(
const string aFileName,
189 const unsigned int aNewWidth,
const unsigned int aNewHeight);
200 inline void SetLogx(
const int aValue,
const int aPadIndex=0){
202 gPad->SetLogx(aValue);
216 inline void SetLogy(
const int aValue,
const int aPadIndex=0){
218 gPad->SetLogy(aValue);
232 inline void SetLogz(
const int aValue,
const int aPadIndex=0){
234 gPad->SetLogz(aValue);
244 inline void SetGridx(
const int aValue=1,
const int aPadIndex=0){
246 gPad->SetGridx(aValue);
256 inline void SetGridy(
const int aValue=1,
const int aPadIndex=0){
258 gPad->SetGridy(aValue);
268 inline void RedrawAxis(Option_t* option=
"",
int aPadIndex=0){
270 gPad->RedrawAxis(option);
283 inline void ResizePlot(
const unsigned int aWidth,
const unsigned int aHeight){
284 Wcan->SetWindowSize(aWidth + (aWidth-
Wcan->GetWw()), aHeight + (aHeight -
Wcan->GetWh()));
285 Wcan->SetCanvasSize(aWidth,aHeight);
310 inline void DivideCanvas(
const unsigned int aNx,
const unsigned int aNy){
Wpad->Divide((
int)aNx, (
int)aNy); };
320 inline unsigned int GetColorPalette(
const unsigned int i){
return (
unsigned int)gStyle->GetColorPalette((
int)i); };
325 inline unsigned int GetNumberOfColors(
void){
return (
unsigned int)gStyle->GetNumberOfColors(); };
Interface to draw and print ROOT objects.
Definition GwollumPlot.h:39
TPad * Wpad
Working pad.
Definition GwollumPlot.h:338
void SetLogz(const int aValue, const int aPadIndex=0)
Set Lin/Log scale for Z.
Definition GwollumPlot.h:232
Monitor * mon
Class monitor.
Definition GwollumPlot.h:346
string name
Name.
Definition GwollumPlot.h:331
int randid
Random integer id.
Definition GwollumPlot.h:329
void SetStandardStyle(void)
Sets STANDARD style.
Definition GwollumPlot.cc:285
void ResizePlot(const unsigned int aWidth, const unsigned int aHeight)
Resizes the global canvas to new dimensions.
Definition GwollumPlot.h:283
TLegend * Wleg
Plot legends.
Definition GwollumPlot.h:341
void Draw(TObject *aObj, const string aOptions="", const int aPadIndex=0)
Draws ROOT object.
Definition GwollumPlot.h:132
void SetLogy(const int aValue, const int aPadIndex=0)
Set Lin/Log scale for Y.
Definition GwollumPlot.h:216
void SetGridx(const int aValue=1, const int aPadIndex=0)
Set/Unset grid for X.
Definition GwollumPlot.h:244
void DrawLegend(void)
Draws current legend box.
Definition GwollumPlot.cc:107
TText * Wtext
Additional text.
Definition GwollumPlot.h:342
int GetWidth(void)
Returns the canvas width.
Definition GwollumPlot.h:292
void DivideCanvas(const unsigned int aNx, const unsigned int aNy)
Divides current canvas into sub-pads.
Definition GwollumPlot.h:310
unsigned int GetNumberOfColors(void)
Returns the number of colors in current palette.
Definition GwollumPlot.h:325
void SetGridy(const int aValue=1, const int aPadIndex=0)
Set/Unset grid for Y.
Definition GwollumPlot.h:256
int GetHeight(void)
Returns the canvas height.
Definition GwollumPlot.h:297
void AddLegendHeader(const string aLabel)
Adds a legend header.
Definition GwollumPlot.cc:98
void SetFireStyle(void)
Sets FIRE style.
Definition GwollumPlot.cc:241
void RedrawAxis(Option_t *option="", int aPadIndex=0)
Redraw the frame axis.
Definition GwollumPlot.h:268
void UnDraw(TObject *aObj, const int aPadIndex=0)
UnDraws a ROOT object.
Definition GwollumPlot.h:144
void Clear(const int aPadIndex=0)
Clear pad.
Definition GwollumPlot.h:155
virtual ~GwollumPlot(void)
Destructor of the GwollumPlot class.
Definition GwollumPlot.cc:56
void SetOxStyle(void)
Sets OX style.
Definition GwollumPlot.cc:328
GwollumPlot(const string aName, const string aStyleName="GWOLLUM")
Constructor of the GwollumPlot class.
void SetPinkStyle(void)
Sets PINK style.
Definition GwollumPlot.cc:197
void AddLegendEntry(const TObject *aObj, const string aLabel, const string aStyle="LPF")
Adds a legend entry.
Definition GwollumPlot.cc:89
string stylename
Style name.
Definition GwollumPlot.h:334
string GetCurrentStyle(void)
Returns current style name.
Definition GwollumPlot.h:315
void ResetLegend(void)
Resets and removes current legend box.
Definition GwollumPlot.h:119
void UnDrawLegend(void)
Removes the legend box from the pad.
Definition GwollumPlot.cc:117
void AddText(const string aText, const double aX, const double aY, const double aSize, const int aPadIndex=0)
Adds text in the plot.
Definition GwollumPlot.cc:66
TCanvas * Wcan
Working canvas.
Definition GwollumPlot.h:337
void DivideCanvas(const unsigned int aNpads)
Divides current canvas into sub-pads.
Definition GwollumPlot.h:303
string srandid
Random string id.
Definition GwollumPlot.h:330
void UpdateText(const string aText)
Updates text in the plot.
Definition GwollumPlot.cc:80
unsigned int GetColorPalette(const unsigned int i)
Returns color number i in current palette.
Definition GwollumPlot.h:320
void SetLogx(const int aValue, const int aPadIndex=0)
Set Lin/Log scale for X.
Definition GwollumPlot.h:200
void Print(const string aFileName)
Prints current canvas in a file.
Definition GwollumPlot.h:166
void SetGwollumStyle(void)
Sets GWOLLUM style.
Definition GwollumPlot.cc:153
Monitor a GWOLLUM processing.
Definition Monitor.h:39