#include "htofcontfact.h"
#include "hruntimedb.h"
#include "htofcalpar.h"
#include "htofdigipar.h"
#include "htofgeompar.h"
#include "htoflookup.h"
#include "htofclusterfpar.h"
ClassImp(HTofContFact)
static HTofContFact gHTofContFact;
HTofContFact::HTofContFact() {
fName="TofContFact";
fTitle="Factory for parameter containers in libTof";
setAllContainers();
HRuntimeDb::instance()->addContFactory(this);
}
void HTofContFact::setAllContainers() {
containers->Add(
new HContainer("TofCalPar",
"Calibration parameters for Tof",
"TofCalProduction"));
containers->Add(
new HContainer("TofDigiPar",
"TOF digitization parameters",
"TofDigiProduction"));
containers->Add(
new HContainer("TofGeomPar",
"Tof geometry parameters",
"GeomProduction"));
containers->Add(
new HContainer("TofLookup",
"Lookup table for Tof unpacker",
""));
containers->Add(
new HContainer("TofClusterFPar",
"Parameter container for the cluster finder",
"TofCluNormalBias"));
}
HParSet* HTofContFact::createContainer(HContainer* c) {
const Char_t* name=c->GetName();
if (strcmp(name,"TofCalPar")==0)
return new HTofCalPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"TofDigiPar")==0)
return new HTofDigiPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"TofGeomPar")==0)
return new HTofGeomPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"TofLookup")==0)
return new HTofLookup(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"TofClusterFPar")==0)
return new HTofClusterFPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
return 0;
}
Last change: Sat May 22 13:15:58 2010
Last generated: 2010-05-22 13:15
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.