#include <PndGemContFact.h>
Definition at line 9 of file PndGemContFact.h.
PndGemContFact::PndGemContFact |
( |
| ) |
|
Definition at line 18 of file PndGemContFact.cxx.
References setAllContainers().
20 fName=
"PndGemContFact";
21 fTitle=
"Factory for parameter containers in libPndGem";
23 FairRuntimeDb::instance()->addContFactory(
this);
PndGemContFact::~PndGemContFact |
( |
| ) |
|
|
inline |
FairParSet * PndGemContFact::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 50 of file PndGemContFact.cxx.
References name, and p.
54 const char*
name=
c->GetName();
57 if (strcmp(name,
"PndGemGeoPar")==0) {
58 p=
new PndGemGeoPar(
c->getConcatName().Data(),
c->GetTitle(),
c->getContext());
61 if (strcmp(name,
"PndGemDetectors")==0) {
62 p=
new PndGemDigiPar(
c->getConcatName().Data(),
c->GetTitle(),
c->getContext());
Digitization Parameter Class for GEM part.
void PndGemContFact::setAllContainers |
( |
| ) |
|
|
private |
Creates the Container objects with all accepted contexts and adds them to the list of containers for the GEM library.
Definition at line 26 of file PndGemContFact.cxx.
References p, and p2.
Referenced by PndGemContFact().
30 FairContainer*
p=
new FairContainer(
"PndGemGeoPar",
"PndGem Geometry Parameters",
"TestDefaultContext");
31 p->addContext(
"TestNonDefaultContext");
35 FairContainer*
p2 =
new FairContainer(
"PndGemDetectors",
"PndGem Digitization Parameters",
"TestDefaultContext");
36 p2->addContext(
"TestNonDefaultContext");
The documentation for this class was generated from the following files: