-
Notifications
You must be signed in to change notification settings - Fork 1
/
rootlogon.C
65 lines (51 loc) · 1.53 KB
/
rootlogon.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
// gSystem->Load("./libMuMCEvent.so");
// Style options
gROOT->ForceStyle();
gROOT->SetStyle("Plain");// Default white background for all plots
gStyle->SetPalette(1);
// The modes below are provided by Nick van Eijndhoven <[email protected]>
// from Alice.
gStyle->SetCanvasColor(10);
gStyle->SetStatColor(10);
gStyle->SetTitleFillColor(10);
gStyle->SetPadColor(10);
// Settings for statistics information
gStyle->SetOptFit(0);
// gStyle->SetOptStat(0);
// SetPaperSize wants width & height in cm: A4 is 20,26 & US is 20,24
gStyle->SetPaperSize(20,24);
// Positioning of axes labels
gStyle->SetTitleOffset(1.2);
// grid
gStyle->SetPadGridX(0);
gStyle->SetPadGridY(0);
// Set date/time for plot
gStyle->SetOptDate(0);
// To read and deal with TStarJetPicoDst's
Int_t ierr = 0;
const char *clibs[] = {
"libPhysics.so",
// "libRIO.so", // Unnecessary? Throws weird errors
"libHist.so",
"libEG.so",
"libTree.so",
"$STARPICOPATH/libTStarJetPico.so",
0
};
Int_t i = 0;
while ( clibs[i++] ) {
ierr = gSystem->Load(clibs[i-1]);
if ( ierr != 0) {
cerr << "Unable to load " << clibs[i-1] << endl;
}
}
TString STARPICOPATH=gSystem->Getenv("STARPICOPATH");
gSystem->AddIncludePath(" -I" + STARPICOPATH);
TString __ROOUNFOLD=gSystem->Getenv("ROOUNFOLD");
if (__ROOUNFOLD!=""){
gSystem->AddIncludePath(" -I" + __ROOUNFOLD + "/src");
gInterpreter->AddIncludePath(__ROOUNFOLD + "/src");
gSystem->Load("$ROOUNFOLD/libRooUnfold.so");
}
}