#include "htriggercontfact.h"
#include "hruntimedb.h"
#include "htriggerparmulep.h"
#include "htriggerparmudilep.h"
#include "htriggerparmommap.h"
#include "htriggerparshowermap.h"
#include "htriggerparrichmap.h"
#include "hrichIPUparpattern.h"
#include "hrichIPUparthresholds.h"
#include "hrichIPUparlocmax.h"
#include "htriggersetup.h"
ClassImp(HTriggerContFact)
static HTriggerContFact gHTriggerContFact;
HTriggerContFact::HTriggerContFact() {
fName="TriggerContFact";
fTitle="Factory for parameter containers in libTrigger";
setAllContainers();
HRuntimeDb::instance()->addContFactory(this);
}
void HTriggerContFact::setAllContainers() {
containers->Add(new HContainer("TriggerParMuLep",
"Parameters for MU Lepton Emulation",
"TriggerProduction"));
containers->Add(new HContainer("TriggerParMuDilep",
"Parameters for MU Dilepton Emulation",
"TriggerProduction"));
containers->Add(new HContainer("TriggerParMomMap",
"Parameters for MU Momentum Mapping",
"TriggerProduction"));
containers->Add(new HContainer("TriggerParShowerMap",
"Parameters for Shower Mapping",
"TriggerProduction"));
containers->Add(new HContainer("TriggerParRichMap",
"Parameters for Rich Mapping",
"TriggerProduction"));
containers->Add(new HContainer("RichIPUParPattern",
"Parameters for Rich IPU pattern",
"RICHIPUEmulation"));
containers->Add(new HContainer("TriggerSetup",
"Variouse trigger setup parameters",
"TriggerProduction"));
HContainer *pt =new HContainer("RichIPUParThresholds",
"Parameters for Rich IPU thresholds",
"RICHIPUEmulation");
pt->addContext("RICHIPUconservativethr");
containers->Add(pt);
HContainer *lm =new HContainer("RichIPUParLocMax",
"Parameters for Rich IPU local maximum",
"RICHIPUEmulation");
lm->addContext("RICHIPUconservativethr");
containers->Add(lm);
}
HParSet* HTriggerContFact::createContainer(HContainer* c) {
const Char_t* name=c->GetName();
if (strncmp(name,"TriggerParMuLep",strlen("TriggerParMuLep"))==0)
return new HTriggerParMuLep(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strncmp(name,"TriggerParMuDilep",strlen("TriggerParMuDilep"))==0)
return new HTriggerParMuDilep(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strncmp(name,"TriggerParMomMap",strlen("TriggerParMomMap"))==0)
return new HTriggerParMomMap(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strncmp(name,"TriggerParShowerMap",strlen("TriggerParShowerMap"))==0)
return new HTriggerParShowerMap(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strncmp(name,"TriggerParRichMap",strlen("TriggerParRichMap"))==0)
return new HTriggerParRichMap(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strncmp(name,"RichIPUParPattern",strlen("RichIPUParPattern"))==0)
return new HRichIPUParPattern(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strncmp(name,"RichIPUParThresholds",strlen("RichIPUParThresholds"))==0)
return new HRichIPUParThresholds(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strncmp(name,"RichIPUParLocMax",strlen("RichIPUParLocMax"))==0)
return new HRichIPUParLocMax(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strncmp(name,"TriggerSetup",strlen("TriggerSetup"))==0)
return new HTriggerSetup(c->getConcatName().Data(),c->GetTitle(),c->getContext());
return 0;
}
Last change: Sat May 22 13:17:09 2010
Last generated: 2010-05-22 13:17
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.