Skip to content
Snippets Groups Projects
Commit 3003a1ed authored by Rene Brun's avatar Rene Brun
Browse files

Add missing file and make macro tasks.C executable from anywhere.

git-svn-id: http://root.cern.ch/svn/root/trunk@17171 27541ba8-7e3a-0410-8455-c3a389f83636
parent e548fdcf
No related branches found
No related tags found
No related merge requests found
// A set of classes deriving from TTask
// see macro tasks.C to see an example of use
// The Exec function of each class prints one line when it is called.
//Author: Rene Brun
#include "TTask.h"
class MyRun : public TTask {
public:
MyRun() {;}
MyRun(const char *name, const char *title);
virtual ~MyRun() {;}
void Exec(Option_t *option="");
ClassDef(MyRun,1) // Run Reconstruction task
};
class MyEvent : public TTask {
public:
MyEvent() {;}
MyEvent(const char *name, const char *title);
virtual ~MyEvent() {;}
void Exec(Option_t *option="");
ClassDef(MyEvent,1) // Event Reconstruction task
};
class MyGeomInit : public TTask {
public:
MyGeomInit() {;}
MyGeomInit(const char *name, const char *title);
virtual ~MyGeomInit() {;}
void Exec(Option_t *option="");
ClassDef(MyGeomInit,1) // Geometry initialisation task
};
class MyMaterialInit : public TTask {
public:
MyMaterialInit() {;}
MyMaterialInit(const char *name, const char *title);
virtual ~MyMaterialInit() {;}
void Exec(Option_t *option="");
ClassDef(MyMaterialInit,1) // Materials initialisation task
};
class MyTracker : public TTask {
public:
MyTracker() {;}
MyTracker(const char *name, const char *title);
virtual ~MyTracker() {;}
void Exec(Option_t *option="");
ClassDef(MyTracker,1) // Main Reconstruction task
};
class MyRecTPC : public TTask {
public:
MyRecTPC() {;}
MyRecTPC(const char *name, const char *title);
virtual ~MyRecTPC() {;}
void Exec(Option_t *option="");
ClassDef(MyRecTPC,1) // TPC Reconstruction
};
class MyRecITS : public TTask {
public:
MyRecITS() {;}
MyRecITS(const char *name, const char *title);
virtual ~MyRecITS() {;}
void Exec(Option_t *option="");
ClassDef(MyRecITS,1) // ITS Reconstruction
};
class MyRecMUON : public TTask {
public:
MyRecMUON() {;}
MyRecMUON(const char *name, const char *title);
virtual ~MyRecMUON() {;}
void Exec(Option_t *option="");
ClassDef(MyRecMUON,1) // MUON Reconstruction
};
class MyRecPHOS : public TTask {
public:
MyRecPHOS() {;}
MyRecPHOS(const char *name, const char *title);
virtual ~MyRecPHOS() {;}
void Exec(Option_t *option="");
ClassDef(MyRecPHOS,1) // PHOS Reconstruction
};
class MyRecRICH : public TTask {
public:
MyRecRICH() {;}
MyRecRICH(const char *name, const char *title);
virtual ~MyRecRICH() {;}
void Exec(Option_t *option="");
ClassDef(MyRecRICH,1) // RICH Reconstruction
};
class MyRecTRD : public TTask {
public:
MyRecTRD() {;}
MyRecTRD(const char *name, const char *title);
virtual ~MyRecTRD() {;}
void Exec(Option_t *option="");
ClassDef(MyRecTRD,1) // TRD Reconstruction
};
class MyRecGlobal : public TTask {
public:
MyRecGlobal() {;}
MyRecGlobal(const char *name, const char *title);
virtual ~MyRecGlobal() {;}
void Exec(Option_t *option="");
ClassDef(MyRecGlobal,1) // Global Reconstruction
};
//---------------------------------------------------------
ClassImp(MyRun)
MyRun::MyRun(const char *name, const char *title)
:TTask(name,title)
{
}
void MyRun::Exec(Option_t * /*option*/)
{
printf("MyRun executing\n");
}
//---------------------------------------------------------
ClassImp(MyEvent)
MyEvent::MyEvent(const char *name, const char *title)
:TTask(name,title)
{
}
void MyEvent::Exec(Option_t * /*option*/)
{
printf("MyEvent executing\n");
}
//---------------------------------------------------------
ClassImp(MyGeomInit)
MyGeomInit::MyGeomInit(const char *name, const char *title)
:TTask(name,title)
{
}
void MyGeomInit::Exec(Option_t * /*option*/)
{
printf("MyGeomInit executing\n");
}
//---------------------------------------------------------
ClassImp(MyMaterialInit)
MyMaterialInit::MyMaterialInit(const char *name, const char *title)
:TTask(name,title)
{
}
void MyMaterialInit::Exec(Option_t * /*option*/)
{
printf("MyMaterialInit executing\n");
}
//---------------------------------------------------------
ClassImp(MyTracker)
MyTracker::MyTracker(const char *name, const char *title)
:TTask(name,title)
{
}
void MyTracker::Exec(Option_t * /*option*/)
{
printf("MyTracker executing\n");
}
//---------------------------------------------------------
ClassImp(MyRecTPC)
MyRecTPC::MyRecTPC(const char *name, const char *title)
:TTask(name,title)
{
}
void MyRecTPC::Exec(Option_t * /*option*/)
{
printf("MyRecTPC executing\n");
}
//---------------------------------------------------------
ClassImp(MyRecITS)
MyRecITS::MyRecITS(const char *name, const char *title)
:TTask(name,title)
{
}
void MyRecITS::Exec(Option_t * /*option*/)
{
printf("MyRecITS executing\n");
}
//---------------------------------------------------------
ClassImp(MyRecMUON)
MyRecMUON::MyRecMUON(const char *name, const char *title)
:TTask(name,title)
{
}
void MyRecMUON::Exec(Option_t * /*option*/)
{
printf("MyRecMUON executing\n");
}
//---------------------------------------------------------
ClassImp(MyRecPHOS)
MyRecPHOS::MyRecPHOS(const char *name, const char *title)
:TTask(name,title)
{
}
void MyRecPHOS::Exec(Option_t * /*option*/)
{
printf("MyRecPHOS executing\n");
}
//---------------------------------------------------------
ClassImp(MyRecRICH)
MyRecRICH::MyRecRICH(const char *name, const char *title)
:TTask(name,title)
{
}
void MyRecRICH::Exec(Option_t * /*option*/)
{
printf("MyRecRICH executing\n");
}
//---------------------------------------------------------
ClassImp(MyRecTRD)
MyRecTRD::MyRecTRD(const char *name, const char *title)
:TTask(name,title)
{
}
void MyRecTRD::Exec(Option_t * /*option*/)
{
printf("MyRecTRD executing\n");
}
//---------------------------------------------------------
ClassImp(MyRecGlobal)
MyRecGlobal::MyRecGlobal(const char *name, const char *title)
:TTask(name,title)
{
}
void MyRecGlobal::Exec(Option_t * /*option*/)
{
printf("MyRecGlobal executing\n");
}
...@@ -6,10 +6,14 @@ ...@@ -6,10 +6,14 @@
// see also other functions in the TTask context menu, such as // see also other functions in the TTask context menu, such as
// -setting a breakpoint in one or more tasks // -setting a breakpoint in one or more tasks
// -enabling/disabling one task, etc // -enabling/disabling one task, etc
//Author: Rene Brun
void tasks() void tasks()
{ {
gROOT->ProcessLine(".L MyTasks.cxx+"); TString dir = gSystem->UnixPathName(TCint::GetCurrentMacroName());
dir.ReplaceAll("tasks.C","");
dir.ReplaceAll("/./","/");
gROOT->LoadMacro(dir +"MyTasks.cxx+");
TTask *run = new MyRun("run","Process one run"); TTask *run = new MyRun("run","Process one run");
TTask *event = new MyEvent("event","Process one event"); TTask *event = new MyEvent("event","Process one event");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment