| 1 | {
|
|---|
| 2 | printf("This is the rootlogon.C executed in: %s\n",
|
|---|
| 3 | gSystem->WorkingDirectory());
|
|---|
| 4 |
|
|---|
| 5 | // JEC Modified version of
|
|---|
| 6 | // Known as Pub style in ROOT::TStyle v4
|
|---|
| 7 | // Authors: Art Poskanzer and Jim Thomas, LBNL, Oct. 2000
|
|---|
| 8 | //
|
|---|
| 9 |
|
|---|
| 10 | //Size/Offset
|
|---|
| 11 | gStyle->SetPaperSize(20,26); // add this same as kA4 but not known here...
|
|---|
| 12 | gStyle->SetLabelSize(0.05,"XYZ");
|
|---|
| 13 | gStyle->SetLabelOffset(0.01,"Y");
|
|---|
| 14 | gStyle->SetTitleBorderSize(0.);
|
|---|
| 15 | gStyle->SetTitleSize(0.06,"XYZ");
|
|---|
| 16 | gStyle->SetTitleOffset(1.1,"Y");
|
|---|
| 17 | gStyle->SetTitleX(0.5);
|
|---|
| 18 | gStyle->SetTitleAlign(23);
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | gStyle->SetOptStat(0); //no stat
|
|---|
| 22 | gStyle->SetOptTitle(1); //modify 0->1
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | gStyle->SetPadBottomMargin(0.15);
|
|---|
| 26 | gStyle->SetPadLeftMargin(0.15);
|
|---|
| 27 |
|
|---|
| 28 | //Ticks
|
|---|
| 29 | gStyle->SetPadTickX(1);
|
|---|
| 30 | gStyle->SetPadTickY(1);
|
|---|
| 31 | gStyle->SetNdivisions(505,"xyz"); //add number of divisions
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | //Widthes
|
|---|
| 35 | gStyle->SetFrameLineWidth(2);
|
|---|
| 36 | gStyle->SetHistLineWidth(2);
|
|---|
| 37 | gStyle->SetLineWidth(2);
|
|---|
| 38 | gStyle->SetFuncWidth(2);
|
|---|
| 39 |
|
|---|
| 40 | //Fonts
|
|---|
| 41 | gStyle->SetLabelFont(132,"xyz"); //132: time-medium-r-normal
|
|---|
| 42 | gStyle->SetStatFont(132);
|
|---|
| 43 | gStyle->SetTitleFont(132,"xyz");
|
|---|
| 44 | gStyle->SetTextFont(132);
|
|---|
| 45 |
|
|---|
| 46 | //Border style
|
|---|
| 47 | gStyle->SetDrawBorder(0);
|
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 | //Color
|
|---|
| 51 | //gStyle->SetPalette(8,0);//the default palette is used with 9 colors
|
|---|
| 52 |
|
|---|
| 53 | gStyle->SetAxisColor(kBlack);
|
|---|
| 54 | gStyle->SetPadColor(kWhite);
|
|---|
| 55 | gStyle->SetCanvasColor(kWhite);
|
|---|
| 56 | gStyle->SetFrameFillColor(kWhite);
|
|---|
| 57 | gStyle->SetFrameLineColor(kBlack);
|
|---|
| 58 | gStyle->SetLineColor(kBlue);
|
|---|
| 59 | gStyle->SetFillColor(kYellow);
|
|---|
| 60 | gStyle->SetMarkerColor(kRed);
|
|---|
| 61 | gStyle->SetHistLineColor(kRed);
|
|---|
| 62 | gStyle->SetLabelColor(kBlack,"XYZ");
|
|---|
| 63 | gStyle->SetTitleFillColor(kWhite);
|
|---|
| 64 | gStyle->SetTitleTextColor(kBlue);
|
|---|
| 65 | gStyle->SetFuncColor(kGreen);
|
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 | //force to use this style
|
|---|
| 70 | gROOT->ForceStyle();
|
|---|
| 71 |
|
|---|
| 72 | }//This mandatory
|
|---|