NAGASH 0.9.8
Next Generation Analysis System
|
Class for plotting variaous types of figures. More...
#include "NAGASH/FigureTool.h"
Public Member Functions | |
FigureTool (std::shared_ptr< MSGTool > MSG) | |
Constructor for FigureTool. | |
FigureTool (std::shared_ptr< MSGTool > MSG, std::shared_ptr< FigureStyleHelper > shelper) | |
Constructor for FigureTool. | |
std::shared_ptr< FigureCanvas > | BookATLASRectangular (const TString &figurename) |
Book a new FigureCanvas as a new figure. The size is 800*600 as recommended by ATLAS. | |
std::shared_ptr< FigureCanvas > | BookATLASSquare (const TString &figurename) |
Book a new FigureCanvas as a new figure. The size is 600*600 as recommended by ATLAS. | |
std::shared_ptr< FigureCanvas > | BookFigure (const TString &figurename, int size_x, int size_y) |
Book a new FigureCanvas as a new figure. | |
void | DrawFigures () |
Draw all the figures booked in this tool. | |
std::shared_ptr< FigureStyleHelper > | GetFigureStyleHelper () |
Return the style helper of this tool. | |
void | SetFigureDirectory (const TString &dirname) |
Set the output directory of the figures produced by this tool. | |
Private Attributes | |
std::map< TString, std::shared_ptr< FigureCanvas > > | BookedFigure |
TString | figuredir = "." |
std::shared_ptr< FigureStyleHelper > | stylehelper |
Additional Inherited Members | |
![]() | |
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 |
Class for plotting variaous types of figures.
See the following example:
Definition at line 511 of file FigureTool.h.
FigureTool::FigureTool | ( | std::shared_ptr< MSGTool > | MSG | ) |
Constructor for FigureTool.
MSG | input MSGTool. |
Definition at line 2380 of file FigureTool.cxx.
FigureTool::FigureTool | ( | std::shared_ptr< MSGTool > | MSG, |
std::shared_ptr< FigureStyleHelper > | shelper | ||
) |
Constructor for FigureTool.
MSG | input MSGTool. |
shelper | user-defined FigureStyleHelper. |
Definition at line 2388 of file FigureTool.cxx.
std::shared_ptr< FigureCanvas > FigureTool::BookATLASRectangular | ( | const TString & | figurename | ) |
Book a new FigureCanvas as a new figure. The size is 800*600 as recommended by ATLAS.
figurename | name of the new figure. |
Definition at line 2416 of file FigureTool.cxx.
std::shared_ptr< FigureCanvas > FigureTool::BookATLASSquare | ( | const TString & | figurename | ) |
Book a new FigureCanvas as a new figure. The size is 600*600 as recommended by ATLAS.
figurename | name of the new figure. |
Definition at line 2408 of file FigureTool.cxx.
std::shared_ptr< FigureCanvas > FigureTool::BookFigure | ( | const TString & | figurename, |
int | size_x, | ||
int | size_y | ||
) |
Book a new FigureCanvas as a new figure.
figurename | name of the new figure. |
size_x | x-size of the new canvas. |
size_y | y-size of the new canvas. |
Definition at line 2398 of file FigureTool.cxx.
void FigureTool::DrawFigures | ( | ) |
Draw all the figures booked in this tool.
Definition at line 2422 of file FigureTool.cxx.
|
inline |
Return the style helper of this tool.
Definition at line 531 of file FigureTool.h.
|
inline |
Set the output directory of the figures produced by this tool.
Definition at line 530 of file FigureTool.h.
|
private |
Definition at line 526 of file FigureTool.h.
|
private |
Definition at line 527 of file FigureTool.h.
|
private |
Definition at line 525 of file FigureTool.h.