Public Member Functions | |
OnMonProdIPC (int m, const char *hdl) | |
int | HandleRequests () |
void | PostResources (unsigned int run, unsigned int subrun, unsigned int event) |
TH1F * | RequestTH1F (const char *n) |
TH2F * | RequestTH2F (const char *n) |
int | RequestHistoList (std::list< std::string > &hlist) |
int | RequestCurrentWatchList (std::vector< int > &db, std::vector< int > &dcm, std::vector< int > &feb, std::vector< int > &pix) |
int | RequestAddToWatchList (int db, int dcm, int feb, int pix) |
int | RequestRemoveFromWatchList (int db, int dcm, int feb, int pix) |
void | ResetAllLocks () |
Public Attributes | |
int | fMode |
Client or server? More... | |
int | fShmId |
ID of shared memory segment. More... | |
key_t * | fKey |
Shared memory key. More... | |
char | fShmHdl [kHdlSz] |
Shared memory handle. More... | |
void * | fShm |
Pointer to shared segment. More... | |
struct IPCBlock * | fIPC |
Pointer to struct. More... | |
Static Public Attributes | |
static const int | kHdlSz = sizeof(key_t)+1 |
Private Member Functions | |
TH1F * | FindTH1F (const char *nm) |
TH2F * | FindTH2F (const char *nm) |
void | HistoList (std::list< std::string > &hlist) |
void | AddToWatchList (int db, int dcm, int feb, int pix) |
void | RemoveFromWatchList (int db, int dcm, int feb, int pix) |
void | CurrentWatchList (std::vector< int > &db, std::vector< int > &dcm, std::vector< int > &feb, std::vector< int > &pix) |
A class that knows how to serve monitoring histograms
Definition at line 48 of file OnMonProd_module.cc.
OnMonProdIPC::OnMonProdIPC | ( | int | m, |
const char * | hdl | ||
) |
Definition at line 119 of file OnMonProd_module.cc.
Reimplemented from om::IPC.
Definition at line 129 of file OnMonProd_module.cc.
References om::WatchListManager::Add(), and om::WatchListManager::Instance().
|
privatevirtual |
Reimplemented from om::IPC.
Definition at line 135 of file OnMonProd_module.cc.
References om::WatchListManager::GetList(), and om::WatchListManager::Instance().
|
privatevirtual |
Reimplemented from om::IPC.
Definition at line 120 of file OnMonProd_module.cc.
References om::HistoSet::FindTH1F(), and om::HistoSet::Instance().
|
privatevirtual |
Reimplemented from om::IPC.
Definition at line 123 of file OnMonProd_module.cc.
References om::HistoSet::FindTH2F(), and om::HistoSet::Instance().
|
inherited |
Method for server application check to see if there are any requests pending
Definition at line 516 of file IPC.cxx.
References om::IPC::HandleChangeWatchList(), om::IPC::HandleCurrentWatchListRequests(), om::IPC::HandleHistogramRequests(), and om::IPC::HandleHistoListRequests().
Referenced by om::OnMonProd::analyze().
|
privatevirtual |
Reimplemented from om::IPC.
Definition at line 126 of file OnMonProd_module.cc.
References om::HistoSet::GetNames(), and om::HistoSet::Instance().
Post information about producer resource usage
Definition at line 528 of file IPC.cxx.
References om::ProducerResources::fCLOCK, om::ProducerResources::fCPU, om::ProducerResources::fEvent, om::IPC::fIPC, om::ProducerResources::fPID, om::IPCBlock::fProcessResources, om::ProducerResources::fRSIZE, om::ProducerResources::fRun, om::ProducerResources::fSTIME, om::ProducerResources::fSubrun, om::ProducerResources::fUTIME, updateRunHistoryTables::run, and getGoodRuns4SAM::subrun.
Referenced by om::OnMonProd::analyze().
Reimplemented from om::IPC.
Definition at line 132 of file OnMonProd_module.cc.
References om::WatchListManager::Instance(), and om::WatchListManager::Remove().
Client tells server to add item to the watchlist db, dcm, feb, pix = hardware to be added
sel | = selected item to be removed |
Definition at line 346 of file IPC.cxx.
References om::cerr, febshutoff_auto::db, febshutoff_auto::dcm, allTimeWatchdog::endl, om::ChangeWatchList::fAddOrRemove, om::IPCBlock::fChangeWatchList, om::ChangeWatchList::fClientLock, om::ChangeWatchList::fDB, om::ChangeWatchList::fDCM, APDHVSetting::feb, om::ChangeWatchList::fFEB, om::IPC::fIPC, om::IPC::fMode, om::ChangeWatchList::fPIX, om::ChangeWatchList::fRequestPending, om::ChangeWatchList::fServerLock, MECModelEnuComparisons::i, om::kIPC_SERVER, kSleep, and kWait.
Referenced by om::WatchListBox::HandleAddToList().
|
inherited |
Client call to request the current watchlist
Definition at line 284 of file IPC.cxx.
References om::cerr, allTimeWatchdog::endl, om::WatchList::fClientLock, om::WatchList::fDB, om::WatchList::fDCM, om::WatchList::fFEB, om::IPC::fIPC, om::IPC::fMode, om::WatchList::fN, om::WatchList::fPIX, om::WatchList::fRequestPending, om::WatchList::fServerLock, om::IPCBlock::fWatchList, MECModelEnuComparisons::i, om::kIPC_SERVER, kSleep, and kWait.
|
inherited |
Client call to request the histogram list
Definition at line 225 of file IPC.cxx.
References om::cerr, allTimeWatchdog::endl, om::HistogramList::fClientLock, om::IPCBlock::fHistoList, om::IPC::fIPC, om::IPC::fMode, om::HistogramList::fN, om::HistogramList::fName, om::HistogramList::fRequestPending, om::HistogramList::fServerLock, MECModelEnuComparisons::i, om::kIPC_SERVER, kSleep, and kWait.
Referenced by om::HistoSHM::GetHistogramList().
Definition at line 402 of file IPC.cxx.
References om::cerr, febshutoff_auto::db, febshutoff_auto::dcm, allTimeWatchdog::endl, om::ChangeWatchList::fAddOrRemove, om::IPCBlock::fChangeWatchList, om::ChangeWatchList::fClientLock, om::ChangeWatchList::fDB, om::ChangeWatchList::fDCM, APDHVSetting::feb, om::ChangeWatchList::fFEB, om::IPC::fIPC, om::IPC::fMode, om::ChangeWatchList::fPIX, om::ChangeWatchList::fRequestPending, om::ChangeWatchList::fServerLock, MECModelEnuComparisons::i, om::kIPC_SERVER, kSleep, and kWait.
|
inherited |
Client calls to request a histogram from the server.
n | - name of histogram to retrieve |
Definition at line 109 of file IPC.cxx.
References om::cerr, allTimeWatchdog::endl, om::ProducerHistogram::fClientLock, om::IPCBlock::fHistogram, om::IPC::fIPC, om::IPC::fMode, om::ProducerHistogram::fRequestPending, om::ProducerHistogram::fServerLock, make_syst_table_plots::h, MECModelEnuComparisons::i, om::kIPC_SERVER, kSleep, kWait, om::IPC::Request(), and om::IPC::UnpackTH1F().
Referenced by om::HistoSHM::GetTH1FCopy().
|
inherited |
Definition at line 165 of file IPC.cxx.
References om::cerr, allTimeWatchdog::endl, om::ProducerHistogram::fClientLock, om::IPCBlock::fHistogram, om::IPC::fIPC, om::IPC::fMode, om::ProducerHistogram::fRequestPending, om::ProducerHistogram::fServerLock, make_syst_table_plots::h, MECModelEnuComparisons::i, om::kIPC_SERVER, kSleep, kWait, om::IPC::Request(), and om::IPC::UnpackTH2F().
Referenced by om::HistoSHM::GetTH2FCopy().
|
inherited |
For "emergency use" only. Clear all locks in the event they get stuck.
Definition at line 843 of file IPC.cxx.
References om::IPCBlock::fChangeWatchList, om::HistogramList::fClientLock, om::WatchList::fClientLock, om::ProducerHistogram::fClientLock, om::ChangeWatchList::fClientLock, om::IPCBlock::fHistogram, om::IPCBlock::fHistoList, om::ProducerHistogram::fHistoOK, om::IPC::fIPC, om::HistogramList::fRequestPending, om::WatchList::fRequestPending, om::ProducerHistogram::fRequestPending, om::ChangeWatchList::fRequestPending, om::HistogramList::fServerLock, om::WatchList::fServerLock, om::ProducerHistogram::fServerLock, om::ChangeWatchList::fServerLock, and om::IPCBlock::fWatchList.
Referenced by om::MenuBar::ResetLocks().
|
inherited |
Pointer to struct.
Definition at line 151 of file IPC.h.
Referenced by om::HistoSHM::GetStatus(), om::IPC::HandleChangeWatchList(), om::IPC::HandleCurrentWatchListRequests(), om::IPC::HandleHistogramRequests(), om::IPC::HandleHistoListRequests(), om::IPC::IPC(), om::IPC::PostResources(), om::IPC::Publish1DHistogram(), om::IPC::Publish2DHistogram(), om::IPC::Request(), om::IPC::RequestAddToWatchList(), om::IPC::RequestCurrentWatchList(), om::IPC::RequestHistoList(), om::IPC::RequestRemoveFromWatchList(), om::IPC::RequestTH1F(), om::IPC::RequestTH2F(), om::IPC::ResetAllLocks(), om::IPC::UnpackTH1F(), om::IPC::UnpackTH2F(), and om::IPC::~IPC().
|
inherited |
|
inherited |
Client or server?
Definition at line 146 of file IPC.h.
Referenced by om::IPC::HandleChangeWatchList(), om::IPC::HandleCurrentWatchListRequests(), om::IPC::HandleHistogramRequests(), om::IPC::HandleHistoListRequests(), om::IPC::IPC(), om::IPC::RequestAddToWatchList(), om::IPC::RequestCurrentWatchList(), om::IPC::RequestHistoList(), om::IPC::RequestRemoveFromWatchList(), om::IPC::RequestTH1F(), om::IPC::RequestTH2F(), and om::IPC::~IPC().
|
inherited |
Pointer to shared segment.
Definition at line 150 of file IPC.h.
Referenced by om::IPC::IPC(), and om::IPC::~IPC().
|
inherited |
Shared memory handle.
Definition at line 149 of file IPC.h.
Referenced by om::HistoSHM::GetStatus(), and om::IPC::IPC().
|
inherited |
ID of shared memory segment.
Definition at line 147 of file IPC.h.
Referenced by om::IPC::IPC(), and om::IPC::~IPC().
|
staticinherited |
Definition at line 145 of file IPC.h.
Referenced by om::IPC::IPC().