12 #include <FairLogger.h>
14 #include <FairParSet.h>
15 #include <FairRuntimeDb.h>
28 SetName(
"CbmStsContFact");
29 SetTitle(
"STS parameter container factory");
31 FairRuntimeDb::instance()->addContFactory(
this);
39 const char* contName = container->GetName();
40 FairParSet* parSet =
nullptr;
43 if (strcmp(contName,
"CbmStsParSim") == 0) {
44 parSet =
new CbmStsParSim(container->getConcatName().Data(),
45 container->GetTitle(),
46 container->getContext());
50 else if (strcmp(contName,
"CbmStsParSetModule") == 0) {
52 container->GetTitle(),
53 container->getContext());
57 else if (strcmp(contName,
"CbmStsParSetSensor") == 0) {
58 LOG(info) <<
"createContainer " << container->getConcatName().Data() <<
" "
59 << container->GetTitle() <<
" " << container->getContext();
61 container->GetTitle(),
62 container->getContext());
68 else if (strcmp(contName,
"CbmStsParSetSensorCond") == 0) {
70 container->GetTitle(),
71 container->getContext());
74 LOG(info) << GetName() <<
": Create container " << contName
75 <<
" with parameter set " << parSet->GetName();
85 FairContainer* simPars =
86 new FairContainer(
"CbmStsParSim",
"STS simulation settings",
"Default");
87 simPars->addContext(
"Default");
88 containers->Add(simPars);
91 FairContainer* modulePars =
92 new FairContainer(
"CbmStsParSetModule",
"STS module parameters",
"Default");
93 modulePars->addContext(
"Default");
94 containers->Add(modulePars);
97 FairContainer* sensorPars =
98 new FairContainer(
"CbmStsParSetSensor",
"STS sensor parameters",
"Default");
99 sensorPars->addContext(
"Default");
100 containers->Add(sensorPars);
103 FairContainer* sensorCond =
new FairContainer(
104 "CbmStsParSetSensorCond",
"STS sensor conditions",
"Default");
105 sensorCond->addContext(
"Default");
106 containers->Add(sensorCond);