Skip to content

Commit 4845eee

Browse files
committed
Merge pull request #764 in B2/basf2 from feature/DQM-clear-histomem-release-06-01-cherry-pick to release/06-01
* commit 'd5c19f7ac0a61715c95565f9fface6f74a728da8': Clears TMemFile on each worker also at START. * DQM histogram memory is cleared at START.
2 parents 527c2ee + d5c19f7 commit 4845eee

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

daq/expreco/src/ERecoEventProcessor.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ int ERecoEventProcessor::UnConfigure(NSMmsg*, NSMcontext*)
199199

200200
int ERecoEventProcessor::Start(NSMmsg* nsmm, NSMcontext* nsmc)
201201
{
202+
// Clear DQM histogram memory
203+
char cmdline[] = "hsendcommand DQMRC:CLEAR localhost 10391";
204+
system(cmdline);
205+
printf("ERecoEventProcessor : DQM TMemFile cleared\n");
206+
202207
string rbufin = string(m_conf->getconf("system", "unitname")) + ":" +
203208
string(m_conf->getconf("processor", "ringbufin"));
204209
string rbufout = string(m_conf->getconf("system", "unitname")) + ":" +

daq/expreco/src/ERecoMasterCallback.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ void ERecoMasterCallback::start(int expno, int runno)
328328
perform(NSMCommunicator::select(30));
329329
} catch (const TimeoutException& e) {}
330330
}
331+
char cmdline[] = "hsendcommand DQMRC:CLEAR erctl 9991";
332+
system(cmdline);
333+
printf("ERecoMaster : DQM TMemFile cleared\n");
334+
331335
if (m_callback != NULL)
332336
m_callback->setState(RCState::RUNNING_S);
333337
RCCallback::setState(RCState::RUNNING_S);

0 commit comments

Comments
 (0)