#include "hhodocontfact.h"
#include "hruntimedb.h"
#include "hhodolookup.h"
#include "hhodocalpar.h"
#include "hhodorefhitpar.h"
ClassImp(HHodoContFact)
static HHodoContFact gHHodoContFact;
HHodoContFact::HHodoContFact(void) {
fName="HodoContFact";
fTitle="Factory for parameter containers in libHodo";
setAllContainers();
HRuntimeDb::instance()->addContFactory(this);
}
void HHodoContFact::setAllContainers(void) {
containers->Add(
new HContainer("HodoLookup",
"Unpacker lookup table for the (Pion) Hodo",
"HodoLookupProduction"));
containers->Add(
new HContainer("HodoCalPar",
"Calibration parameters for (Pion) Hodo",
"HodoCalProduction"));
containers->Add(
new HContainer("HodoRefHitPar",
"Reference Trigger and Hit parameters for (Pion) Hodo",
"HodoRawAndHitProduction"));
}
HParSet* HHodoContFact::createContainer(HContainer* c) {
const Char_t* name=c->GetName();
if (strcmp(name,"HodoLookup")==0)
return new HHodoLookup(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"HodoCalPar")==0)
return new HHodoCalPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"HodoRefHitPar")==0)
return new HHodoRefHitPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
return 0;
}
Last change: Sat May 22 12:57:20 2010
Last generated: 2010-05-22 12:57
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.