Example of TTasks. 
Create a hierarchy of objects derived from TTask in library Mytasks Show the tasks in a browser. To execute a Task, use the context context menu and select the item "ExecuteTask" see also other functions in the TTask context menu, such as
- setting a breakpoint in one or more tasks
 
- enabling/disabling one task, etc
 
As of 2021, tbb is a fine replacement for ROOT's task system. It offers better interplay with non-ROOT multi-threading use cases.
 
#ifndef __RUN_TASKS__
 
{
   gROOT->LoadMacro(dir +
"MyTasks.cxx+");
 
 
   gROOT->ProcessLine(
"#define __RUN_TASKS__ 1");
 
   gROOT->ProcessLine(
TString(
"#include \"") + dir + 
"tasks.C\"");
 
   gROOT->ProcessLine(
"runtasks()");
 
   gROOT->ProcessLine(
"#undef __RUN_TASKS__");
 
}
 
#else
 
{
 
 
   gROOT->GetListOfTasks()->Add(run);
 
   gROOT->GetListOfBrowsables()->Add(run);
 
}
 
#endif
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
R__EXTERN TSystem * gSystem
 
Using a TBrowser one can browse all ROOT objects.
 
TString & ReplaceAll(const TString &s1, const TString &s2)
 
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
 
<div class="legacybox"><h2>Legacy Code</h2> TTask is a legacy interface: there will be no bug fixes n...
 
virtual void Add(TTask *task)
Add TTask to this.
 
- Author
 - Rene Brun 
 
Definition in file tasks.C.