#include "htofinocontfact.h"
#include "hruntimedb.h"
#include "htofinocalpar.h"
#include "htofinoshowermap.h"
#include "htofinolookup.h"
#include "htofinogeompar.h"
#include "htofinodigitpar.h"
ClassImp(HTofinoContFact)
static HTofinoContFact gHTofinoContFact;
HTofinoContFact::HTofinoContFact() {
fName="TofinoContFact";
fTitle="Factory for parameter containers in libTofino";
setAllContainers();
HRuntimeDb::instance()->addContFactory(this);
}
void HTofinoContFact::setAllContainers() {
containers->Add(
new HContainer("TofinoCalPar",
"Calibration parameters for Tofino",
"TofinoStandardCalib"));
containers->Add(
new HContainer("TofinoGeomPar",
"Tofino geometry parameters",
"GeomProduction"));
containers->Add(
new HContainer("TofinoLookup",
"Lookup table for Tofino unpacker",
""));
containers->Add(
new HContainer("TofinoShowerMap",
"Position of shower pads relative to tofino cells",
"TofinoStandardShowerMap"));
containers->Add(
new HContainer("TofinoDigitPar",
"Tofino digitisation parameters",
"TofinoDigitParProduction"));
}
HParSet* HTofinoContFact::createContainer(HContainer* c) {
const Char_t* name=c->GetName();
if (strcmp(name,"TofinoCalPar")==0)
return new HTofinoCalPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"TofinoGeomPar")==0)
return new HTofinoGeomPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"TofinoLookup")==0)
return new HTofinoLookup(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"TofinoShowerMap")==0)
return new HTofinoShowerMap(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"TofinoDigitPar")==0)
return new HTofinoDigitPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
return 0;
}
Last change: Sat May 22 13:16:38 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.