|
MIDAS
|
#include <tmfe.h>


Public Member Functions | |
| TMFeEquipment (const char *eqname, const char *eqfilename) | |
| virtual | ~TMFeEquipment () |
| TMFeResult | EqInit (const std::vector< std::string > &args) |
| Initialize equipment. | |
| TMFeResult | EqPreInit () |
| Initialize equipment, before EquipmentBase::Init() | |
| TMFeResult | EqPostInit () |
| Initialize equipment, after EquipmentBase::Init() | |
| TMFeResult | EqReadCommon () |
| Read TMFeEqInfo from ODB /Equipment/NAME/Common. | |
| TMFeResult | EqWriteCommon (bool create=false) |
| Write TMFeEqInfo to ODB /Equipment/NAME/Common. | |
| virtual TMFeResult | HandleInit (const std::vector< std::string > &args) |
| virtual void | HandleUsage () |
| virtual TMFeResult | HandleBeginRun (int run_number) |
| virtual TMFeResult | HandleEndRun (int run_number) |
| virtual TMFeResult | HandlePauseRun (int run_number) |
| virtual TMFeResult | HandleResumeRun (int run_number) |
| virtual TMFeResult | HandleStartAbortRun (int run_number) |
| virtual TMFeResult | HandleRpc (const char *cmd, const char *args, std::string &response) |
| virtual void | HandlePeriodic () |
| virtual bool | HandlePoll () |
| virtual void | HandlePollRead () |
| void | EqPollThread () |
| void | EqStartPollThread () |
| void | EqStopPollThread () |
| TMFeResult | ComposeEvent (char *pevent, size_t size) const |
| TMFeResult | BkInit (char *pevent, size_t size) const |
| void * | BkOpen (char *pevent, const char *bank_name, int bank_type) const |
| TMFeResult | BkClose (char *pevent, void *ptr) const |
| int | BkSize (const char *pevent) const |
| TMFeResult | EqSendEvent (const char *pevent, bool write_to_odb=true) |
| TMFeResult | EqSendEvent (const std::vector< char > &event, bool write_to_odb=true) |
| TMFeResult | EqSendEvent (const std::vector< std::vector< char > > &event, bool write_to_odb=true) |
| TMFeResult | EqSendEvent (int sg_n, const char *sg_ptr[], const size_t sg_len[], bool write_to_odb=true) |
| TMFeResult | EqWriteEventToOdb (const char *pevent) |
| TMFeResult | EqZeroStatistics () |
| TMFeResult | EqWriteStatistics () |
| TMFeResult | EqSetStatus (const char *status, const char *color) |
| TMFeEquipment (TMFE *mfe, const char *name, TMFeCommon *common) | |
| TMFeError | Init () |
| Initialize equipment. | |
| TMFeError | SendData (const char *data, int size) |
| ... | |
| TMFeError | ComposeEvent (char *pevent, int size) |
| TMFeError | BkInit (char *pevent, int size) |
| void * | BkOpen (char *pevent, const char *bank_name, int bank_type) |
| TMFeError | BkClose (char *pevent, void *ptr) |
| int | BkSize (const char *pevent) |
| TMFeError | SendEvent (const char *pevent) |
| TMFeError | ZeroStatistics () |
| TMFeError | WriteStatistics () |
| TMFeError | SetStatus (const char *status, const char *color) |
Public Member Functions inherited from TMFeRpcHandlerInterface | |
| virtual TMFeResult | HandleBinaryRpc (const char *cmd, const char *args, std::vector< char > &result) |
| virtual void | HandleBeginRun () |
| virtual void | HandleEndRun () |
| virtual void | HandlePauseRun () |
| virtual void | HandleResumeRun () |
| virtual void | HandleStartAbortRun () |
| virtual std::string | HandleRpc (const char *cmd, const char *args) |
Public Attributes | |
| std::string | fEqName |
| std::string | fEqFilename |
| bool | fEqConfEnableRpc = true |
| bool | fEqConfEnablePeriodic = true |
| bool | fEqConfEnablePoll = false |
| bool | fEqConfReadConfigFromOdb = true |
| bool | fEqConfEnabled = true |
| uint16_t | fEqConfEventID = 1 |
| uint16_t | fEqConfTriggerMask = 0 |
| std::string | fEqConfBuffer = "SYSTEM" |
| int | fEqConfType = 0 |
| int | fEqConfSource = 0 |
| std::string | fEqConfFormat = "MIDAS" |
| int | fEqConfReadOn = 0 |
| int | fEqConfPeriodMilliSec = 1000 |
| double | fEqConfEventLimit = 0 |
| uint32_t | fEqConfNumSubEvents = 0 |
| int | fEqConfLogHistory = 0 |
| bool | fEqConfHidden = false |
| int | fEqConfWriteCacheSize = 10000000 |
| bool | fEqConfReadOnlyWhenRunning = true |
| bool | fEqConfWriteEventsToOdb = false |
| double | fEqConfPeriodStatisticsSec = 1.0 |
| double | fEqConfPollSleepSec = 0.000100 |
| size_t | fEqConfMaxEventSize = 0 |
| size_t | fEqConfBufferSize = 0 |
| std::mutex | fEqMutex |
| TMFE * | fMfe = NULL |
| TMFrontend * | fFe = NULL |
| MVOdb * | fOdbEq = NULL |
| ODB Equipment/EQNAME. | |
| MVOdb * | fOdbEqCommon = NULL |
| ODB Equipment/EQNAME/Common. | |
| MVOdb * | fOdbEqSettings = NULL |
| ODB Equipment/EQNAME/Settings. | |
| MVOdb * | fOdbEqVariables = NULL |
| ODB Equipment/EQNAME/Variables. | |
| MVOdb * | fOdbEqStatistics = NULL |
| ODB Equipment/EQNAME/Statistics. | |
| TMEventBuffer * | fEqEventBuffer = NULL |
| int | fEqSerial = 0 |
| double | fEqStatEvents = 0 |
| double | fEqStatBytes = 0 |
| double | fEqStatEpS = 0 |
| double | fEqStatKBpS = 0 |
| double | fEqStatLastTime = 0 |
| double | fEqStatLastEvents = 0 |
| double | fEqStatLastBytes = 0 |
| double | fEqStatLastWrite = 0 |
| double | fEqStatNextWrite = 0 |
| double | fEqPeriodicLastCallTime = 0 |
| double | fEqPeriodicNextCallTime = 0 |
| std::atomic_bool | fEqPollThreadStarting {false} |
| std::atomic_bool | fEqPollThreadRunning {false} |
| std::atomic_bool | fEqPollThreadShutdownRequested {false} |
| std::thread * | fEqPollThread = NULL |
| std::string | fName |
| TMFeCommon * | fCommon |
| int | fBufferHandle |
| int | fSerial |
| double | fStatEvents |
| double | fStatBytes |
| double | fStatEpS |
| double | fStatKBpS |
| double | fStatLastTime |
| double | fStatLastEvents |
| double | fStatLastBytes |
Private Member Functions | |
| TMFeEquipment () | |
| TMFeResult | EqWriteEventToOdb_locked (const char *pevent) |
| TMFeEquipment::TMFeEquipment | ( | const char * | eqname, |
| const char * | eqfilename | ||
| ) |
Definition at line 1653 of file tmfe.cxx.

|
virtual |
Definition at line 1667 of file tmfe.cxx.

|
inlineprivate |
| TMFeEquipment::TMFeEquipment | ( | TMFE * | mfe, |
| const char * | name, | ||
| TMFeCommon * | common | ||
| ) |
Definition at line 611 of file tmfe_rev0.cxx.
| TMFeError TMFeEquipment::BkClose | ( | char * | pevent, |
| void * | ptr | ||
| ) |
Definition at line 780 of file tmfe_rev0.cxx.

| TMFeResult TMFeEquipment::BkClose | ( | char * | pevent, |
| void * | ptr | ||
| ) | const |
| TMFeError TMFeEquipment::BkInit | ( | char * | pevent, |
| int | size | ||
| ) |
| TMFeResult TMFeEquipment::BkInit | ( | char * | pevent, |
| size_t | size | ||
| ) | const |
| void * TMFeEquipment::BkOpen | ( | char * | pevent, |
| const char * | bank_name, | ||
| int | bank_type | ||
| ) |
Definition at line 773 of file tmfe_rev0.cxx.

| void * TMFeEquipment::BkOpen | ( | char * | pevent, |
| const char * | bank_name, | ||
| int | bank_type | ||
| ) | const |
| int TMFeEquipment::BkSize | ( | const char * | pevent | ) |
| int TMFeEquipment::BkSize | ( | const char * | pevent | ) | const |
| TMFeError TMFeEquipment::ComposeEvent | ( | char * | pevent, |
| int | size | ||
| ) |
Definition at line 727 of file tmfe_rev0.cxx.

| TMFeResult TMFeEquipment::ComposeEvent | ( | char * | pevent, |
| size_t | size | ||
| ) | const |
| TMFeResult TMFeEquipment::EqInit | ( | const std::vector< std::string > & | args | ) |
Initialize equipment.
Definition at line 1700 of file tmfe.cxx.

| void TMFeEquipment::EqPollThread | ( | ) |
Definition at line 621 of file tmfe.cxx.


| TMFeResult TMFeEquipment::EqPostInit | ( | ) |
Initialize equipment, after EquipmentBase::Init()
Definition at line 1853 of file tmfe.cxx.


| TMFeResult TMFeEquipment::EqPreInit | ( | ) |
Initialize equipment, before EquipmentBase::Init()
Definition at line 1803 of file tmfe.cxx.


| TMFeResult TMFeEquipment::EqReadCommon | ( | ) |
Read TMFeEqInfo from ODB /Equipment/NAME/Common.
Definition at line 1719 of file tmfe.cxx.


| TMFeResult TMFeEquipment::EqSendEvent | ( | const char * | pevent, |
| bool | write_to_odb = true |
||
| ) |
Definition at line 2006 of file tmfe.cxx.


| TMFeResult TMFeEquipment::EqSendEvent | ( | const std::vector< char > & | event, |
| bool | write_to_odb = true |
||
| ) |
Definition at line 2045 of file tmfe.cxx.

| TMFeResult TMFeEquipment::EqSendEvent | ( | const std::vector< std::vector< char > > & | event, |
| bool | write_to_odb = true |
||
| ) |
Definition at line 2083 of file tmfe.cxx.

| TMFeResult TMFeEquipment::EqSendEvent | ( | int | sg_n, |
| const char * | sg_ptr[], | ||
| const size_t | sg_len[], | ||
| bool | write_to_odb = true |
||
| ) |
Definition at line 2123 of file tmfe.cxx.

| TMFeResult TMFeEquipment::EqSetStatus | ( | const char * | status, |
| const char * | color | ||
| ) |
| void TMFeEquipment::EqStartPollThread | ( | ) |
Definition at line 648 of file tmfe.cxx.

| void TMFeEquipment::EqStopPollThread | ( | ) |
Definition at line 665 of file tmfe.cxx.


| TMFeResult TMFeEquipment::EqWriteCommon | ( | bool | create = false | ) |
Write TMFeEqInfo to ODB /Equipment/NAME/Common.
Definition at line 1762 of file tmfe.cxx.


| TMFeResult TMFeEquipment::EqWriteEventToOdb | ( | const char * | pevent | ) |
|
private |
Definition at line 2169 of file tmfe.cxx.


| TMFeResult TMFeEquipment::EqWriteStatistics | ( | ) |
Definition at line 1950 of file tmfe.cxx.


| TMFeResult TMFeEquipment::EqZeroStatistics | ( | ) |
Definition at line 1925 of file tmfe.cxx.


|
inlinevirtual |
Reimplemented from TMFeRpcHandlerInterface.
Reimplemented in EqRpc, EqEverything, EqTrigger, and Myfe.
Definition at line 262 of file tmfe.h.

|
inlinevirtual |
Reimplemented from TMFeRpcHandlerInterface.
Reimplemented in EqRpc, EqEverything, EqTrigger, and Myfe.
Definition at line 263 of file tmfe.h.

|
inlinevirtual |
|
inlinevirtual |
Reimplemented from TMFeRpcHandlerInterface.
Reimplemented in EqRpc, and EqEverything.
Definition at line 264 of file tmfe.h.

|
inlinevirtual |
Reimplemented in EqRandom, EqSlow, EqRare, Myfe, Myfe, EqEverything, EqPeriodic, EqPeriodic, and Myfe.
Definition at line 270 of file tmfe.h.
|
inlinevirtual |
Reimplemented in EqEverything, and EqTrigger.
Definition at line 273 of file tmfe.h.

|
inlinevirtual |
Reimplemented in EqEverything, and EqTrigger.
Definition at line 274 of file tmfe.h.

|
inlinevirtual |
Reimplemented from TMFeRpcHandlerInterface.
Reimplemented in EqRpc, and EqEverything.
Definition at line 265 of file tmfe.h.

|
inlinevirtual |
Reimplemented from TMFeRpcHandlerInterface.
Reimplemented in EqRpc, EqEverything, EqTrigger, and Myfe.
Definition at line 267 of file tmfe.h.

|
inlinevirtual |
Reimplemented from TMFeRpcHandlerInterface.
Reimplemented in EqRpc, and EqEverything.
Definition at line 266 of file tmfe.h.

|
inlinevirtual |
| TMFeError TMFeEquipment::Init | ( | ) |
Initialize equipment.
Definition at line 631 of file tmfe_rev0.cxx.

| TMFeError TMFeEquipment::SendData | ( | const char * | data, |
| int | size | ||
| ) |
...
Definition at line 738 of file tmfe_rev0.cxx.


| TMFeError TMFeEquipment::SendEvent | ( | const char * | pevent | ) |
Definition at line 756 of file tmfe_rev0.cxx.


| TMFeError TMFeEquipment::SetStatus | ( | const char * | status, |
| const char * | color | ||
| ) |
Definition at line 787 of file tmfe_rev0.cxx.


| TMFeError TMFeEquipment::WriteStatistics | ( | ) |
Definition at line 706 of file tmfe_rev0.cxx.


| TMFeError TMFeEquipment::ZeroStatistics | ( | ) |
Definition at line 692 of file tmfe_rev0.cxx.

| int TMFeEquipment::fBufferHandle |
Definition at line 140 of file tmfe_rev0.h.
| TMFeCommon* TMFeEquipment::fCommon |
Definition at line 136 of file tmfe_rev0.h.
| TMEventBuffer* TMFeEquipment::fEqEventBuffer = NULL |
| std::atomic_bool TMFeEquipment::fEqPollThreadRunning {false} |
| std::atomic_bool TMFeEquipment::fEqPollThreadShutdownRequested {false} |
| std::atomic_bool TMFeEquipment::fEqPollThreadStarting {false} |
| TMFrontend* TMFeEquipment::fFe = NULL |
| std::string TMFeEquipment::fName |
Definition at line 135 of file tmfe_rev0.h.
| MVOdb * TMFeEquipment::fOdbEqCommon = NULL |
| MVOdb * TMFeEquipment::fOdbEqSettings = NULL |
| MVOdb * TMFeEquipment::fOdbEqStatistics = NULL |
| MVOdb * TMFeEquipment::fOdbEqVariables = NULL |
| int TMFeEquipment::fSerial |
Definition at line 141 of file tmfe_rev0.h.
| double TMFeEquipment::fStatBytes |
Definition at line 152 of file tmfe_rev0.h.
| double TMFeEquipment::fStatEpS |
Definition at line 153 of file tmfe_rev0.h.
| double TMFeEquipment::fStatEvents |
Definition at line 151 of file tmfe_rev0.h.
| double TMFeEquipment::fStatKBpS |
Definition at line 154 of file tmfe_rev0.h.
| double TMFeEquipment::fStatLastBytes |
Definition at line 158 of file tmfe_rev0.h.
| double TMFeEquipment::fStatLastEvents |
Definition at line 157 of file tmfe_rev0.h.
| double TMFeEquipment::fStatLastTime |
Definition at line 156 of file tmfe_rev0.h.