using namespace std;
#include "hbasecontfact.h"
#include "hruntimedb.h"
#include "hspecgeompar.h"
#include "hmagnetpar.h"
#include "htrblookup.h"
#include <iostream>
#include <iomanip>
ClassImp(HBaseContFact)
static HBaseContFact gHBaseContFact;
HBaseContFact::HBaseContFact() {
fName="BaseContFact";
fTitle="Factory for parameter containers in libHydra";
setAllContainers();
HRuntimeDb::instance()->addContFactory(this);
}
void HBaseContFact::setAllContainers() {
containers->Add(new HContainer(
"SpecGeomPar",
"Geometry of cave, sectors and target",
"GeomProduction"));
HContainer* cm=new HContainer(
"MagnetPar",
"Magnet current",
"MagnetCurrentSetValues");
cm->addContext("MagnetCurrentReadbackValues");
containers->Add(cm);
containers->Add(new HContainer(
"TrbLookup",
"Lookup table for TRB unpacker",
"TrbLookupProduction"));
}
HParSet* HBaseContFact::createContainer(HContainer* c) {
const Char_t* name=c->GetName();
if (strcmp(name,"SpecGeomPar")==0) {
return new HSpecGeomPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
}
if (strcmp(name,"MagnetPar")==0) {
return new HMagnetPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
}
if (strcmp(name,"TrbLookup")==0) {
return new HTrbLookup(c->getConcatName().Data(),c->GetTitle(),c->getContext());
}
return 0;
}
Last change: Sat May 22 12:53:41 2010
Last generated: 2010-05-22 12:53
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.