19 #include <FairContFact.h>
20 #include <FairLogger.h>
21 #include <FairRuntimeDb.h>
34 fName =
"CbmTrdContFact";
35 fTitle =
"Factory for parameter containers in libTrd";
37 FairRuntimeDb::instance()->addContFactory(
this);
45 FairContainer* par(
nullptr);
47 par =
new FairContainer(
48 "CbmTrdParSetAsic",
"Trd ASIC Parameters",
"TestDefaultContext");
49 par->addContext(
"TestNonDefaultContext");
52 par =
new FairContainer(
53 "CbmTrdParSetDigi",
"Trd Read-Out Parameters",
"TestDefaultContext");
54 par->addContext(
"TestNonDefaultContext");
57 par =
new FairContainer(
58 "CbmTrdParSetGas",
"Trd Gas Parameters",
"TestDefaultContext");
59 par->addContext(
"TestNonDefaultContext");
62 par =
new FairContainer(
63 "CbmTrdParSetGain",
"Trd Gain Parameters",
"TestDefaultContext");
64 par->addContext(
"TestNonDefaultContext");
67 par =
new FairContainer(
68 "CbmTrdParSetGeo",
"Trd Geometry Parameters",
"TestDefaultContext");
69 par->addContext(
"TestNonDefaultContext");
77 const char* name = c->GetName();
78 LOG(info) << GetName() <<
"::createContainer :" << name;
80 FairParSet* p(
nullptr);
81 if (strcmp(name,
"CbmTrdParSetAsic") == 0)
83 c->getConcatName().Data(), c->GetTitle(), c->getContext());
84 else if (strcmp(name,
"CbmTrdParSetDigi") == 0)
86 c->getConcatName().Data(), c->GetTitle(), c->getContext());
87 else if (strcmp(name,
"CbmTrdParSetGas") == 0)
89 c->getConcatName().Data(), c->GetTitle(), c->getContext());
90 else if (strcmp(name,
"CbmTrdParSetGain") == 0)
92 c->getConcatName().Data(), c->GetTitle(), c->getContext());
93 else if (strcmp(name,
"CbmTrdParSetGeo") == 0)
95 c->getConcatName().Data(), c->GetTitle(), c->getContext());