using namespace std;
#include "htoftaskset.h"
#include "hdebug.h"
#include "haddef.h"
#include "hades.h"
#include "htofdigitizer.h"
#include "htofhitf.h"
#include "htofhitfsim.h"
#include "htofclusterf.h"
#include "htofclusterfsim.h"
#include <iostream>
#include <iomanip>
HTofTaskSet::HTofTaskSet(const Text_t name[],const Text_t title[]) : HTaskSet(name,title) {
}
HTofTaskSet::HTofTaskSet(void) : HTaskSet() {
}
HTofTaskSet::~HTofTaskSet(void) {
}
HTask* HTofTaskSet::make(const Char_t *select,const Option_t *option) {
HTaskSet *tasks = new HTaskSet("Tof","List of Tof tasks");
TString simulation="simulation";
TString real ="real";
TString nocluster ="noclust";
TString sel = select;
TString opt = option;
sel.ToLower();
if(sel.CompareTo(simulation)==0&&gHades->getEmbeddingMode()!=0)
{
Error("HTofTaskSet::make()","embeddingMode > 0 in simulation NOT ALLOWED!");
exit(1);
}
if( sel.CompareTo(simulation)==0 ||
(sel.CompareTo(real) ==0 && gHades->getEmbeddingMode()!=0))
{
if(opt.CompareTo(nocluster)==0)
{
tasks->add( new HTofDigitizer("tof.digi","tof.digi") );
tasks->add( new HTofHitFSim("tof.hitfs","tof.hitfs") );
}
else
{
tasks->add( new HTofDigitizer("tof.digi","tof.digi") );
tasks->add( new HTofHitFSim("tof.hitfs","tof.hitfs") );
tasks->add( new HTofClusterFSim("tof.clusf","tof.clusf") );
}
}
if(sel.CompareTo(real)==0&&gHades->getEmbeddingMode()==0)
{
if(opt.CompareTo(nocluster)==0)
{
tasks->add( new HTofHitF("tof.hitf","tof.hitf") );
}
else
{
tasks->add( new HTofHitF("tof.hitf","tof.hitf") );
tasks->add( new HTofClusterF("tof.clusf","tof.clusf") );
}
}
return tasks;
}
ClassImp(HTofTaskSet)
Last change: Sat May 22 13:16:30 2010
Last generated: 2010-05-22 13:16
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.