17 gROOT->LoadMacro(dir +
"MyTasks.cxx+");
19 gROOT->ProcessLine(
"#define __RUN_TASKS__ 1");
20 gROOT->ProcessLine(
TString(
"#include \"") + dir +
"tasks.C\"");
21 gROOT->ProcessLine(
"runtasks()");
22 gROOT->ProcessLine(
"#undef __RUN_TASKS__");
30 TTask *run =
new MyRun(
"run",
"Process one run");
31 TTask *
event =
new MyEvent(
"event",
"Process one event");
32 TTask *geomInit =
new MyGeomInit(
"geomInit",
"Geometry Initialisation");
33 TTask *matInit =
new MyMaterialInit(
"matInit",
"Materials Initialisation");
34 TTask *tracker =
new MyTracker(
"tracker",
"Tracker manager");
35 TTask *tpc =
new MyRecTPC(
"tpc",
"TPC Reconstruction");
36 TTask *its =
new MyRecITS(
"its",
"ITS Reconstruction");
37 TTask *muon =
new MyRecMUON(
"muon",
"MUON Reconstruction");
38 TTask *phos =
new MyRecPHOS(
"phos",
"PHOS Reconstruction");
39 TTask *rich =
new MyRecRICH(
"rich",
"RICH Reconstruction");
40 TTask *trd =
new MyRecTRD(
"trd",
"TRD Reconstruction");
41 TTask *global =
new MyRecGlobal(
"global",
"Global Reconstruction");
55 gROOT->GetListOfTasks()->Add(run);
56 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