]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/loadmacros.C
Added two missing includes to allow macro compilation (thanks to Laurent for remarkin...
[u/mrichter/AliRoot.git] / MUON / loadmacros.C
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Id$ */
17
18 /// \ingroup macros
19 /// \file loadmacros.C
20 /// \brief Macro which loads and compiles the MUON macros
21 ///
22 /// \author I. Hrivnacova, IPN Orsay
23
24 #if !defined(__CINT__) || defined(__MAKECINT__)
25
26 #include <TROOT.h>
27 #include <TSystem.h>
28 #include <TString.h>
29
30 #endif
31
32 void init() 
33 {
34 /// Set include path and load libraries which are not 
35 /// linked with aliroot
36
37   // Redefine include paths as some macros need
38   // to see more than what is define in rootlogon.C
39   //
40   TString includePath = "-I${ALICE_ROOT}/include ";
41   includePath        += "-I${ALICE_ROOT}/RAW ";
42   includePath        += "-I${ALICE_ROOT}/FASTSIM ";
43   includePath        += "-I${ALICE_ROOT}/EVGEN ";
44   includePath        += "-I${ALICE_ROOT}/SHUTTLE/TestShuttle ";
45   includePath        += "-I${ALICE_ROOT}/ITS ";
46   includePath        += "-I${ALICE_ROOT}/MUON ";
47   includePath        += "-I${ALICE_ROOT}/MUON/mapping";
48   gSystem->SetIncludePath(includePath.Data());
49
50   // Load libraries not linked with aliroot
51   //
52   gSystem->Load("$ALICE_ROOT/SHUTTLE/TestShuttle/libTestShuttle.so");
53   gSystem->Load("libMUONshuttle.so");
54   gSystem->Load("libMUONevaluation.so");
55   gSystem->Load("liblhapdf.so");     
56   gSystem->Load("libpythia6.so");    
57   gSystem->Load("libgeant321.so");
58   gSystem->Load("libEG");
59   gSystem->Load("libEGPythia6");
60   gSystem->Load("libAliPythia6.so");
61 }  
62
63 void loadmacro(const TString& macroName)
64 {
65 /// Load the macro with given name
66
67   TString path = "$ALICE_ROOT/MUON/";
68   path += macroName;
69   path += ".C++";
70   gROOT->LoadMacro(path.Data());
71 }  
72
73 void loadmacros () 
74 {
75   init();
76
77   loadmacro("DecodeRecoCocktail");         // Hermine, Alessandro     
78   loadmacro("fastMUONGen");                // Hermine, Alessandro
79   loadmacro("fastMUONSim");                // Hermine, Alessandro
80   loadmacro("loadFromOCDB");               // Philippe P.
81   loadmacro("MakeMUONFullMisAlignment");   // Javier, Ivana
82   loadmacro("MakeMUONResMisAlignment");    // Javier, Ivana
83   loadmacro("MakeMUONZeroMisAlignment");   // Javier, Ivana
84   loadmacro("MergeMuonLight");             // Hermine, Alessandro
85   loadmacro("MUONAlignment");              // Javier   
86   loadmacro("MUONCheck");                  // Frederic          
87   loadmacro("MUONCheckDI");                // Artur
88   loadmacro("MUONCheckMisAligner");        // Javier
89   loadmacro("MUONClusterInfo");            // Philippe P.
90   loadmacro("MUONefficiency");             // Christophe
91   loadmacro("MUONGenerateBusPatch");       // Christian
92   loadmacro("MUONGenerateGeometryData");   // Ivana
93   loadmacro("MUONGenerateTestGMS");        // Ivana
94   loadmacro("MUONGeometryViewingHelper");  // Ivana
95   loadmacro("MUONmassPlot_ESD");           // Christian    
96   loadmacro("MUONOfflineShift");           // Laurent
97   loadmacro("MUONplotefficiency");         // Christian
98   loadmacro("MUONRawStreamTracker");       // Christian   
99   loadmacro("MUONRawStreamTrigger");       // Christian 
100   loadmacro("MUONReCalcGlobalTrigger");    // Bogdan       
101   loadmacro("MUONRecoCheck");              // Hermine, Alessandro
102   loadmacro("MUONRefit");                  // Philippe P.
103   // loadmacro("MUONResoEffChamber");      // Nicolas
104   loadmacro("MUONStatusMap");              // Laurent
105   loadmacro("MUONSurveyUtil");             // Javier
106   loadmacro("MUONSurveyCh8L");             // Javier
107   loadmacro("MUONTimeRawStreamTracker");   // Artur
108   loadmacro("MUONTimeRawStreamTrigger");   // Artur 
109   loadmacro("MUONTrigger");                // Bogdan
110   loadmacro("MUONTriggerChamberEfficiency"); // Diego
111   loadmacro("MUONTriggerEfficiency");      // Bogdan
112   loadmacro("MUONTriggerEfficiencyPt");    // Bogdan
113   loadmacro("ReadRecoCocktail");           // Hermine, Alessandro   
114   loadmacro("runReconstruction");          // Laurent
115   loadmacro("runSimulation");              // Laurent
116   loadmacro("TestMUONPreprocessor");       // Laurent
117   loadmacro("TestRecPoints");              // Diego
118   loadmacro("TestRecPoints");              // Diego
119 }