AliPhysics  251aa1e (251aa1e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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  gDebug = 0;
37  gROOT->LoadMacro(Form("spectraAnalysis.C+%s",opt));
38  if (extra && extra[0] != '\0') gROOT->LoadMacro(Form("%s+%s",extra, opt));
39 
40  // new dNdetaMaker;
41  // new spectraMaker;
42 
43  return FastAnalysis::Run(url, out, opt);
44 }
45 
46 //
47 // EOF
48 //
49 
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:800
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