96 std::vector<std::string>
eq_args;
117 eq->fEqConfEventID = 1;
118 eq->fEqConfLogHistory = 1;
119 eq->fEqConfPeriodMilliSec = 1000;
120 eq->fEqConfBuffer =
"SYSTEM";
123 eq->EqSetStatus(
"Starting...",
"white");
125 mfe->AddRpcHandler(
eq);
137 mfe->StartRpcThread();
140 eq->EqSetStatus(
"Started...",
"white");
142 while (!
mfe->fShutdownRequested) {
TMFeResult HandleEndRun(int run_number)
TMFeResult HandleBeginRun(int run_number)
void SendData(double dvalue)
Myfe(const char *eqname, const char *eqfilename)
TMFeResult HandleRpc(const char *cmd, const char *args, std::string &response)
static std::string GetThreadId()
return identification of this thread
static double GetTime()
return current time in seconds, with micro-second precision
void Msg(int message_type, const char *filename, int line, const char *routine, const char *format,...) MATTRPRINTF(6
void * BkOpen(char *pevent, const char *bank_name, int bank_type) const
TMFeResult BkInit(char *pevent, size_t size) const
TMFeResult EqSetStatus(const char *status, const char *color)
MVOdb * fOdbEqVariables
ODB Equipment/EQNAME/Variables.
TMFeResult BkClose(char *pevent, void *ptr) const
TMFeResult ComposeEvent(char *pevent, size_t size) const
TMFeResult EqSendEvent(const char *pevent, bool write_to_odb=true)
std::string error_message
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)