AliPhysics  ec7afe5 (ec7afe5)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RunFast.C
Go to the documentation of this file.
1 void
2 RunFast(const char* url="local:///",
3  const char* opt="")
4 {
5  TString fwd = ""; // gSystem->Getenv("ANA_SRC");
6  if (fwd.IsNull())
7  fwd = gSystem->ExpandPathName("${ALICE_PHYSICS}/PWGLF/FORWARD/analysis2");
8  gSystem->AddIncludePath(Form("-I${ALICE_ROOT}/include "
9  "-I${ALICE_PHYSICS}/include "
10  "-I%s/include",
11  fwd.Data()));
12  gROOT->SetMacroPath(Form("%s:%s/sim", gROOT->GetMacroPath(), fwd.Data()));
13 
14  // Remember to copy changes to FastSim.C(FastSim::ProofLoadLibs)
15  TList clsLib;
16  clsLib.Add(new TNamed("TVirtualMC", "libVMC"));
17  clsLib.Add(new TNamed("TLorentzVector", "libPhysics"));
18  clsLib.Add(new TNamed("TLinearFitter", "libMinuit"));
19  clsLib.Add(new TNamed("TTree", "libTree"));
20  clsLib.Add(new TNamed("TProof", "libProof"));
21  clsLib.Add(new TNamed("TGFrame", "libGui"));
22  clsLib.Add(new TNamed("TSAXParser", "libXMLParser"));
23  clsLib.Add(new TNamed("AliVEvent", "libSTEERBase"));
24  clsLib.Add(new TNamed("AliESDEvent", "libESD"));
25  clsLib.Add(new TNamed("AliAODEvent", "libAOD"));
26  clsLib.Add(new TNamed("AliAnalysisManager", "libANALYSIS"));
27  clsLib.Add(new TNamed("AliCDBManager", "libCDB"));
28  clsLib.Add(new TNamed("AliRawVEvent", "libRAWDatabase"));
29  clsLib.Add(new TNamed("AliHit", "libSTEER"));
30  clsLib.Add(new TNamed("AliGenMC", "libEVGEN"));
31  clsLib.Add(new TNamed("AliFastEvent", "libFASTSIM"));
32 
33  TIter next(&clsLib);
34  TObject* obj = 0;
35  while ((obj = next())) {
36  gROOT->LoadClass(obj->GetName(), obj->GetTitle());
37  }
38 
39 
40  // Uncomment next line to use number of diffractive processes for SD
41  // detection.
42  gSystem->AddIncludePath("-DNO_DPMJET_TYPE");
43  // gDebug = 7;
44  gROOT->LoadMacro(Form("%s/sim/FastMonitor.C+%s",fwd.Data(),opt));
45  gROOT->LoadMacro(Form("%s/sim/FastCentEstimators.C+%s",fwd.Data(),opt));
46  gROOT->LoadMacro(Form("%s/sim/FastSim.C+%s",fwd.Data(),opt));
47 
48  const char* cleanFiles[] = { "grp.dat",
49  "galice.root",
50  "Kinematics.root",
51  "fort.8",
52  "fort.16",
53  0 };
54  const char** pClean = cleanFiles;
55  while (*pClean) {
56  gSystem->Unlink(*pClean);
57  pClean++;
58  }
59  FastSim::Run(url, opt);
60 }
const char * url
TSystem * gSystem
static Bool_t Run(const char *url, const char *opt="")
Definition: FastSim.C:1698
const char * fwd
void RunFast(const char *url="local:///", const char *opt="")
Definition: RunFast.C:2