23 gROOT->LoadMacro(dir +
"MyTasks.cxx+");
25 gROOT->ProcessLine(
"#define __RUN_TASKS__ 1");
26 gROOT->ProcessLine(
TString(
"#include \"") + dir +
"tasks.C\"");
27 gROOT->ProcessLine(
"runtasks()");
28 gROOT->ProcessLine(
"#undef __RUN_TASKS__");
36 TTask *
run =
new MyRun(
"run",
"Process one run");
37 TTask *
event =
new MyEvent(
"event",
"Process one event");
38 TTask *geomInit =
new MyGeomInit(
"geomInit",
"Geometry Initialisation");
39 TTask *matInit =
new MyMaterialInit(
"matInit",
"Materials Initialisation");
40 TTask *tracker =
new MyTracker(
"tracker",
"Tracker manager");
41 TTask *tpc =
new MyRecTPC(
"tpc",
"TPC Reconstruction");
42 TTask *its =
new MyRecITS(
"its",
"ITS Reconstruction");
43 TTask *muon =
new MyRecMUON(
"muon",
"MUON Reconstruction");
44 TTask *phos =
new MyRecPHOS(
"phos",
"PHOS Reconstruction");
45 TTask *rich =
new MyRecRICH(
"rich",
"RICH Reconstruction");
46 TTask *trd =
new MyRecTRD(
"trd",
"TRD Reconstruction");
47 TTask *global =
new MyRecGlobal(
"global",
"Global Reconstruction");
61 gROOT->GetListOfTasks()->Add(run);
62 gROOT->GetListOfBrowsables()->Add(run);
TString & ReplaceAll(const TString &s1, const TString &s2)
TTask is a base class that can be used to build a complex tree of Tasks.
virtual void Add(TTask *task)
virtual const char * UnixPathName(const char *unixpathname)
Convert from a Unix pathname to a local pathname.
Using a TBrowser one can browse all ROOT objects.
R__EXTERN TSystem * gSystem
void run(bool only_compile=false)