Coverity fix for uninitialized variables and check for returned null value
[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
07a863ca 32void init()
2095bb50 33{
07a863ca 34/// Set include path and load libraries which are not
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");
07a863ca 60 gSystem->Load("liblhapdf.so");
61 gSystem->Load("libpythia6.so");
62 gSystem->Load("libgeant321.so");
63 gSystem->Load("libEG");
64 gSystem->Load("libEGPythia6");
65 gSystem->Load("libAliPythia6.so");
67c48a1e 66
67 // libraries needed for Config.C
68 gSystem->Load("libSTRUCT.so");
69 gSystem->Load("libITSbase.so");
70 gSystem->Load("libITSsim.so");
07a863ca 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());
81}
82
83void loadmacros ()
84{
85 init();
86
323f18ec 87 loadmacro("AddTaskMuonAlignment"); // Javier
88 loadmacro("AddTaskMuonReAlign"); // Javier
07a863ca 89 loadmacro("DecodeRecoCocktail"); // Hermine, Alessandro
67c48a1e 90 loadmacro("Config"); //
323f18ec 91 loadmacro("DIMUONFakes"); // Philippe P.
07a863ca 92 loadmacro("fastMUONGen"); // Hermine, Alessandro
93 loadmacro("fastMUONSim"); // Hermine, Alessandro
94 loadmacro("MakeMUONFullMisAlignment"); // Javier, Ivana
95 loadmacro("MakeMUONResMisAlignment"); // Javier, Ivana
96 loadmacro("MakeMUONZeroMisAlignment"); // Javier, Ivana
323f18ec 97 loadmacro("MakeMUONRecoParamArray"); // Philippe P.
98 loadmacro("MakeMUONSingleRecoParam"); // Philippe P.
07a863ca 99 loadmacro("MergeMuonLight"); // Hermine, Alessandro
100 loadmacro("MUONAlignment"); // Javier
4be12860 101 loadmacro("MUONChamberMaterialBudget"); // Philippe P.
07a863ca 102 loadmacro("MUONCheck"); // Frederic
103 loadmacro("MUONCheckDI"); // Artur
104 loadmacro("MUONCheckMisAligner"); // Javier
105 loadmacro("MUONClusterInfo"); // Philippe P.
323f18ec 106 loadmacro("MUONFakes"); // Philippe P.
07a863ca 107 loadmacro("MUONefficiency"); // Christophe
108 loadmacro("MUONGenerateBusPatch"); // Christian
c019d773 109 loadmacro("MUONGenerateGentleGeometry"); // Bogdan
07a863ca 110 loadmacro("MUONGenerateGeometryData"); // Ivana
111 loadmacro("MUONGenerateTestGMS"); // Ivana
112 loadmacro("MUONGeometryViewingHelper"); // Ivana
113 loadmacro("MUONmassPlot_ESD"); // Christian
114 loadmacro("MUONOfflineShift"); // Laurent
115 loadmacro("MUONplotefficiency"); // Christian
116 loadmacro("MUONRawStreamTracker"); // Christian
117 loadmacro("MUONRawStreamTrigger"); // Christian
118 loadmacro("MUONReCalcGlobalTrigger"); // Bogdan
119 loadmacro("MUONRecoCheck"); // Hermine, Alessandro
120 loadmacro("MUONRefit"); // Philippe P.
07a863ca 121 loadmacro("MUONStatusMap"); // Laurent
122 loadmacro("MUONSurveyUtil"); // Javier
323f18ec 123 loadmacro("MUONSurveyCh1"); // Javier
124 loadmacro("MUONSurveyCh2"); // Javier
125 loadmacro("MUONSurveyCh3"); // Javier
126 loadmacro("MUONSurveyCh4"); // Javier
127 loadmacro("MUONSurveyCh5"); // Javier
07a863ca 128 loadmacro("MUONSurveyCh8L"); // Javier
129 loadmacro("MUONTimeRawStreamTracker"); // Artur
130 loadmacro("MUONTimeRawStreamTrigger"); // Artur
131 loadmacro("MUONTrigger"); // Bogdan
132 loadmacro("MUONTriggerChamberEfficiency"); // Diego
133 loadmacro("MUONTriggerEfficiency"); // Bogdan
134 loadmacro("MUONTriggerEfficiencyPt"); // Bogdan
135 loadmacro("ReadRecoCocktail"); // Hermine, Alessandro
323f18ec 136 loadmacro("runDataReconstruction"); // Laurent
07a863ca 137 loadmacro("runReconstruction"); // Laurent
138 loadmacro("runSimulation"); // Laurent
139 loadmacro("TestMUONPreprocessor"); // Laurent
140 loadmacro("TestRecPoints"); // Diego
323f18ec 141 loadmacro("UpdateCDBCTPConfig"); // Bogdan
2095bb50 142}