]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MFT/rootlogon.C
fix bugs add new features
[u/mrichter/AliRoot.git] / MFT / rootlogon.C
1 {
2
3   TString includePath = "-I${ROOTSYS}/include ";
4   
5   printf("\nLoading ALICE settings...\n\n");
6   includePath        += "-I${ALICE_ROOT}/STEER ";
7   includePath        += "-I${ALICE_ROOT}/STEER/STEERBase ";
8   includePath        += "-I${ALICE_BUILD}/include ";
9   includePath        += "-I${ALICE_ROOT}/RAW ";
10   includePath        += "-I${ALICE_ROOT}/FASTSIM ";
11   includePath        += "-I${ALICE_ROOT}/EVGEN ";
12   includePath        += "-I${ALICE_ROOT}/SHUTTLE/TestShuttle ";
13   includePath        += "-I${ALICE_ROOT}/ITS ";
14   includePath        += "-I${ALICE_ROOT}/MFT ";
15   includePath        += "-I${ALICE_ROOT}/MUON ";
16   includePath        += "-I${ALICE_ROOT}/MUON/mapping ";
17   includePath        += "-I${ALICE_ROOT}/RAW ";
18   includePath        += "-I${ALICE_ROOT}/CORRFW ";
19   includePath        += "-I${ROOTSYS}/net/alien/inc ";
20
21   gSystem->SetIncludePath(includePath.Data());
22
23   gSystem->Load("libCore.so"); 
24   gSystem->Load("libTree.so");
25   gSystem->Load("libGeom.so");
26   gSystem->Load("libVMC.so");
27   gSystem->Load("libPhysics.so");
28   gSystem->Load("libSTEERBase");
29   gSystem->Load("libESD");
30   gSystem->Load("libAOD");
31   gSystem->Load("libANALYSIS") ;
32   gSystem->Load("libANALYSISalice") ;
33   gSystem->Load("libCORRFW") ;
34   gSystem->Load("libMFTbase") ;
35   gSystem->Load("libMFTsim") ;
36   gSystem->Load("libMFTrec") ;
37   
38   //================= define the style =================== //
39   
40   // divisions: axis marks outside the figure (minus sign)
41   gStyle->SetTickLength(-0.03,"X");  gStyle->SetTickLength(-0.03,"Y"); 
42   gStyle->SetNdivisions(508,"X");    gStyle->SetNdivisions(506,"Y"); // set ndvx (y)
43   
44   // dimensions and position of fonts connected to axes  
45   gStyle->SetLabelSize(0.05,"X");    gStyle->SetLabelSize(0.05,"Y");  
46   gStyle->SetLabelOffset(0.02,"X");  gStyle->SetLabelOffset(0.04,"Y");  
47   
48   // dimension of the canvas and of the figure (pad) inside it
49   gStyle->SetCanvasDefW(600);        gStyle->SetCanvasDefH(600);
50   gStyle->SetPadBottomMargin(0.16);  gStyle->SetPadLeftMargin(0.18);    
51   gStyle->SetPadTopMargin(0.08);     gStyle->SetPadRightMargin(0.06);    
52   gStyle->SetTitleXSize(0.05);       gStyle->SetTitleYSize(0.05);
53   gStyle->SetTitleXOffset(1.5);      gStyle->SetTitleYOffset(1.9);
54   gStyle->SetStatW(0.16);            gStyle->SetStatH(0.16);
55   gStyle->SetFitFormat("9.6g"); 
56   gStyle->SetCanvasColor(0);
57   gStyle->SetCanvasBorderMode(0);
58   gStyle->SetPadBorderMode(0);
59   gStyle->SetOptTitle(1);
60   gStyle->SetOptStat(1110);
61   gStyle->SetOptFit(1);
62   
63   gStyle->SetPalette(1,0);  // rainbow colors
64   gStyle->SetHistLineWidth(2); 
65   
66   gStyle->SetFrameBorderMode(0);
67   gROOT->ForceStyle();
68   
69 }
70