using namespace std;
#include "hmdctrackscontfact.h"
#include "hruntimedb.h"
#include "hmdchitfpar.h"
#include "hmdcleverarmgeometry.h"
#include "hmdcmodulegeometry.h"
#include "hmdcsegmentfpar.h"
#include "hmdctargetgeometry.h"
#include <iostream>
#include <iomanip>
ClassImp(HMdcTrackSContFact)
static HMdcTrackSContFact gHMdcTrackSContFact;
HMdcTrackSContFact::HMdcTrackSContFact() {
fName="MdcTrackSContFact";
fTitle="Factory for parameter containers in libMdcTrackS";
setAllContainers();
HRuntimeDb::instance()->addContFactory(this);
}
void HMdcTrackSContFact::setAllContainers() {
containers->Add(
new HContainer("MdcHitFPar",
"parameters for Mdc hit finder HMdcHitF",
""));
containers->Add(
new HContainer("MdcLeverArmGeometry",
"geometry container for the mdc reconstruction in one lever arm",
""));
containers->Add(
new HContainer("MdcModuleGeometry",
"geometrical parameters for one MDC module",
""));
containers->Add(
new HContainer("MdcSegmentFPar",
"parameter container for segment finding and fitting",
""));
containers->Add(
new HContainer("MdcTargetGeometry",
"target geometry for mdc reconstruction",
""));
}
HParSet* HMdcTrackSContFact::createContainer(HContainer* c) {
const Char_t* name=c->GetName();
if (strcmp(name,"MdcHitFPar")==0)
return new HMdcHitFPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"MdcLeverArmGeometry")==0)
return new HMdcLeverArmGeometry(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"MdcModuleGeometry")==0)
return new HMdcModuleGeometry(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"MdcSegmentFPar")==0)
return new HMdcSegmentFPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"MdcTargetGeometry")==0)
return new HMdcTargetGeometry(c->getConcatName().Data(),c->GetTitle(),c->getContext());
return 0;
}
Last change: Sat May 22 13:04:10 2010
Last generated: 2010-05-22 13:04
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.