-
Notifications
You must be signed in to change notification settings - Fork 0
/
rootlogon.C
executable file
·58 lines (49 loc) · 2.41 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
//////////////////////////////////////////////////////////////////////////
//
// rootlogon.C
//
// Load Lib, paths and possible scripts to the analyzer upon start
//
//////////////////////////////////////////////////////////////////////////
//
// Author : Jin Huang <mailto:[email protected]> Mar 2008
// Chao Gu Update for g2p use Mar 2012
// Kalyan Allada Update for GMp expt. Dec 2013
// Florian Hauenstein Update for Tritum expt. Feb 2017
//
//////////////////////////////////////////////////////////////////////////
{
TString Arch(gSystem->GetBuildArch());
TString Arch32("linux");
TString Arch64("linuxx8664gcc");
if(Arch==Arch32){
printf("\nrootlogon.C: Loading Replay Core Library...");
// gSystem->Load("/adaqfs/home/a-onl/tritium/replay/old/ReplayCore_C.so");
gSystem->Load("libraries/Fpp/libFpp.so");
}
else if(Arch==Arch64){
printf("\nrootlogon.C: Loading Replay Core Library...");
gSystem->Load("ReplayCore64_C.so");
gSystem->Load("libraries/Fpp64/libFpp.so");
gSystem->Load("libraries/GmpNormAna/libGmpNormAna.so");
gSystem->Load("libraries/lukebeam/libBeam.so");
gSystem->Load("libraries/Gmp_Rastered_Beam/libGmp_Rastered_Beam.so");
gSystem->Load("libraries/GmpShower/libGmpShower.so");
gSystem->Load("libraries/Gmp_Beam_Eloss/libGmp_Beam_Eloss.so");
gSystem->Load("libraries/Gmp_Track_Eloss/libGmp_Track_Eloss.so");
gSystem->Load("libraries/Gmp_HRS/libGmp_HRS.so");
gSystem->Load("libraries/Gmp_Xscin/libGmp_Xscin.so");
}
//Load more libs here, if necessary.
//Make sure it's in path of $LD_LIBRARY_PATH
printf("\nrootlogon.C: Adding include directories...");
gSystem->AddIncludePath("-I$ANALYZER");
gInterpreter->AddIncludePath("$ANALYZER/");
gSystem->AddIncludePath("-I$ANALYZER/src");
gInterpreter->AddIncludePath("$ANALYZER/src/");
gSystem->AddIncludePath("-I$ANALYZER/hana_decode");
gInterpreter->AddIncludePath("$ANALYZER/hana_decode/");
gSystem->AddIncludePath("-I$ANALYZER/hana_scaler");
gInterpreter->AddIncludePath("$ANALYZER/hana_scaler/");
printf("\nrootlogon.C: Done!\n\n");
}