1 #ifndef __JROOT__JSTYLE__
2 #define __JROOT__JSTYLE__
15 namespace JPP {
using namespace JROOT; }
79 template<
class JParameters_t>
108 const Double_t font_size = (Double_t)
y * 0.7e-4 * parameters.fontSize;
109 const Double_t title_offset = 1.5 * parameters.titleOffset;
110 const Double_t tick_length = 3.0e-5 * parameters.tickLength;
112 SetPadTopMargin (parameters.topMargin);
113 SetPadBottomMargin(parameters.bottomMargin);
114 SetPadLeftMargin (parameters.leftMargin);
115 SetPadRightMargin (parameters.rightMargin);
118 SetCanvasBorderMode(0);
119 SetCanvasBorderSize(0);
125 for (
const auto option : {
"X",
"Y",
"Z"}) {
126 SetTickLength (tick_length * (
x <
y ?
x :
y), option);
127 SetLabelSize (font_size, option);
128 SetTitleOffset(title_offset, option);
129 SetTitleSize (font_size, option);
136 SetStatBorderSize(1);
137 SetStatFontSize(font_size);
141 SetPaintTextFormat(
"3.0f");
144 SetTitleFillColor(0);
147 SetTitleBorderSize(0);
158 for (
const auto option : {
"X",
"Y",
"Z"}) {
159 SetLabelSize(GetLabelSize(option) * factor, option);
160 SetTitleSize(GetTitleSize(option) * factor, option);
Utility class to parse parameter values.
#define gmake_property(A)
macros to convert (template) parameter to JPropertiesElement object
Utility class to parse parameter values.
Auxiliary class for I/O of parameters.
JParametersHelper(JParameters_t &object)
Constructor.
Wrapper class around ROOT TStyle.
void setFontSize(const Double_t factor)
Scale font sizes.
JStyle(const char *title, const UInt_t x, const UInt_t y, const JParameters ¶meters=JParameters())
Constructor.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for ROOT I/O.
JProperties getProperties()
Get properties of this class.
JParameters()
Default constructor.
JProperties getProperties() const
Get properties of this class.