#include <DQMEventStore.h>
Stores and collates DQM events Note that this code is not thread safe as it uses a class wide temporary buffer to convert I2OChains into DQMEventMsgViews.
Definition at line 42 of file DQMEventStore.h.
typedef std::map<DQMKey, DQMTopLevelFolderPtr> stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::DQMTopLevelFolderMap [private] |
Definition at line 121 of file DQMEventStore.h.
stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::DQMEventStore | ( | xdaq::ApplicationDescriptor * | , |
DQMEventQueueCollectionPtr | , | ||
DQMEventMonitorCollection & | , | ||
ConnectionType * | , | ||
size_t(ConnectionType::*)() const | getExpectedUpdatesCount, | ||
StateMachineType * | , | ||
void(StateMachineType::*)(xcept::Exception &) | moveToFailedState, | ||
AlarmHandlerPtr | |||
) |
stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::~DQMEventStore | ( | ) |
stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::DQMEventStore | ( | DQMEventStore< EventType, ConnectionType, StateMachineType > const & | ) | [private] |
void stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::addDQMEvent | ( | EventType const & | ) |
Adds the DQM event found in EventType to the store. If a matching DQMEventRecord is found, the histograms are added unless collateDQM is false.
Referenced by stor::DQMEventProcessor::processNextDQMEvent().
void stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::addDQMEventToReadyToServe | ( | EventType const & | ) | [private] |
void stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::addDQMEventToStore | ( | EventType const & | ) | [private] |
void stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::clear | ( | ) |
Clears all data hold by the DQM event store
Referenced by stor::DQMEventProcessor::processNextDQMEvent().
bool stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::doProcessCompletedTopLevelFolders | ( | ) | [inline] |
Definition at line 92 of file DQMEventStore.h.
{ return processCompletedTopLevelFolders_; }
bool stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::empty | ( | void | ) | [inline] |
Checks if the DQM event store is empty
Definition at line 86 of file DQMEventStore.h.
{ return store_.empty(); }
DQMEventMsgView stor::DQMEventStore< I2OChain, DataSenderMonitorCollection, AlarmHandler >::getDQMEventView | ( | I2OChain const & | dqmEvent | ) | [private] |
Definition at line 24 of file DQMEventProcessor.cc.
References stor::I2OChain::copyFragmentsIntoBuffer().
{ tempEventArea_.clear(); dqmEvent.copyFragmentsIntoBuffer(tempEventArea_); return DQMEventMsgView(&tempEventArea_[0]); }
DQMEventMsgView stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::getDQMEventView | ( | EventType const & | ) | [private] |
bool stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::getNextReadyTopLevelFolder | ( | DQMTopLevelFolderPtr & | ) | [private] |
bool stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::handleNextCompletedTopLevelFolder | ( | ) | [private] |
DQMTopLevelFolderPtr stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::makeDQMTopLevelFolder | ( | EventType const & | ) | [private] |
void stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::moveToFailedState | ( | xcept::Exception & | sentinelException | ) | [inline] |
Definition at line 89 of file DQMEventStore.h.
{ (stateMachineType_->*moveToFailedState_)(sentinelException); }
DQMEventStore& stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::operator= | ( | DQMEventStore< EventType, ConnectionType, StateMachineType > const & | ) | [private] |
static void stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::processCompletedTopLevelFolders | ( | void * | arg | ) | [static, private] |
void stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::purge | ( | ) |
Process completed top level folders, then clear the DQM event store
Referenced by stor::DQMEventProcessor::endOfRun().
void stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::setParameters | ( | DQMProcessingParams const & | ) |
Set the DQMProcessingParams to be used. This clears everything in the store.
Referenced by stor::DQMEventProcessor::processNextDQMEvent().
void stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::stopProcessingCompletedTopLevelFolders | ( | ) | [private] |
AlarmHandlerPtr stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::alarmHandler_ [private] |
Definition at line 119 of file DQMEventStore.h.
xdaq::ApplicationDescriptor* stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::appDescriptor_ [private] |
Definition at line 111 of file DQMEventStore.h.
TThread* stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::completedFolderThread_ [private] |
Definition at line 125 of file DQMEventStore.h.
ConnectionType* stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::connectionType_ [private] |
Definition at line 115 of file DQMEventStore.h.
DQMEventMonitorCollection& stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::dqmEventMonColl_ [private] |
Definition at line 114 of file DQMEventStore.h.
DQMEventQueueCollectionPtr stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::dqmEventQueueCollection_ [private] |
Definition at line 113 of file DQMEventStore.h.
DQMProcessingParams stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::dqmParams_ [private] |
Definition at line 112 of file DQMEventStore.h.
size_t(ConnectionType::* stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::getExpectedUpdatesCount_)() const [private] |
Definition at line 116 of file DQMEventStore.h.
void(StateMachineType::* stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::moveToFailedState_)(xcept::Exception &) [private] |
Definition at line 118 of file DQMEventStore.h.
Referenced by stor::DQMEventStore< DQMEventMsg, EventRetriever< RegInfo, QueueCollectionPtr >, StateMachine >::moveToFailedState().
bool stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::processCompletedTopLevelFolders_ [private] |
Definition at line 126 of file DQMEventStore.h.
Referenced by stor::DQMEventStore< DQMEventMsg, EventRetriever< RegInfo, QueueCollectionPtr >, StateMachine >::doProcessCompletedTopLevelFolders().
StateMachineType* stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::stateMachineType_ [private] |
Definition at line 117 of file DQMEventStore.h.
Referenced by stor::DQMEventStore< DQMEventMsg, EventRetriever< RegInfo, QueueCollectionPtr >, StateMachine >::moveToFailedState().
DQMTopLevelFolderMap stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::store_ [private] |
Definition at line 122 of file DQMEventStore.h.
Referenced by stor::DQMEventStore< DQMEventMsg, EventRetriever< RegInfo, QueueCollectionPtr >, StateMachine >::empty().
boost::mutex stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::storeMutex_ [static, private] |
Definition at line 123 of file DQMEventStore.h.
std::vector<unsigned char> stor::DQMEventStore< EventType, ConnectionType, StateMachineType >::tempEventArea_ [private] |
Definition at line 128 of file DQMEventStore.h.