18 #include "FairRuntimeDb.h"
26 fName =
"CbmMcbm2018ContFact";
27 fTitle =
"Factory for parameter containers for fles test library";
29 FairRuntimeDb::instance()->addContFactory(
this);
36 FairContainer* pSts =
new FairContainer(
"CbmMcbm2018StsPar",
37 "STS at MCBM 2018 Unpack Parameters",
38 "TestDefaultContext");
39 pSts->addContext(
"TestNonDefaultContext");
40 containers->Add(pSts);
42 FairContainer* pMuch =
43 new FairContainer(
"CbmMcbm2018MuchPar",
44 "MUCH at MCBM 2018 Unpack Parameters",
45 "TestDefaultContext");
46 pMuch->addContext(
"TestNonDefaultContext");
47 containers->Add(pMuch);
50 FairContainer* pTof =
new FairContainer(
"CbmMcbm2018TofPar",
51 "TOF at MCBM 2018 Unpack Parameters",
52 "TestDefaultContext");
53 pTof->addContext(
"TestNonDefaultContext");
54 containers->Add(pTof);
56 FairContainer* pRich =
57 new FairContainer(
"CbmMcbm2018RichPar",
58 "RICH at MCBM 2018 Unpack Parameters",
59 "TestDefaultContext");
60 pRich->addContext(
"TestNonDefaultContext");
61 containers->Add(pRich);
63 FairContainer* pHodo =
64 new FairContainer(
"CbmMcbm2018HodoPar",
65 "HODO at MCBM 2018 Unpack Parameters",
66 "TestDefaultContext");
67 pHodo->addContext(
"TestNonDefaultContext");
68 containers->Add(pHodo);
70 FairContainer* pPsd =
new FairContainer(
"CbmMcbm2018PsdPar",
71 "PSD at MCBM 2018 Unpack Parameters",
72 "TestDefaultContext");
73 pPsd->addContext(
"TestNonDefaultContext");
74 containers->Add(pPsd);
81 const char* name = c->GetName();
84 if (strcmp(name,
"CbmMcbm2018StsPar") == 0) {
86 c->getConcatName().Data(), c->GetTitle(), c->getContext());
88 if (strcmp(name,
"CbmMcbm2018MuchPar") == 0) {
90 c->getConcatName().Data(), c->GetTitle(), c->getContext());
92 if (strcmp(name,
"CbmMcbm2018TofPar") == 0) {
94 c->getConcatName().Data(), c->GetTitle(), c->getContext());
96 if (strcmp(name,
"CbmMcbm2018RichPar") == 0) {
98 c->getConcatName().Data(), c->GetTitle(), c->getContext());
100 if (strcmp(name,
"CbmMcbm2018HodoPar") == 0) {
102 c->getConcatName().Data(), c->GetTitle(), c->getContext());
104 if (strcmp(name,
"CbmMcbm2018PsdPar") == 0) {
106 c->getConcatName().Data(), c->GetTitle(), c->getContext());