renaming function to avoid library conflict (discovered in test/generators/TUHKMgen)
[u/mrichter/AliRoot.git] / MUON / loadmacros.C
CommitLineData
2095bb50 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
e54bf126 18/// \ingroup macros
19/// \file loadmacros.C
07a863ca 20/// \brief Macro which loads and compiles the MUON macros
e54bf126 21///
22/// \author I. Hrivnacova, IPN Orsay
2095bb50 23
24#if !defined(__CINT__) || defined(__MAKECINT__)
25
26#include <TROOT.h>
27#include <TSystem.h>
28#include <TString.h>
29
30#endif
31
bc079e3d 32void init()
2095bb50 33{
bc079e3d 34/// Set include path and load libraries which are not
07a863ca 35/// linked with aliroot
36
2095bb50 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 ";
334d976e 42 includePath += "-I${ALICE_ROOT}/FASTSIM ";
43 includePath += "-I${ALICE_ROOT}/EVGEN ";
2095bb50 44 includePath += "-I${ALICE_ROOT}/SHUTTLE/TestShuttle ";
45 includePath += "-I${ALICE_ROOT}/ITS ";
46 includePath += "-I${ALICE_ROOT}/MUON ";
67c48a1e 47 includePath += "-I${ALICE_ROOT}/MUON/mapping ";
48
49 // includes needed for Config.C
50 includePath += "-I${ALICE_ROOT}/STRUCT ";
51 includePath += "-I${ALICE}/geant3/TGeant3 ";
52 includePath += "-I${ALICE_ROOT}/THijing";
2095bb50 53 gSystem->SetIncludePath(includePath.Data());
54
55 // Load libraries not linked with aliroot
56 //
4f24373f 57 gSystem->Load("$ALICE_ROOT/SHUTTLE/TestShuttle/libTestShuttle.so");
2095bb50 58 gSystem->Load("libMUONshuttle.so");
59 gSystem->Load("libMUONevaluation.so");
bc079e3d 60 gSystem->Load("liblhapdf.so");
61 gSystem->Load("libpythia6.so");
07a863ca 62 gSystem->Load("libgeant321.so");
63 gSystem->Load("libEG");
64 gSystem->Load("libEGPythia6");
65 gSystem->Load("libAliPythia6.so");
bc079e3d 66
67c48a1e 67 // libraries needed for Config.C
68 gSystem->Load("libSTRUCT.so");
69 gSystem->Load("libITSbase.so");
70 gSystem->Load("libITSsim.so");
bc079e3d 71}
2095bb50 72
07a863ca 73void loadmacro(const TString& macroName)
74{
75/// Load the macro with given name
76
77 TString path = "$ALICE_ROOT/MUON/";
78 path += macroName;
79 path += ".C++";
80 gROOT->LoadMacro(path.Data());
bc079e3d 81}
07a863ca 82
bc079e3d 83void loadmacros ()
07a863ca 84{
85 init();
86
323f18ec 87 loadmacro("AddTaskMuonAlignment"); // Javier
bc079e3d 88 loadmacro("DecodeRecoCocktail"); // Hermine, Alessandro
89 loadmacro("Config"); //
323f18ec 90 loadmacro("DIMUONFakes"); // Philippe P.
07a863ca 91 loadmacro("fastMUONGen"); // Hermine, Alessandro
92 loadmacro("fastMUONSim"); // Hermine, Alessandro
93 loadmacro("MakeMUONFullMisAlignment"); // Javier, Ivana
94 loadmacro("MakeMUONResMisAlignment"); // Javier, Ivana
95 loadmacro("MakeMUONZeroMisAlignment"); // Javier, Ivana
323f18ec 96 loadmacro("MakeMUONRecoParamArray"); // Philippe P.
97 loadmacro("MakeMUONSingleRecoParam"); // Philippe P.
07a863ca 98 loadmacro("MergeMuonLight"); // Hermine, Alessandro
bc079e3d 99 loadmacro("MUONAlignment"); // Javier
100 loadmacro("MUONChamberMaterialBudget"); // Philippe P.
101 loadmacro("MUONCheck"); // Frederic
07a863ca 102 loadmacro("MUONCheckDI"); // Artur
103 loadmacro("MUONCheckMisAligner"); // Javier
104 loadmacro("MUONClusterInfo"); // Philippe P.
323f18ec 105 loadmacro("MUONFakes"); // Philippe P.
07a863ca 106 loadmacro("MUONefficiency"); // Christophe
107 loadmacro("MUONGenerateBusPatch"); // Christian
c019d773 108 loadmacro("MUONGenerateGentleGeometry"); // Bogdan
07a863ca 109 loadmacro("MUONGenerateGeometryData"); // Ivana
110 loadmacro("MUONGenerateTestGMS"); // Ivana
111 loadmacro("MUONGeometryViewingHelper"); // Ivana
bc079e3d 112 loadmacro("MUONmassPlot_ESD"); // Christian
07a863ca 113 loadmacro("MUONOfflineShift"); // Laurent
114 loadmacro("MUONplotefficiency"); // Christian
bc079e3d 115 loadmacro("MUONRawStreamTracker"); // Christian
116 loadmacro("MUONRawStreamTrigger"); // Christian
117 loadmacro("MUONReCalcGlobalTrigger"); // Bogdan
07a863ca 118 loadmacro("MUONRecoCheck"); // Hermine, Alessandro
119 loadmacro("MUONRefit"); // Philippe P.
07a863ca 120 loadmacro("MUONStatusMap"); // Laurent
121 loadmacro("MUONSurveyUtil"); // Javier
323f18ec 122 loadmacro("MUONSurveyCh1"); // Javier
123 loadmacro("MUONSurveyCh2"); // Javier
124 loadmacro("MUONSurveyCh3"); // Javier
125 loadmacro("MUONSurveyCh4"); // Javier
126 loadmacro("MUONSurveyCh5"); // Javier
07a863ca 127 loadmacro("MUONSurveyCh8L"); // Javier
128 loadmacro("MUONTimeRawStreamTracker"); // Artur
bc079e3d 129 loadmacro("MUONTimeRawStreamTrigger"); // Artur
07a863ca 130 loadmacro("MUONTrigger"); // Bogdan
131 loadmacro("MUONTriggerChamberEfficiency"); // Diego
132 loadmacro("MUONTriggerEfficiency"); // Bogdan
133 loadmacro("MUONTriggerEfficiencyPt"); // Bogdan
bc079e3d 134 loadmacro("ReadRecoCocktail"); // Hermine, Alessandro
323f18ec 135 loadmacro("runDataReconstruction"); // Laurent
07a863ca 136 loadmacro("runReconstruction"); // Laurent
137 loadmacro("runSimulation"); // Laurent
138 loadmacro("TestMUONPreprocessor"); // Laurent
139 loadmacro("TestRecPoints"); // Diego
323f18ec 140 loadmacro("UpdateCDBCTPConfig"); // Bogdan
2095bb50 141}