1 #include "ERNeuRadContFact.h" 3 #include "ERNeuRadGeoPar.h" 4 #include "ERNeuRadDigiPar.h" 6 #include "FairRuntimeDb.h" 16 fName=
"ERNeuRadContFact";
17 fTitle=
"Factory for parameter containers in libTutorial1";
19 FairRuntimeDb::instance()->addContFactory(
this);
29 FairContainer* p1=
new FairContainer(
"ERNeuRadGeoPar",
31 "TestDefaultContext");
32 p1->addContext(
"TestNonDefaultContext");
36 FairContainer* p2=
new FairContainer(
"ERNeuRadDigiPar",
38 "TestDefaultContext");
39 p2->addContext(
"TestNonDefaultContext");
44 FairParSet* ERNeuRadContFact::createContainer(FairContainer* c)
46 const char* name=c->GetName();
48 if (strcmp(name,
"ERNeuRadGeoPar")==0) {
50 c->GetTitle(),c->getContext());
52 if (strcmp(name,
"ERNeuRadDigiPar")==0) {
54 c->GetTitle(),c->getContext());