Skip to content

Commit

Permalink
Merge pull request #764 in B2/basf2 from feature/DQM-clear-histomem-r…
Browse files Browse the repository at this point in the history
…elease-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.
  • Loading branch information
GiacomoXT committed Feb 25, 2022
2 parents 527c2ee + d5c19f7 commit 4845eee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions daq/expreco/src/ERecoEventProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ int ERecoEventProcessor::UnConfigure(NSMmsg*, NSMcontext*)

int ERecoEventProcessor::Start(NSMmsg* nsmm, NSMcontext* nsmc)
{
// Clear DQM histogram memory
char cmdline[] = "hsendcommand DQMRC:CLEAR localhost 10391";
system(cmdline);
printf("ERecoEventProcessor : DQM TMemFile cleared\n");

string rbufin = string(m_conf->getconf("system", "unitname")) + ":" +
string(m_conf->getconf("processor", "ringbufin"));
string rbufout = string(m_conf->getconf("system", "unitname")) + ":" +
Expand Down
4 changes: 4 additions & 0 deletions daq/expreco/src/ERecoMasterCallback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ void ERecoMasterCallback::start(int expno, int runno)
perform(NSMCommunicator::select(30));
} catch (const TimeoutException& e) {}
}
char cmdline[] = "hsendcommand DQMRC:CLEAR erctl 9991";
system(cmdline);
printf("ERecoMaster : DQM TMemFile cleared\n");

if (m_callback != NULL)
m_callback->setState(RCState::RUNNING_S);
RCCallback::setState(RCState::RUNNING_S);
Expand Down

0 comments on commit 4845eee

Please sign in to comment.