#include <PndTutContFact.h>
Definition at line 9 of file PndTutContFact.h.
PndTutContFact::PndTutContFact |
( |
| ) |
|
Definition at line 22 of file PndTutContFact.cxx.
24 fName=
"PndTutContFact";
25 fTitle=
"Tutorial factory for parameter containers";
27 FairRuntimeDb::instance()->addContFactory(
this);
PndTutContFact::~PndTutContFact |
( |
| ) |
|
|
inline |
FairParSet * PndTutContFact::createContainer |
( |
FairContainer * |
c | ) |
|
Calls the constructor of the corresponding parameter container. For an actual context, which is not an empty string and not the default context of this container, the name is concatinated with the context.
Definition at line 45 of file PndTutContFact.cxx.
References name, and p.
49 const char*
name=
c->GetName();
51 if (strcmp(name,
"TUTParDefault")==0) {
52 p=
new PndTutPar(
c->getConcatName().Data(),
c->GetTitle(),
c->getContext());
55 if (strcmp(name,
"TUTParAlternative")==0) {
56 p=
new PndTutPar(
c->getConcatName().Data(),
c->GetTitle(),
c->getContext());
void PndTutContFact::setAllContainers |
( |
| ) |
|
|
private |
Creates the Container objects with all accepted contexts and adds them to the list of containers.
Definition at line 30 of file PndTutContFact.cxx.
References p1, and p2.
34 FairContainer*
p1 =
new FairContainer(
"TUTParDefault",
"Default tutorial parameters",
"TestDefaultContext");
35 p1->addContext(
"TestNonDefaultContext");
38 FairContainer*
p2 =
new FairContainer(
"TUTParAlternative",
"Alternative to the default tutorial parameters",
"TestDefaultContext");
39 p2->addContext(
"TestNonDefaultContext");
The documentation for this class was generated from the following files: