AliPhysics  2c6b7ad (2c6b7ad)
ProcessFast.C
Go to the documentation of this file.
1 
10 Bool_t
11 ProcessFast(const char* url,
12  const char* out,
13  const char* opt="g",
14  const char* extra=0)
15 {
16  TString mkLib = gSystem->GetMakeSharedLib();
17  mkLib.ReplaceAll("-std=c++14", "-std=c++98");
18  gSystem->SetMakeSharedLib(mkLib);
19 
20  TString fwd = ""; // gSystem->Getenv("ANA_SRC");
21  if (fwd.IsNull())
22  fwd = gSystem->ExpandPathName("${ALICE_PHYSICS}/PWGLF/FORWARD/analysis2");
23  gSystem->AddIncludePath(Form("-I${ALICE_ROOT}/include "
24  "-I${ALICE_PHYSICS}/include "
25  "-I%s/sim",
26  fwd.Data()));
27  gROOT->SetMacroPath(Form("%s:%s/sim", gROOT->GetMacroPath(), fwd.Data()));
28  gROOT->LoadMacro(Form("FastMonitor.C+%s",opt));
29  gROOT->LoadMacro("FastShortHeader.C");
30  gROOT->LoadMacro(Form("FastAnalysis.C+%s",opt));
31  // gDebug = 3; // Show compile steps
32  // gDebug = 7; // Keep generated files
33  gROOT->LoadMacro(Form("FastCentHelper.C+%s",opt));
34  gROOT->LoadMacro(Form("dNdetaAnalysis.C+%s",opt));
35  gROOT->LoadMacro(Form("dNdyAnalysis.C+%s",opt));
36  gROOT->LoadMacro(Form("MidNchAnalysis.C+%s",opt));
37  gDebug = 0;
38  gROOT->LoadMacro(Form("spectraAnalysis.C+%s",opt));
39  if (extra && extra[0] != '\0') gROOT->LoadMacro(Form("%s+%s",extra, opt));
40 
41  // new dNdetaMaker;
42  // new spectraMaker;
43 
44  return FastAnalysis::Run(url, out, opt);
45 }
46 
47 //
48 // EOF
49 //
50 
const char * url
TSystem * gSystem
static Bool_t Run(const char *url, const char *output, FastAnalysis *a, const char *script, Long64_t nev=-1, Long64_t offset=0, Int_t monitor=-1, Bool_t verbose=false, const char *opt="")
Definition: FastAnalysis.C:886
const char * fwd
Bool_t ProcessFast(const char *url, const char *out, const char *opt="g", const char *extra=0)
Definition: ProcessFast.C:11
bool Bool_t
Definition: External.C:53