#include <DQMTopLevelFolder.h>
Classes | |
class | Record |
Public Member Functions | |
void | addDQMEvent (const DQMEventMsgView &) |
void | addDQMEvent (const I2OChain &dqmEvent) |
DQMTopLevelFolder (const DQMKey &, const QueueIDs &, const DQMProcessingParams &, DQMEventMonitorCollection &, const unsigned int expectedUpdates, AlarmHandlerPtr) | |
bool | getRecord (Record &) |
bool | isReady (const utils::TimePoint_t &now) const |
~DQMTopLevelFolder () | |
Private Types | |
typedef boost::shared_ptr < DQMFolder > | DQMFolderPtr |
typedef std::map< std::string, DQMFolderPtr > | DQMFoldersMap |
Private Member Functions | |
void | addEvent (std::auto_ptr< DQMEvent::TObjectTable >) |
size_t | populateTable (DQMEvent::TObjectTable &) const |
Private Attributes | |
AlarmHandlerPtr | alarmHandler_ |
const QueueIDs | dqmConsumers_ |
DQMEventMonitorCollection & | dqmEventMonColl_ |
DQMFoldersMap | dqmFolders_ |
const DQMKey | dqmKey_ |
const DQMProcessingParams | dqmParams_ |
const unsigned int | expectedUpdates_ |
utils::TimePoint_t | lastUpdate_ |
unsigned int | mergeCount_ |
unsigned int | nUpdates_ |
std::string | releaseTag_ |
edm::Timestamp | timeStamp_ |
uint32_t | updateNumber_ |
Static Private Attributes | |
static unsigned int | sentEvents_ |
Class holding information for one DQM event
Definition at line 36 of file DQMTopLevelFolder.h.
|
private |
Definition at line 179 of file DQMTopLevelFolder.h.
|
private |
Definition at line 180 of file DQMTopLevelFolder.h.
stor::DQMTopLevelFolder::DQMTopLevelFolder | ( | const DQMKey & | dqmKey, |
const QueueIDs & | dqmConsumers, | ||
const DQMProcessingParams & | dqmParams, | ||
DQMEventMonitorCollection & | dqmEventMonColl, | ||
const unsigned int | expectedUpdates, | ||
AlarmHandlerPtr | alarmHandler | ||
) |
Definition at line 26 of file DQMTopLevelFolder.cc.
stor::DQMTopLevelFolder::~DQMTopLevelFolder | ( | ) |
void stor::DQMTopLevelFolder::addDQMEvent | ( | const DQMEventMsgView & | view | ) |
Adds the DQMEventMsgView, but does not take ownership of the underlying data buffer. Collates the histograms with the existing DQMEventMsgView if there is one.
Definition at line 55 of file DQMTopLevelFolder.cc.
References addEvent(), stor::MonitoredQuantity::addSample(), alarmHandler_, edm::StreamDQMDeserializer::deserializeDQMEvent(), dqmEventMonColl_, stor::AlarmHandler::ERROR, expectedUpdates_, stor::utils::getCurrentTime(), stor::DQMEventMonitorCollection::getDQMEventSizeMQ(), edm::Timestamp::invalidTimestamp(), lastUpdate_, DQMEventMsgView::lumiSection(), max(), DQMEventMsgView::mergeCount(), mergeCount_, min, lumiQueryAPI::msg, nUpdates_, DQMEventMsgView::releaseTag(), releaseTag_, DQMEventMsgView::size(), DQMEventMsgView::timeStamp(), timeStamp_, DQMEventMsgView::topFolderName(), DQMEventMsgView::updateNumber(), and updateNumber_.
void stor::DQMTopLevelFolder::addDQMEvent | ( | const I2OChain & | dqmEvent | ) |
Adds the DQM event message contained in the I2OChain. It copies the data from the I2OChain in its own buffer space. Collates the histograms with the existing DQMEventMsgView if there is one.
|
private |
Definition at line 112 of file DQMTopLevelFolder.cc.
References dqmFolders_, and pos.
Referenced by addDQMEvent().
bool stor::DQMTopLevelFolder::getRecord | ( | DQMTopLevelFolder::Record & | record | ) |
Populate the record with the currently available data. Return false if no data is available.
Definition at line 135 of file DQMTopLevelFolder.cc.
References stor::MonitoredQuantity::addSample(), edm::StreamDQMSerializer::adler32_chksum(), edm::StreamDQMSerializer::bufferPointer(), stor::DQMTopLevelFolder::Record::clear(), stor::DQMProcessingParams::compressionLevelDQM_, filterCSVwithJSON::copy, edm::StreamDQMSerializer::currentEventSize(), dqmConsumers_, dqmEventMonColl_, dqmKey_, dqmParams_, stor::DQMTopLevelFolder::Record::getBuffer(), stor::DQMEventMonitorCollection::getNumberOfUpdatesMQ(), stor::DQMEventMonitorCollection::getServedDQMEventSizeMQ(), stor::DQMKey::lumiSection, mergeCount_, nUpdates_, populateTable(), releaseTag_, stor::DQMKey::runNumber, sentEvents_, edm::StreamDQMSerializer::serializeDQMEvent(), LaserTracksInput_cfi::source, asciidump::table, stor::DQMTopLevelFolder::Record::tagForEventConsumers(), timeStamp_, stor::DQMKey::topLevelFolderName, stor::DQMTopLevelFolder::Record::totalDataSize(), updateNumber_, and stor::DQMProcessingParams::useCompressionDQM_.
bool stor::DQMTopLevelFolder::isReady | ( | const utils::TimePoint_t & | now | ) | const |
Returns true if this top level folder is ready to be served. This is either the case if all expected updates have been received or when the last update was more than dqmParams.readyTimeDQM ago.
Definition at line 96 of file DQMTopLevelFolder.cc.
References stor::MonitoredQuantity::addSample(), dqmEventMonColl_, dqmParams_, expectedUpdates_, stor::DQMEventMonitorCollection::getNumberOfCompleteUpdatesMQ(), lastUpdate_, nUpdates_, and stor::DQMProcessingParams::readyTimeDQM_.
|
private |
Definition at line 198 of file DQMTopLevelFolder.cc.
References dqmFolders_, and pos.
Referenced by getRecord().
|
private |
Definition at line 170 of file DQMTopLevelFolder.h.
Referenced by addDQMEvent().
|
private |
Definition at line 166 of file DQMTopLevelFolder.h.
Referenced by getRecord().
|
private |
Definition at line 168 of file DQMTopLevelFolder.h.
Referenced by addDQMEvent(), getRecord(), and isReady().
|
private |
Definition at line 181 of file DQMTopLevelFolder.h.
Referenced by addEvent(), populateTable(), and ~DQMTopLevelFolder().
|
private |
Definition at line 165 of file DQMTopLevelFolder.h.
Referenced by getRecord().
|
private |
Definition at line 167 of file DQMTopLevelFolder.h.
Referenced by getRecord(), and isReady().
|
private |
Definition at line 169 of file DQMTopLevelFolder.h.
Referenced by addDQMEvent(), and isReady().
|
private |
Definition at line 174 of file DQMTopLevelFolder.h.
Referenced by addDQMEvent(), and isReady().
|
private |
Definition at line 173 of file DQMTopLevelFolder.h.
Referenced by addDQMEvent(), and getRecord().
|
private |
Definition at line 172 of file DQMTopLevelFolder.h.
Referenced by addDQMEvent(), getRecord(), and isReady().
|
private |
Definition at line 175 of file DQMTopLevelFolder.h.
Referenced by addDQMEvent(), and getRecord().
|
staticprivate |
Definition at line 183 of file DQMTopLevelFolder.h.
Referenced by getRecord().
|
private |
Definition at line 177 of file DQMTopLevelFolder.h.
Referenced by addDQMEvent(), and getRecord().
|
private |
Definition at line 176 of file DQMTopLevelFolder.h.
Referenced by addDQMEvent(), and getRecord().