Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
130 f9daq 1
$BASE/.rootrc:
2
This file is for setting ROOT environment. See the following to properly use it:
3
https://root.cern.ch/root/html/TAttText.html
4
ftp://root.cern.ch/root/doc/ROOTUsersGuideHTML/ch02s07.html
5
https://root.cern.ch/root/roottalk/roottalk01/2867.html
6
 
7
Here is an example of a .rootrc file:
8
Gui.DefaultFont:        -*-helvetica-medium-r-normal-*-14-*-*-*-*-*-iso8859-1
9
Gui.MenuFont:           -*-helvetica-medium-r-normal-*-14-*-*-*-*-*-iso8859-1
10
Gui.MenuHiFont:         -*-helvetica-bold-r-normal-*-14-*-*-*-*-*-iso8859-1
11
Gui.DocFixedFont:       -*-courier-medium-r-normal-*-14-*-*-*-*-*-iso8859-1
12
Gui.DocPropFont:        -*-helvetica-medium-r-normal-*-14-*-*-*-*-*-iso8859-1
13
Gui.IconFont:           -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1
14
Gui.StatusFont:         -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1
15
Root.MemStat:           1
16
Root.ObjectStat:        1
17
 
18
If needed we can also add additional instructions in a C file and run it on each ROOT login:
19
Rint.Logon: /path/to/rootlogon.C
20
 
21
/---------------------------
22
/--- rootlogon.C -----------
23
/---------------------------
24
{
25
   TStyle *mystyle = new TStyle("mystyle", "My own ROOT style");
26
 
27
   mystyle->SetCanvasBorderMode(0);
28
   mystyle->SetFrameBorderMode(0);
29
   mystyle->SetPalette(1,0);
30
   mystyle->SetOptTitle(0);
31
   mystyle->SetCanvasColor(0);
32
 
33
   mystyle->SetStatFontSize(0.024);
34
   mystyle->SetStatBorderSize(1);
35
   mystyle->SetStatColor(kGray);
36
   mystyle->SetStatX(0.925);
37
   mystyle->SetStatY(0.925);
38
   mystyle->SetStatW(0.13);
39
 
40
   mystyle->SetTextFont(132);
41
   mystyle->SetTextSize(0.08);
42
 
43
   mystyle->SetLabelSize(0.03,"xyz");
44
   mystyle->SetLabelOffset(0.01,"xyz");
45
   mystyle->SetPadTickX(1);
46
   mystyle->SetPadTickY(1);
47
 
48
   mystyle->SetCanvasDefX(100);
49
   mystyle->SetCanvasDefY(50);
50
   mystyle->SetCanvasDefW(900);
51
   mystyle->SetCanvasDefH(600);
52
   mystyle->SetPadBottomMargin(0.1);
53
   mystyle->SetPadTopMargin(0.04);
54
   mystyle->SetPadLeftMargin(0.125);
55
   mystyle->SetPadRightMargin(0.04);
56
 
57
   gROOT->SetStyle("mystyle");
58
   cout << "Setting custom style from /path/to/.rootlogon.C" << endl;
59
   return;
60
}
61