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;
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);
JParameters()
Default constructor.
#define gmake_property(A)
macros to convert (template) parameter to JPropertiesElement object
Utility class to parse parameter values.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Utility class to parse parameter values.
Auxiliary class for I/O of parameters.
JParametersHelper(JParameters_t &object)
Constructor.
JStyle(const char *title, const UInt_t x, const UInt_t y, const JParameters ¶meters=JParameters())
Constructor.
JProperties getProperties() const
Get properties of this class.
void setFontSize(const Double_t factor)
Scale font sizes.
JProperties getProperties()
Get properties of this class.
Wrapper class around ROOT TStyle.