83 Bool_t initOK {kTRUE};
85 fRunId = fConfig->GetValue<
string>(
"run-id");
86 fvmcworkdir = fConfig->GetValue<
string>(
"vmcworkdir");
87 fMaxEvents = fConfig->GetValue<uint64_t>(
"max-events");
89 LOG(info) <<
"Init parameter containers for CbmDeviceStsHitProducerIdeal.";
94 for (
int iparC = 0; iparC < fParCList->GetEntries(); iparC++) {
95 FairParGenericSet* tempObj = (FairParGenericSet*) (fParCList->At(iparC));
96 fParCList->Remove(tempObj);
97 std::string paramName {tempObj->GetName()};
103 std::string message = paramName +
",111";
104 LOG(info) <<
"Requesting parameter container " << paramName <<
", sending message: " << message;
106 FairMQMessagePtr req(NewSimpleMessage(message));
107 FairMQMessagePtr rep(NewMessage());
109 FairParGenericSet* newObj =
nullptr;
111 if (Send(req,
"parameters") > 0) {
112 if (Receive(rep,
"parameters") >= 0) {
113 if (rep->GetSize() != 0) {
115 newObj =
static_cast<FairParGenericSet*
>(tmsg.ReadObject(tmsg.GetClass()));
116 LOG(info) <<
"Received unpack parameter from the server:";
120 LOG(error) <<
"Received empty reply. Parameter not available";
124 fParCList->AddAt(newObj, iparC);