#include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include <signal.h>
#include <sys/time.h>
#include "tmfe.h"
#include "midas.h"
#include "msystem.h"
#include "mrpc.h"
#include "mstrlcpy.h"
Go to the source code of this file.
◆ binary_rpc_callback()
Definition at line 1175 of file tmfe.cxx.
1176{
1181
1184
1186
1187
1188 for (
unsigned i=0;
i<
mfe->fRpcHandlers.size();
i++) {
1190 if (!h)
1191 continue;
1192 std::vector<char> result;
1194 if (result.size() > 0) {
1198 }
1199
1202 CINT(3) = result.size();
1204 }
1205 }
1206
1210}
void Msg(int message_type, const char *filename, int line, const char *routine, const char *format,...) MATTRPRINTF(6
virtual TMFeResult HandleBinaryRpc(const char *cmd, const char *args, std::vector< char > &result)
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
◆ rpc_callback()
Definition at line 1145 of file tmfe.cxx.
1146{
1151
1154
1156
1157
1158 for (
unsigned i=0;
i<
mfe->fRpcHandlers.size();
i++) {
1160 if (!h)
1161 continue;
1162 std::string result = "";
1164 if (result.length() > 0) {
1165
1168 }
1169 }
1170
1173}
virtual TMFeResult HandleRpc(const char *cmd, const char *args, std::string &result)
◆ TMFeErrorMessage()
Definition at line 29 of file tmfe.cxx.
30{
32}
#define message(type, str)
◆ TMFeMidasError()
Definition at line 34 of file tmfe.cxx.
35{
37}
std::string msprintf(const char *format,...)
◆ tr_pause()
Definition at line 1353 of file tmfe.cxx.
1354{
1356
1358
1360
1361
1362
1363 for (
int i = (
int)
mfe->fRpcHandlers.size() - 1;
i >= 0;
i--) {
1365 if (!h)
1366 continue;
1369
1370
1371 break;
1372 }
1373 }
1374
1378 }
1379
1381}
std::string error_message
virtual TMFeResult HandlePauseRun(int run_number)
INT cm_msg(INT message_type, const char *filename, INT line, const char *routine, const char *format,...)
#define TRANSITION_ERROR_STRING_LENGTH
◆ tr_resume()
Definition at line 1383 of file tmfe.cxx.
1384{
1386 printf(
"TMFE::tr_resume!\n");
1387
1389
1391
1393 mfe->fStateRunning =
true;
1394
1395
1396 for (
unsigned i=0;
i<
mfe->fRpcHandlers.size();
i++) {
1398 if (!h)
1399 continue;
1402
1403
1404 break;
1405 }
1406 }
1407
1411 }
1412
1414}
virtual TMFeResult HandleResumeRun(int run_number)
◆ tr_start()
Definition at line 1275 of file tmfe.cxx.
1276{
1278 printf(
"TMFE::tr_start!\n");
1279
1281
1283 mfe->fStateRunning =
true;
1284
1286
1287
1288 for (
unsigned i=0;
i<
mfe->fRpcHandlers.size();
i++) {
1290 if (!h)
1291 continue;
1294
1295
1296
1297
1298
1299
1300
1301
1302 break;
1303 }
1304 }
1305
1309 }
1310
1312}
virtual TMFeResult HandleBeginRun(int run_number)
◆ tr_startabort()
Definition at line 1416 of file tmfe.cxx.
1417{
1419 printf(
"TMFE::tr_startabort!\n");
1420
1422
1424
1425
1426 for (
unsigned i=0;
i<
mfe->fRpcHandlers.size();
i++) {
1428 if (!h)
1429 continue;
1432
1433
1434 break;
1435 }
1436 }
1437
1438 mfe->fStateRunning =
false;
1439
1443 }
1444
1446}
virtual TMFeResult HandleStartAbortRun(int run_number)
◆ tr_stop()
Definition at line 1314 of file tmfe.cxx.
1315{
1317 printf(
"TMFE::tr_stop!\n");
1318
1320
1322
1323
1324
1325
1326
1327
1328
1329 for (
int i = (
int)
mfe->fRpcHandlers.size() - 1;
i >= 0;
i--) {
1331 if (!h)
1332 continue;
1335
1336
1337
1338
1340 }
1341 }
1342
1343 mfe->fStateRunning =
false;
1344
1348 }
1349
1351}
virtual TMFeResult HandleEndRun(int run_number)