17 m_garfieldStyle(
"Garfield",
"Garfield Style") {}
22 m_garfieldStyle.Reset();
23 m_garfieldStyle.SetFillColor(1);
24 m_garfieldStyle.SetFillStyle(1001);
25 m_garfieldStyle.SetCanvasBorderMode(0);
26 m_garfieldStyle.SetCanvasColor(0);
27 m_garfieldStyle.SetCanvasDefH(600);
28 m_garfieldStyle.SetCanvasDefW(600);
29 m_garfieldStyle.SetPadBorderMode(0);
30 m_garfieldStyle.SetPadColor(0);
31 m_garfieldStyle.SetPadLeftMargin(0.15);
32 m_garfieldStyle.SetPadBottomMargin(0.1);
33 m_garfieldStyle.SetPadRightMargin(0.05);
34 m_garfieldStyle.SetPadTopMargin(0.05);
35 m_garfieldStyle.SetPadTickX(1);
36 m_garfieldStyle.SetPadTickY(1);
37 m_garfieldStyle.SetFrameFillColor(0);
38 m_garfieldStyle.SetFrameBorderMode(0);
39 m_garfieldStyle.SetDrawBorder(0);
40 m_garfieldStyle.SetLegendBorderSize(0);
42 m_garfieldStyle.SetGridColor(kGray);
43 m_garfieldStyle.SetGridStyle(3);
44 m_garfieldStyle.SetGridWidth(1);
45 m_garfieldStyle.SetPadGridX(kTRUE);
46 m_garfieldStyle.SetPadGridY(kTRUE);
48 const int font =
m_serif ? 132 : 42;
49 const double tsize = 0.04;
50 m_garfieldStyle.SetTextFont(font);
51 m_garfieldStyle.SetTextSize(tsize);
52 m_garfieldStyle.SetTitleStyle(0);
53 m_garfieldStyle.SetTitleBorderSize(0);
54 m_garfieldStyle.SetTitleColor(1,
"xyz");
55 m_garfieldStyle.SetTitleColor(1,
"t");
56 m_garfieldStyle.SetTitleFillColor(0);
57 m_garfieldStyle.SetTitleFont(font,
"xyz");
58 m_garfieldStyle.SetTitleFont(font,
"t");
59 m_garfieldStyle.SetTitleOffset(1.2,
"x");
60 m_garfieldStyle.SetTitleOffset(0,
"y");
61 m_garfieldStyle.SetTitleSize(tsize,
"xyz");
62 m_garfieldStyle.SetTitleSize(tsize,
"t");
64 m_garfieldStyle.SetLegendFont(font);
65 m_garfieldStyle.SetStatStyle(0);
66 m_garfieldStyle.SetStatBorderSize(0);
67 m_garfieldStyle.SetStatColor(0);
68 m_garfieldStyle.SetStatFont(font);
69 m_garfieldStyle.SetStatFontSize(tsize);
70 m_garfieldStyle.SetStatX(0.88);
71 m_garfieldStyle.SetStatY(0.88);
72 m_garfieldStyle.SetStatW(0.25);
73 m_garfieldStyle.SetStatH(0.1);
74 m_garfieldStyle.SetOptStat(111110);
75 m_garfieldStyle.SetStatFormat(
"6.3g");
76 m_garfieldStyle.SetLabelFont(font,
"xyz");
77 m_garfieldStyle.SetLabelSize(tsize,
"xyz");
78 m_garfieldStyle.SetLabelOffset(0.01,
"xyz");
79 m_garfieldStyle.SetOptTitle(0);
80 m_garfieldStyle.SetPaperSize(TStyle::kA4);
81 m_garfieldStyle.SetFuncWidth(2);
82 m_garfieldStyle.SetHistLineColor(kOrange - 3);
84 m_garfieldStyle.SetAxisColor(kBlack,
"X");
85 m_garfieldStyle.SetAxisColor(kBlack,
"Y");
86 m_garfieldStyle.SetAxisColor(kBlack,
"Z");
87 m_garfieldStyle.SetNdivisions(505,
"x");
88 m_garfieldStyle.SetNdivisions(510,
"y");
89 m_garfieldStyle.SetMarkerStyle(20);
90 m_garfieldStyle.SetMarkerSize(1.2);
92 m_garfieldStyle.SetLineWidth(lw);
93 m_garfieldStyle.SetLineStyleString(2,
"[12 12]");
94 m_garfieldStyle.SetFrameLineWidth(lw);
95 m_garfieldStyle.SetHistLineWidth(lw);
96 m_garfieldStyle.SetFuncWidth(lw);
97 m_garfieldStyle.SetGridWidth(lw);
168 for (
unsigned int i = 0; i < color.length(); ++i) {
169 color[i] = toupper(color[i]);
172 if (color ==
"BLACK") {
176 if (color ==
"RED") {
179 }
else if (color ==
"GREEN") {
180 rootcol = kGreen + 2;
182 }
else if (color ==
"BLUE") {
185 }
else if (color ==
"DARK-RED") {
188 }
else if (color ==
"DARK-GREEN") {
189 rootcol = kGreen + 3;
191 }
else if (color ==
"DARK-BLUE") {
194 }
else if (color ==
"ORANGE") {
195 rootcol = kOrange - 3;
197 }
else if (color ==
"PURPLE") {
198 rootcol = kViolet - 7;
200 }
else if (color ==
"CYAN") {
203 }
else if (color ==
"OLIVE") {
204 rootcol = kSpring + 4;
209 std::cerr <<
" Unknown color (" << color <<
").\n";
Definition of styles and color schemes.
int GetRootColorChargedParticle()
virtual ~PlottingEngineRoot()
Destructor.
int GetRootColorElectron()
bool GetRootColor(std::string color, int &rootcol)
PlottingEngineRoot()
Constructor.
void SetDefaultStyle()
Apply the default Garfield ROOT style.
Abstract base class for plotting engines.
std::string m_colorChargedParticle
std::string m_colorPhoton
std::string m_colorElectron
PlottingEngineRoot plottingEngine