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 #include #include //*-- Author : Dan Magestro //*-- Modified: 19/11/2001 by D. Magestro //_HADES_CLASS_DESCRIPTION /////////////////////////////////////////////////////////////////////////////// // HTofinoTaskSet // // This HTaskSet contains the tasks for the Tofino detector // // BEGIN_HTMLFor more information, see this analysis logbook entry. END_HTML // /////////////////////////////////////////////////////////////////////////////// HTofinoTaskSet::HTofinoTaskSet(const Text_t name[],const Text_t title[]) : HTaskSet(name,title) { // Constructor } HTofinoTaskSet::HTofinoTaskSet(void) : HTaskSet() { // Default constructor } HTofinoTaskSet::~HTofinoTaskSet(void) { // Destructor. } HTask* HTofinoTaskSet::make(const Char_t *select,const Option_t *option) { // Returns a pointer to the Tofino task or taskset specified by 'select' 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)