|
MIDAS
|
#include <tmfe.h>

Static Public Member Functions | |
| static TMFE * | Instance () |
| static double | GetTime () |
| return current time in seconds, with micro-second precision | |
| static void | Sleep (double sleep_time_sec) |
| sleep, with micro-second precision | |
| static std::string | GetThreadId () |
| return identification of this thread | |
| static TMFE * | Instance () |
| static double | GetTime () |
| return current time in seconds, with micro-second precision | |
| static void | Sleep (double sleep_time_sec) |
| sleep, with micro-second precision | |
| static std::string | GetThreadId () |
| return identification of this thread | |
Public Attributes | |
| std::string | fExptname |
| experiment name, blank if only one experiment defined in exptab | |
| std::string | fMserverHostname |
| hostname where the mserver is running, blank if using shared memory | |
| std::string | fProgramName |
| frontend program name | |
| std::string | fHostname |
| hostname we are running on | |
| std::mutex | fMutex |
| int | fDB = 0 |
| ODB database handle. | |
| MVOdb * | fOdbRoot = NULL |
| ODB root. | |
| std::atomic_bool | fShutdownRequested {false} |
| shutdown was requested by Ctrl-C or by RPC command | |
| int | fRunNumber = 0 |
| current run number | |
| bool | fStateRunning = false |
| run state is running or paused | |
| std::thread * | fRpcThread = NULL |
| std::atomic_bool | fRpcThreadStarting {false} |
| std::atomic_bool | fRpcThreadRunning {false} |
| std::atomic_bool | fRpcThreadShutdownRequested {false} |
| std::mutex | fEventBuffersMutex |
| std::vector< TMEventBuffer * > | fEventBuffers |
| bool | fRunStopRequested = false |
| run stop was requested by equipment | |
| double | fRunStartTime = 0 |
| start a new run at this time | |
| std::vector< TMFeRpcHandlerInterface * > | fRpcHandlers |
| std::string | fFrontendName |
| frontend program name | |
| std::string | fFrontendHostname |
| frontend hostname | |
| std::string | fFrontendFilename |
| frontend program file name | |
| bool | fShutdownRequested |
| shutdown was requested by Ctrl-C or by RPC command | |
| std::vector< TMFeEquipment * > | fEquipments |
| std::vector< TMFePeriodicHandler * > | fPeriodicHandlers |
| double | fNextPeriodic |
| bool | fRpcThreadStarting |
| bool | fRpcThreadRunning |
| bool | fRpcThreadShutdownRequested |
| bool | fPeriodicThreadStarting |
| bool | fPeriodicThreadRunning |
| bool | fPeriodicThreadShutdownRequested |
Static Public Attributes | |
| static bool | gfVerbose = false |
Private Member Functions | |
| TMFE () | |
| default constructor is private for singleton classes | |
| virtual | ~TMFE () |
| destructor is private for singleton classes | |
| TMFE () | |
| default constructor is private for singleton classes | |
| virtual | ~TMFE () |
| destructor is private for singleton classes | |
Static Private Attributes | |
| static TMFE * | gfMFE = NULL |
|
private |
default constructor is private for singleton classes
Definition at line 44 of file tmfe.cxx.


|
privatevirtual |
|
private |
default constructor is private for singleton classes
|
privatevirtual |
destructor is private for singleton classes
| void TMFE::AddRpcHandler | ( | TMFeRpcHandlerInterface * | h | ) |
Definition at line 1526 of file tmfe.cxx.

| TMFeError TMFE::Connect | ( | const char * | progname, |
| const char * | filename = NULL, |
||
| const char * | hostname = NULL, |
||
| const char * | exptname = NULL |
||
| ) |
Definition at line 51 of file tmfe_rev0.cxx.

| TMFeResult TMFE::Connect | ( | const char * | progname = NULL, |
| const char * | hostname = NULL, |
||
| const char * | exptname = NULL |
||
| ) |
Definition at line 65 of file tmfe.cxx.


| void TMFE::DeregisterTransitionPause | ( | ) |
| void TMFE::DeregisterTransitionPause | ( | ) |
| void TMFE::DeregisterTransitionResume | ( | ) |
| void TMFE::DeregisterTransitionResume | ( | ) |
| void TMFE::DeregisterTransitions | ( | ) |
| void TMFE::DeregisterTransitions | ( | ) |
| void TMFE::DeregisterTransitionStart | ( | ) |
| void TMFE::DeregisterTransitionStart | ( | ) |
| void TMFE::DeregisterTransitionStartAbort | ( | ) |
| void TMFE::DeregisterTransitionStartAbort | ( | ) |
| void TMFE::DeregisterTransitionStop | ( | ) |
| void TMFE::DeregisterTransitionStop | ( | ) |
| TMFeError TMFE::Disconnect | ( | ) |
Definition at line 154 of file tmfe.cxx.


| TMFeError TMFE::Disconnect | ( | ) |
| void TMFE::EquipmentPeriodicTasks | ( | ) |
Definition at line 128 of file tmfe_rev0.cxx.


| TMFeResult TMFE::EventBufferCloseAll | ( | ) |
Definition at line 484 of file tmfe.cxx.


| TMFeResult TMFE::EventBufferFlushCacheAll | ( | bool | wait = true | ) |
Definition at line 448 of file tmfe.cxx.


| TMFeResult TMFE::EventBufferOpen | ( | TMEventBuffer ** | pbuf, |
| const char * | bufname, | ||
| size_t | bufsize = 0 |
||
| ) |
Definition at line 413 of file tmfe.cxx.


|
static |
|
static |
return identification of this thread
|
static |
|
static |
TMFE is a singleton class. Call instance() to get a reference to the one instance of this class.
Definition at line 57 of file tmfe.cxx.


TMFE is a singleton class. Call instance() to get a reference to the one instance of this class.
| void TMFE::MidasPeriodicTasks | ( | ) |
Definition at line 852 of file tmfe.cxx.

| void TMFE::MidasPeriodicTasks | ( | ) |
| void TMFE::Msg | ( | int | message_type, |
| const char * | filename, | ||
| int | line, | ||
| const char * | routine, | ||
| const char * | format, | ||
| ... | |||
| ) |
Definition at line 991 of file tmfe.cxx.


| void TMFE::Msg | ( | int | message_type, |
| const char * | filename, | ||
| int | line, | ||
| const char * | routine, | ||
| const char * | format, | ||
| ... | |||
| ) |
| void TMFE::Msg | ( | int | message_type, |
| const char * | filename, | ||
| int | line, | ||
| const char * | routine, | ||
| const std::string & | message | ||
| ) |
Definition at line 1004 of file tmfe.cxx.

Definition at line 169 of file tmfe_rev0.cxx.

| TMFeError TMFE::RegisterEquipment | ( | TMFeEquipment * | eq | ) |
Definition at line 122 of file tmfe_rev0.cxx.
| void TMFE::RegisterPeriodicHandler | ( | TMFeEquipment * | eq, |
| TMFePeriodicHandlerInterface * | handler | ||
| ) |
periodic handlers are executed from the periodic thread, if started
Definition at line 579 of file tmfe_rev0.cxx.
| void TMFE::RegisterRpcHandler | ( | TMFeRpcHandlerInterface * | handler | ) |
RPC handlers are executed from the RPC thread, if started.
Definition at line 484 of file tmfe_rev0.cxx.

| void TMFE::RegisterRPCs | ( | ) |
Definition at line 1512 of file tmfe.cxx.


| void TMFE::RegisterTransitionStartAbort | ( | ) |
| void TMFE::RegisterTransitionStartAbort | ( | ) |
| void TMFE::RemoveRpcHandler | ( | TMFeRpcHandlerInterface * | h | ) |
| void TMFE::RpcThread | ( | ) |
Definition at line 857 of file tmfe.cxx.


Definition at line 1458 of file tmfe.cxx.

Definition at line 144 of file tmfe.cxx.


sleep, with micro-second precision
Definition at line 1019 of file tmfe.cxx.


| void TMFE::StartPeriodicThread | ( | ) |
Definition at line 262 of file tmfe_rev0.cxx.

| void TMFE::StartRpcThread | ( | ) |
| void TMFE::StartRpcThread | ( | ) |
| void TMFE::StartRun | ( | ) |
Definition at line 714 of file tmfe.cxx.


| void TMFE::StopPeriodicThread | ( | ) |
Definition at line 294 of file tmfe_rev0.cxx.

| void TMFE::StopRpcThread | ( | ) |
Definition at line 935 of file tmfe.cxx.


| void TMFE::StopRpcThread | ( | ) |
| void TMFE::StopRun | ( | ) |
Definition at line 687 of file tmfe.cxx.


Definition at line 2228 of file tmfe.cxx.

Definition at line 821 of file tmfe.cxx.

| std::vector<TMFeEquipment*> TMFE::fEquipments |
Definition at line 224 of file tmfe_rev0.h.
| std::vector<TMEventBuffer*> TMFE::fEventBuffers |
| std::string TMFE::fExptname |
| std::string TMFE::fFrontendFilename |
frontend program file name
Definition at line 214 of file tmfe_rev0.h.
| std::string TMFE::fFrontendHostname |
frontend hostname
Definition at line 213 of file tmfe_rev0.h.
| std::string TMFE::fFrontendName |
frontend program name
Definition at line 212 of file tmfe_rev0.h.
| std::string TMFE::fHostname |
| std::string TMFE::fMserverHostname |
| double TMFE::fNextPeriodic |
Definition at line 227 of file tmfe_rev0.h.
| std::vector<TMFePeriodicHandler*> TMFE::fPeriodicHandlers |
Definition at line 226 of file tmfe_rev0.h.
| bool TMFE::fPeriodicThreadRunning |
Definition at line 235 of file tmfe_rev0.h.
| bool TMFE::fPeriodicThreadShutdownRequested |
Definition at line 236 of file tmfe_rev0.h.
| bool TMFE::fPeriodicThreadStarting |
Definition at line 234 of file tmfe_rev0.h.
| std::vector< TMFeRpcHandlerInterface * > TMFE::fRpcHandlers |
| bool TMFE::fRpcThreadRunning |
Definition at line 231 of file tmfe_rev0.h.
| std::atomic_bool TMFE::fRpcThreadShutdownRequested {false} |
| bool TMFE::fRpcThreadShutdownRequested |
Definition at line 232 of file tmfe_rev0.h.
| std::atomic_bool TMFE::fRpcThreadStarting {false} |
| bool TMFE::fRpcThreadStarting |
Definition at line 230 of file tmfe_rev0.h.
| std::atomic_bool TMFE::fShutdownRequested {false} |
| bool TMFE::fShutdownRequested |
shutdown was requested by Ctrl-C or by RPC command
Definition at line 221 of file tmfe_rev0.h.