#include "hrpccontfact.h"
#include "hruntimedb.h"
#include "hrpcdigipar.h"
#include "hrpccalpar.h"
#include "hrpcgeomcellpar.h"
#include "hrpcthrespar.h"
#include "hrpcgeompar.h"
ClassImp(HRpcContFact)
static HRpcContFact gHRpcContFact;
HRpcContFact::HRpcContFact(void) {
fName="RpcContFact";
fTitle="Factory for parameter containers in libRpc";
setAllContainers();
HRuntimeDb::instance()->addContFactory(this);
}
void HRpcContFact::setAllContainers(void) {
containers->Add(
new HContainer("RpcDigiPar",
"Digitization parameters for the Rpc Detector",
"RpcDigiProduction"));
containers->Add(
new HContainer("RpcCalPar",
"Calibration parameters for the Rpc Detector",
"RpcCalProduction"));
containers->Add(
new HContainer("RpcGeomCellPar",
"Geometry parameters of cells for the Rpc Detector",
"GeomCellProduction"));
containers->Add(
new HContainer("RpcThresPar",
"Thresholds for the Rpc Detector",
"RpcThresProduction"));
containers->Add(
new HContainer("RpcGeomPar",
"Geometry parameters of the Rpc Detector",
"GeomProduction"));
}
HParSet* HRpcContFact::createContainer(HContainer* c) {
const Char_t* name=c->GetName();
if (strcmp(name,"RpcDigiPar")==0)
return new HRpcDigiPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"RpcCalPar")==0)
return new HRpcCalPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"RpcGeomCellPar")==0)
return new HRpcGeomCellPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"RpcThresPar")==0)
return new HRpcThresPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"RpcGeomPar")==0)
return new HRpcGeomPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
return 0;
}
Last change: Sat May 22 13:11:08 2010
Last generated: 2010-05-22 13:11
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.