-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrootlogon.C
More file actions
36 lines (30 loc) · 943 Bytes
/
rootlogon.C
File metadata and controls
36 lines (30 loc) · 943 Bytes
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
// Author: Jan Musinsky
// 22/11/2016
{
if (TClassTable::GetDict("TVME") || TClassTable::GetDict("TVMEMonitor") ||
TClassTable::GetDict("TStrela")) {
Printf("Libraries was already loaded");
return;
}
if (gROOT->GetVersionInt() < 60000) { // ROOT5
gSystem->AddIncludePath("-Iinclude");
}
else { // ROOT6
gInterpreter->AddIncludePath("-Iinclude");
// or to same with
// R__ADD_INCLUDE_PATH(include);
}
gSystem->SetBuildDir("build", kTRUE);
gSystem->Load("libGpad.so");
gSystem->Load("libSQLIO.so");
gSystem->Load("libTree.so");
gSystem->Load("lib/libVME.so");
gSystem->Load("lib/libMonitor.so");
gSystem->Load("lib/libStrela.so");
// with explicitly linking the dependent libraries
// R__LOAD_LIBRARY(lib/libVME);
// R__LOAD_LIBRARY(lib/libMonitor);
// R__LOAD_LIBRARY(lib/libStrela);
gStyle->SetGridColor(kGray);
gStyle->SetPalette(55);
}