#include "hshowercontfact.h"
#include "hruntimedb.h"
#include "hshowergeometry.h"
#include "hshowerdigidetpar.h"
#include "hshowerhitfpar.h"
#include "hshowercalpar.h"
#include "hshowerhist.h"
#include "hshowerunpackparam.h"
#include "hshowersimulpar.h"
ClassImp(HShowerContFact)
static HShowerContFact gHShowerContFact;
HShowerContFact::HShowerContFact() {
fName="ShowerContFact";
fTitle="Factory for parameter containers in libShower";
setAllContainers();
HRuntimeDb::instance()->addContFactory(this);
}
void HShowerContFact::setAllContainers() {
containers->Add(
new HContainer("ShowerCalPar",
"Calibration parameters for Shower",
"ShowerStandardCalib"));
containers->Add(
new HContainer("ShowerDigiPar",
"Digitisation parameters for Shower",
"ShowerStandardDigiDet"));
containers->Add(
new HContainer("ShowerGeometry",
"Geometry parameters for Shower",
"GeomProduction"));
containers->Add(
new HContainer("ShowerHist",
"Histograms of offsets and slopes for Shower",
""));
containers->Add(
new HContainer("ShowerHitFinderParams",
"Parameter for Shower hit finder",
"ShowerStandardHitFinder"));
containers->Add(
new HContainer("ShowerUnpackParam",
"Parameter for Shower unpacker",
"ShowerStandardUnpack"));
containers->Add(
new HContainer(SHOWERSIMUL_PAR_NAME,
SHOWERSIMUL_PAR_TITLE,
SHOWERSIMUL_PAR_CONTEXT));
}
HParSet* HShowerContFact::createContainer(HContainer* c) {
const Char_t* name=c->GetName();
if (strcmp(name,"ShowerCalPar")==0)
return new HShowerCalPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"ShowerDigiPar")==0)
return new HShowerDigiDetPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"ShowerGeometry")==0)
return new HShowerGeometry(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"ShowerHist")==0)
return new HShowerHist(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"ShowerHitFinderParams")==0)
return new HShowerHitFPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"ShowerUnpackParam")==0)
return new HShowerUnpackParam(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,SHOWERSIMUL_PAR_NAME)==0)
return new HShowerSimulPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
return 0;
}
Last change: Sat May 22 13:13:22 2010
Last generated: 2010-05-22 13:13
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.