L3 becomes HLT
[u/mrichter/AliRoot.git] / HLT / exa / rootlogon-old.C
CommitLineData
a2c1c731 1// $Id$
2
3{
4 printf("\nWELCOME to the magic world of HLT\n\n");
5
6 gSystem->Load("$(ROOTSYS)/lib/libPhysics");
7 gSystem->Load("$(ROOTSYS)/lib/libEG");
8
9 Int_t saveErrIgLevel=gErrorIgnoreLevel;
10 gErrorIgnoreLevel=kFatal; //dont report errors
11 if(gSystem->Load("$(ROOTSYS)/lib/libMC")==-1){
12 gSystem->Load("$(ROOTSYS)/lib/libGeom");
13 gSystem->Load("$(ROOTSYS)/lib/libVMC");
14 }
15 gErrorIgnoreLevel=saveErrIgLevel;
16
17 if(0)
18 {
19 if(getenv("ALICE_TARGET")) {
20 gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libSTEER");
21 gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libCONTAINERS");
22 gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTPC");
23 } else {
24 gSystem->Load("$(ALICE_ROOT)/lib/libSTEER");
25 gSystem->Load("$(ALICE_ROOT)/lib/libCONTAINERS");
26 gSystem->Load("$(ALICE_ROOT)/lib/libTPC");
27 }
28 cout<<"TPC libraries loaded"<<endl;
29 }
30
31 if(1)
32 {
33 if(getenv("ALIHLT_MLUCDIR")) {
34 if(strcmp("false",getenv("ALIHLT_NOLOGGING"))==0) gSystem->Load("$(ALIHLT_MLUCDIR/lib/libMLUC");
4aa41877 35 gSystem->Load("$(ALIHLT_LIBDIR)/libAliHLTSrc");
36 gSystem->Load("$(ALIHLT_LIBDIR)/libAliHLTMisc");
37 gSystem->Load("$(ALIHLT_LIBDIR)/libAliHLTHough");
38 gSystem->Load("$(ALIHLT_LIBDIR)/libAliHLTComp");
a2c1c731 39 } else {
40 if(strcmp("false",getenv("ALIHLT_NOLOGGING"))==0) gSystem->Load("$(ALIHLT_BASEDIR)/kip/MLUC/lib/linux-i386/libMLUC.so");
4aa41877 41 gSystem->Load("$(ALIHLT_BASEDIR)/lib_$(USER)/libAliHLTSrc");
42 gSystem->Load("$(ALIHLT_BASEDIR)/lib_$(USER)/libAliHLTMisc");
43 gSystem->Load("$(ALIHLT_BASEDIR)/lib_$(USER)/libAliHLTHough");
44 gSystem->Load("$(ALIHLT_BASEDIR)/lib_$(USER)/libAliHLTComp");
a2c1c731 45 }
46 cout<<"HLT libraries loaded"<<endl;
47
48 if(strcmp("false",getenv("ALIHLT_NOLOGGING"))==0){
4aa41877 49 AliHLTLogger gLogger;
a2c1c731 50 gLogger.UseStream();
51 }
52
53 if(getenv("ALIHLT_TRANSFORMFILE")){
54 cout << "Loading config \"" << getenv("ALIHLT_TRANSFORMFILE") << "\": " << flush;
4aa41877 55 if(AliHLTTransform::Init(getenv("ALIHLT_TRANSFORMFILE")))
a2c1c731 56 cout << "Ok!" << endl;
57 else cout << "Failed!" << endl;
58 }
59
60 Int_t saveErrIgLevel=gErrorIgnoreLevel;
61 gErrorIgnoreLevel=kFatal; //dont report errors
62 gSystem->Load("MakePileup_C.so");
63 gSystem->Load("Read_C.so");
64 gSystem->Load("runhough_C.so");
65 gSystem->Load("runrowhough_C.so");
66 gSystem->Load("deconvclusters_C.so");
67 gSystem->Load("runtracker_C.so");
68 gErrorIgnoreLevel=saveErrIgLevel;
69
70 if(strcmp("true",getenv("ALIHLT_DOMC"))==0) gSystem->SetIncludePath(" -Ddo_mc");
71 gSystem->SetIncludePath(" -I$ALIHLT_TOPDIR/hough -I$ALIHLT_TOPDIR/src -I$ALIHLT_TOPDIR/comp -I$ALIHLT_TOPDIR/misc -I$ALICE_ROOT/include/ -I$ALICE_ROOT/TPC -I$ALICE_ROOT/CONTAINERS -I$ALICE_ROOT/STEER ");
72 }
73
74 gStyle->SetStatColor(10);
75 gStyle->SetStatBorderSize(1);
76 gStyle->SetTitleBorderSize(0);
77 gStyle->SetPadColor(10);
78 gStyle->SetPadBorderSize(0);
79 gStyle->SetPadBorderMode(0);
80 gStyle->SetCanvasBorderMode(0);
81 gStyle->SetCanvasBorderSize(0);
82 gStyle->SetCanvasColor(10);
83 gStyle->SetTitleSize(0.036,"X");
84 gStyle->SetTitleSize(0.036,"Y");
85 gStyle->SetTitleSize(0.036,"Z");
86 gStyle->SetLabelSize(0.036,"X");
87 gStyle->SetLabelSize(0.036,"Y");
88 gStyle->SetLabelSize(0.036,"Z");
89 gStyle->SetTitleOffset(1.2,"X");
90 gStyle->SetTitleOffset(1.3,"Y");
91 gStyle->SetTitleOffset(1.3,"Z");
92 gStyle->SetTitleColor(10);
93}