19 updateInterval_(updateInterval),
21 allStreamsFileCount_(updateInterval, timeWindowForRecentResults_),
22 allStreamsVolume_(updateInterval, timeWindowForRecentResults_),
23 allStreamsBandwidth_(updateInterval, timeWindowForRecentResults_)
48 StreamRecordList::const_iterator
69 const uint32_t lumiSection
72 fileCount.addSample(1);
73 parentCollection->allStreamsFileCount_.addSample(1);
74 ++fileCountPerLS[lumiSection];
80 size = size / (1024 * 1024);
88 const uint32_t& lumiSection,
92 std::ostringstream
msg;
95 msg <<
"LS:" << lumiSection;
98 unsigned int count = 0;
99 FileCountPerLumiSectionMap::iterator
pos = fileCountPerLS.find(lumiSection);
100 if ( pos != fileCountPerLS.end() )
103 fileCountPerLS.erase(pos);
105 msg <<
"\t" << streamName <<
":" <<
count;
123 for (UnreportedLS::const_iterator it = unreportedLS.begin(),
124 itEnd = unreportedLS.end(); it != itEnd; ++it)
127 bool filesWritten =
false;
129 for (StreamRecordList::const_iterator
135 if ( (*stream)->reportLumiSectionInfo((*it), lsEntry) )
138 lsEntry +=
"\tEoLS:0";
139 dbFileHandler->write(lsEntry);
141 if (filesWritten) ++(endOfRunReport->lsCountWithFiles);
142 endOfRunReport->updateLatestWrittenLumiSection(*it);
151 for (StreamRecordList::const_iterator
157 for (StreamRecord::FileCountPerLumiSectionMap::const_iterator
158 lscount = (*stream)->fileCountPerLS.begin(),
159 lscountEnd = (*stream)->fileCountPerLS.end();
160 lscount != lscountEnd; ++lscount)
162 unreportedLS.insert(lscount->first);
176 if (samplingHasStarted) {
185 StreamRecordList::const_iterator
191 (*it)->fileCount.calculateStatistics();
192 (*it)->volume.calculateStatistics();
193 (*it)->volume.getStats(stats);
194 if (samplingHasStarted) {
197 (*it)->bandwidth.calculateStatistics();
207 infoSpaceItems.push_back(std::make_pair(
"storedEvents", &
storedEvents_));
208 infoSpaceItems.push_back(std::make_pair(
"storedVolume", &
storedVolume_));
209 infoSpaceItems.push_back(std::make_pair(
"bandwidthToDisk", &
bandwidthToDisk_));
210 infoSpaceItems.push_back(std::make_pair(
"streamNames", &
streamNames_));
211 infoSpaceItems.push_back(std::make_pair(
"eventsPerStream", &
eventsPerStream_));
212 infoSpaceItems.push_back(std::make_pair(
"ratePerStream", &
ratePerStream_));
256 StreamRecordList::const_iterator
263 (*it)->volume.getStats(streamVolumeStats);
265 (*it)->bandwidth.getStats(streamBandwidthStats);
268 static_cast<xdata::String>( (*it)->streamName )
272 static_cast<xdata::UnsignedInteger32>(
278 static_cast<xdata::Double>(
284 static_cast<xdata::Double>(
double getValueRate(DataSetType t=FULL) const
virtual void do_updateInfoSpaceItems()
StreamsMonitorCollection * parentCollection
void addSample(const double &value=1)
uint64_t getSampleCount(DataSetType t=FULL) const
const utils::Duration_t timeWindowForRecentResults_
xdata::Vector< xdata::UnsignedInteger32 > eventsPerStream_
void getStats(Stats &stats) const
xdata::Vector< xdata::String > streamNames_
xdata::Double storedVolume_
boost::shared_ptr< EndOfRunReport > EndOfRunReportPtr
MonitoredQuantity allStreamsVolume_
MonitoredQuantity allStreamsFileCount_
void calculateStatistics(const utils::TimePoint_t ¤tTime=utils::getCurrentTime())
std::vector< StreamRecordPtr > StreamRecordList
xdata::UnsignedInteger32 storedEvents_
boost::posix_time::time_duration Duration_t
MonitoredQuantity allStreamsBandwidth_
boost::shared_ptr< DbFileHandler > DbFileHandlerPtr
void addSizeInBytes(double)
boost::shared_ptr< StreamRecord > StreamRecordPtr
xdata::Double bandwidthToDisk_
double getSampleRate(DataSetType t=FULL) const
void incrementFileCount(const uint32_t lumiSection)
void reportAllLumiSectionInfos(DbFileHandlerPtr, EndOfRunReportPtr)
virtual void do_appendInfoSpaceItems(InfoSpaceItems &)
StreamRecordList streamRecords_
virtual void do_calculateStatistics()
void getListOfAllUnreportedLS(UnreportedLS &)
xdata::Vector< xdata::Double > ratePerStream_
std::vector< std::pair< std::string, xdata::Serializable * > > InfoSpaceItems
double getLastValueRate() const
void getStreamRecords(StreamRecordList &) const
bool streamRecordsExist() const
bool reportLumiSectionInfo(const uint32_t &lumiSection, std::string &str)
std::set< uint32_t > UnreportedLS
StreamsMonitorCollection(const utils::Duration_t &updateInterval)
double getValueSum(DataSetType t=FULL) const
StreamRecordPtr getNewStreamRecord()
tuple size
Write out results.
boost::mutex streamRecordsMutex_
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
xdata::Vector< xdata::Double > bandwidthPerStream_
const utils::Duration_t updateInterval_