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>
//*-- Author : Dan Magestro
//*-- Modified: 04/12/2001 by R. Holzmann
//*-- Modified: 19/11/2001 by D. Magestro
//*-- Modified: 30/06/2004 by J. Otwinowski
// TofCluster category is filled by default
//*-- Modified: 06/07/2004 by J. Otwinowski
// Come back to the optional TofCluster (better for cosmics)
//*-- Modified: 07/01/2005 by P. Tlusty
// TofClusterFSim called for sim data instead of TofClusterF
//_HADES_CLASS_DESCRIPTION
///////////////////////////////////////////////////////////////////////////////
// HTofTaskSet
//
// This HTaskSet contains the tasks for the Tof detector
//
//
For more information, see this analysis logbook entry.
//
///////////////////////////////////////////////////////////////////////////////
HTofTaskSet::HTofTaskSet(Text_t name[],Text_t title[]) : HTaskSet(name,title) {
// Constructor
}
HTofTaskSet::HTofTaskSet(void) : HTaskSet() {
// Default constructor
}
HTofTaskSet::~HTofTaskSet(void) {
// Destructor.
}
HTask* HTofTaskSet::make(const char *select, Option_t *option) {
// Returns a pointer to the Tof task or taskset specified by 'select'
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)
ROOT page - Class index - Class Hierarchy - Top of the page
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.