using namespace std;
#include "htofinotaskset.h"
#include "htask.h"
#include "htaskset.h"
#include "hdebug.h"
#include "TROOT.h"
#include "TClass.h"
#include "haddef.h"
#include "hades.h"
#include "htofinocalibrater.h"
#include "htofinodigitizer.h"
#include "TBrowser.h"
#include <iostream>
#include <iomanip>
#include <cstdlib>
HTofinoTaskSet::HTofinoTaskSet(const Text_t name[],const Text_t title[]) : HTaskSet(name,title) {
}
HTofinoTaskSet::HTofinoTaskSet(void) : HTaskSet() {
}
HTofinoTaskSet::~HTofinoTaskSet(void) {
}
HTask* HTofinoTaskSet::make(const Char_t *select,const Option_t *option) {
HTaskSet *tasks = new HTaskSet("Tofino","List of Tofino tasks");
TString sel = select;
sel.ToLower();
TString opt = option;
opt.ToLower();
if(sel.Contains("simulation")&&gHades->getEmbeddingMode()!=0)
{
Error("HTofinoTaskSet::make()","embeddingMode > 0 in simulation NOT ALLOWED!");
exit(1);
}
if( opt.Contains("simulation") ) {
tasks->add( new HTofinoDigitizer("tofi.digi","tofi.digi"));
}
else
{
tasks->add( new HTofinoCalibrater("tofino.cal","tofino") );
if(gHades->getEmbeddingMode()!=0){
tasks->add( new HTofinoDigitizer("tofi.digi","tofi.digi"));
}
}
return tasks;
}
ClassImp(HTofinoTaskSet)
Last change: Sat May 22 13:16:55 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.