3 TRint* rint =
dynamic_cast<TRint*
>(gApplication);
6 rint->SetPrompt(
"RootWC: For all your WCSim needs [%d] ");
14 TStyle *t2kStyle=
new TStyle(
"T2K",
"T2K approved plots style");
17 t2kStyle->SetFrameBorderMode(0);
18 t2kStyle->SetCanvasBorderMode(0);
19 t2kStyle->SetPadBorderMode(0);
20 t2kStyle->SetPadColor(0);
21 t2kStyle->SetCanvasColor(0);
22 t2kStyle->SetStatColor(0);
24 t2kStyle->SetLegendBorderSize(1);
27 t2kStyle->SetPaperSize(20,26);
28 t2kStyle->SetPadTopMargin(0.05);
29 t2kStyle->SetPadRightMargin(0.05);
30 t2kStyle->SetPadBottomMargin(0.16);
31 t2kStyle->SetPadLeftMargin(0.13);
34 t2kStyle->SetTextFont(132);
35 t2kStyle->SetTextSize(0.08);
36 t2kStyle->SetLabelFont(132,
"x");
37 t2kStyle->SetLabelFont(132,
"y");
38 t2kStyle->SetLabelFont(132,
"z");
39 t2kStyle->SetLabelSize(0.05,
"x");
40 t2kStyle->SetTitleSize(0.06,
"x");
41 t2kStyle->SetLabelSize(0.05,
"y");
42 t2kStyle->SetTitleSize(0.06,
"y");
43 t2kStyle->SetLabelSize(0.05,
"z");
44 t2kStyle->SetTitleSize(0.06,
"z");
45 t2kStyle->SetLabelFont(132,
"t");
46 t2kStyle->SetTitleFont(132,
"x");
47 t2kStyle->SetTitleFont(132,
"y");
48 t2kStyle->SetTitleFont(132,
"z");
49 t2kStyle->SetTitleFont(132,
"t");
50 t2kStyle->SetTitleFillColor(0);
51 t2kStyle->SetTitleX(0.25);
52 t2kStyle->SetTitleFontSize(0.08);
53 t2kStyle->SetTitleFont(132,
"pad");
56 t2kStyle->SetMarkerStyle(20);
57 t2kStyle->SetHistLineWidth(2);
58 t2kStyle->SetLineStyleString(2,
"[12 12]");
61 t2kStyle->SetErrorX(0.001);
64 t2kStyle->SetOptTitle(0);
65 t2kStyle->SetOptStat(0);
66 t2kStyle->SetOptFit(0);
69 t2kStyle->SetPadTickX(1);
70 t2kStyle->SetPadTickY(1);
73 t2kStyle->SetOptFit(1);
74 t2kStyle->SetOptStat(1100);
97 t2kStyle->SetPalette(1,0);
98 const Int_t NRGBs = 5;
99 const Int_t NCont = 255;
101 Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
102 Double_t
red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 };
103 Double_t
green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 };
104 Double_t
blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 };
105 TColor::CreateGradientColorTable(NRGBs, stops,
red,
green,
blue, NCont);
106 t2kStyle->SetNumberContours(NCont);
112 TString script_dir = gSystem->Getenv(
"WCSIM_BUILD_DIR");
113 script_dir +=
"/bin/rootwc/";
115 TString curr_dir = gSystem->pwd();
117 gSystem->cd(script_dir.Data());
119 gROOT->ProcessLine(
".x $WCSIM_BUILD_DIR/bin/rootwc-files/loadincs.C");
120 gROOT->ProcessLine(
".x $WCSIM_BUILD_DIR/bin/rootwc-files/loadlibs.C");
122 gSystem->cd(curr_dir.Data());
127 gROOT->SetStyle(
"T2K");
G4Colour blue(0.0, 0.0, 1.0)
G4Colour green(0.0, 1.0, 0.0)
G4Colour red(1.0, 0.0, 0.0)