#include "hwallcontfact.h"
#include "hruntimedb.h"
#include "hwalllookup.h"
#include "hwallcalpar.h"
#include "hwalldigipar.h"
#include "hwallgeompar.h"
#include "hwallrefwinpar.h"
ClassImp(HWallContFact)
static HWallContFact gHWallContFact;
HWallContFact::HWallContFact(void) {
fName="WallContFact";
fTitle="Factory for parameter containers in libWall";
setAllContainers();
HRuntimeDb::instance()->addContFactory(this);
}
void HWallContFact::setAllContainers(void) {
containers->Add(
new HContainer("WallLookup",
"Unpacker lookup table for the Forward Wall",
"WallLookupProduction"));
containers->Add(
new HContainer("WallCalPar",
"Calibration parameters for Forward Wall",
"WallCalProduction"));
containers->Add(
new HContainer("WallDigiPar",
"Digitization parameters for Forward Wall",
"WallDigiProduction"));
containers->Add(
new HContainer("WallRefWinPar",
"Reference time windows parameters for Forward Wall",
"WallOneHitProduction"));
containers->Add(
new HContainer("WallGeomPar",
"Geometry parameters of the Forward Wall",
"GeomProduction"));
}
HParSet* HWallContFact::createContainer(HContainer* c) {
const Char_t* name=c->GetName();
if (strcmp(name,"WallLookup")==0)
return new HWallLookup(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"WallCalPar")==0)
return new HWallCalPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"WallDigiPar")==0)
return new HWallDigiPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"WallRefWinPar")==0)
return new HWallRefWinPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"WallGeomPar")==0)
return new HWallGeomPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
return 0;
}
Last change: Sat May 22 13:17:28 2010
Last generated: 2010-05-22 13:17
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.