- Adding check and flagging for HG present
[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("AddTaskMuonAlignment");       // Javier
78   loadmacro("AddTaskMuonReAlign");         // Javier
79   loadmacro("DecodeRecoCocktail");         // Hermine, Alessandro     
80   loadmacro("DIMUONFakes");                // Philippe P.
81   loadmacro("fastMUONGen");                // Hermine, Alessandro
82   loadmacro("fastMUONSim");                // Hermine, Alessandro
83   loadmacro("loadFromOCDB");               // Philippe P.
84   loadmacro("MakeMUONFullMisAlignment");   // Javier, Ivana
85   loadmacro("MakeMUONResMisAlignment");    // Javier, Ivana
86   loadmacro("MakeMUONZeroMisAlignment");   // Javier, Ivana
87   loadmacro("MakeMUONRecoParamArray");     // Philippe P.
88   loadmacro("MakeMUONSingleRecoParam");    // Philippe P.
89   loadmacro("MergeMuonLight");             // Hermine, Alessandro
90   loadmacro("MUONAlignment");              // Javier   
91   loadmacro("MUONChamberMaterialBudget");  // Philippe P.   
92   loadmacro("MUONCheck");                  // Frederic          
93   loadmacro("MUONCheckDI");                // Artur
94   loadmacro("MUONCheckMisAligner");        // Javier
95   loadmacro("MUONClusterInfo");            // Philippe P.
96   loadmacro("MUONFakes");                  // Philippe P.
97   loadmacro("MUONefficiency");             // Christophe
98   loadmacro("MUONGenerateBusPatch");       // Christian
99   loadmacro("MUONGenerateGeometryData");   // Ivana
100   loadmacro("MUONGenerateTestGMS");        // Ivana
101   loadmacro("MUONGeometryViewingHelper");  // Ivana
102   loadmacro("MUONmassPlot_ESD");           // Christian    
103   loadmacro("MUONOfflineShift");           // Laurent
104   loadmacro("MUONplotefficiency");         // Christian
105   loadmacro("MUONRawStreamTracker");       // Christian   
106   loadmacro("MUONRawStreamTrigger");       // Christian 
107   loadmacro("MUONReCalcGlobalTrigger");    // Bogdan       
108   loadmacro("MUONRecoCheck");              // Hermine, Alessandro
109   loadmacro("MUONRefit");                  // Philippe P.
110   loadmacro("MUONStatusMap");              // Laurent
111   loadmacro("MUONSurveyUtil");             // Javier
112   loadmacro("MUONSurveyCh1");              // Javier
113   loadmacro("MUONSurveyCh2");              // Javier
114   loadmacro("MUONSurveyCh3");              // Javier
115   loadmacro("MUONSurveyCh4");              // Javier
116   loadmacro("MUONSurveyCh5");              // Javier
117   loadmacro("MUONSurveyCh8L");             // Javier
118   loadmacro("MUONTimeRawStreamTracker");   // Artur
119   loadmacro("MUONTimeRawStreamTrigger");   // Artur 
120   loadmacro("MUONTrigger");                // Bogdan
121   loadmacro("MUONTriggerChamberEfficiency"); // Diego
122   loadmacro("MUONTriggerEfficiency");      // Bogdan
123   loadmacro("MUONTriggerEfficiencyPt");    // Bogdan
124   loadmacro("ReadRecoCocktail");           // Hermine, Alessandro   
125   loadmacro("runDataReconstruction");      // Laurent
126   loadmacro("runReconstruction");          // Laurent
127   loadmacro("runSimulation");              // Laurent
128   loadmacro("TestMUONPreprocessor");       // Laurent
129   loadmacro("TestRecPoints");              // Diego
130   loadmacro("UpdateCDBCTPConfig");         // Bogdan
131 }