AliPhysics  251aa1e (251aa1e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FastLoad.C
Go to the documentation of this file.
1 void
2 LoadOne(const char* simdir, const char* script, const char* opt="+g")
3 {
4  gROOT->LoadMacro(Form("%s/%s.C+%s", simdir, script, opt));
5 }
6 
7 void
9 {
10  const char* simdir = "$ALICE_PHYSICS/PWGLF/FORWARD/analysis2/sim";
11  gSystem->AddIncludePath(Form("-I%s", simdir));
12  gSystem->AddIncludePath("-I$ALICE_PHYSICS/include");
13  gSystem->AddIncludePath("-I$ALICE_ROOT/include");
14 
15  const char* scripts[] = { "FastShortHeader",
16  "FastMonitor",
17  "FastCentEstimators",
18  "FastSim",
19  "FastAnalysis",
20  "FastCentHelper",
21  "dNdetaAnalysis",
22  "dNdyAnalysis",
23  "spectraAnalysis",
24  0 };
25  const char** ptr = scripts;
26  while (*ptr) {
27  LoadOne(simdir, *ptr);
28  ptr++;
29  }
30 }
void LoadOne(const char *simdir, const char *script, const char *opt="+g")
Definition: FastLoad.C:2
TSystem * gSystem
void FastLoad()
Definition: FastLoad.C:8