AliPhysics  5e2c166 (5e2c166)
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
8 FastLoad(const char* opt="+g")
9 {
10  TString simdir = "$ALICE_PHYSICS/PWGLF/FORWARD/analysis2/sim";
11  if (gSystem->Getenv("ANA_SRC"))
12  simdir.Form("%s/sim", gSystem->Getenv("ANA_SRC"));
13  gSystem->AddIncludePath(Form("-I%s", simdir.Data()));
14  gSystem->AddIncludePath("-I$ALICE_PHYSICS/include");
15  gSystem->AddIncludePath("-I$ALICE_ROOT/include");
16 
17  const char* scripts[] = { "FastShortHeader",
18  "FastMonitor",
19  "FastCentEstimators",
20  "FastSim",
21  "FastAnalysis",
22  "FastCentHelper",
23  "dNdetaAnalysis",
24  "dNdyAnalysis",
25  "spectraAnalysis",
26  0 };
27  const char** ptr = scripts;
28  while (*ptr) {
29  LoadOne(simdir, *ptr, opt);
30  ptr++;
31  }
32 }
void FastLoad(const char *opt="+g")
Definition: FastLoad.C:8
void LoadOne(const char *simdir, const char *script, const char *opt="+g")
Definition: FastLoad.C:2
TSystem * gSystem