19 updateInterval_(updateInterval),
21 allStreamsFileCount_(updateInterval, timeWindowForRecentResults_),
22 allStreamsVolume_(updateInterval, timeWindowForRecentResults_),
23 allStreamsBandwidth_(updateInterval, timeWindowForRecentResults_)
48 StreamRecordList::const_iterator
61 const std::string&
label,
65 boost::mutex::scoped_lock sl(streamRecordsMutex_);
68 list.reserve(streamRecords_.size());
71 StreamRecordList::const_iterator
72 it = streamRecords_.begin(), itEnd = streamRecords_.end();
77 if ( (*it)->outputModuleLabel == label )
80 return ( ! list.empty() );
94 const uint32_t lumiSection
97 fileCount.addSample(1);
98 parentCollection->allStreamsFileCount_.addSample(1);
99 ++fileCountPerLS[lumiSection];
105 size = size / (1024 * 1024);
113 const uint32_t& lumiSection,
117 std::ostringstream
msg;
120 msg <<
"LS:" << lumiSection;
123 unsigned int count = 0;
124 FileCountPerLumiSectionMap::iterator
pos = fileCountPerLS.find(lumiSection);
125 if ( pos != fileCountPerLS.end() )
128 fileCountPerLS.erase(pos);
130 msg <<
"\t" << streamName <<
":" <<
count;
148 for (UnreportedLS::const_iterator it = unreportedLS.begin(),
149 itEnd = unreportedLS.end(); it != itEnd; ++it)
152 bool filesWritten =
false;
154 for (StreamRecordList::const_iterator
160 if ( (*stream)->reportLumiSectionInfo((*it), lsEntry) )
163 lsEntry +=
"\tEoLS:0";
164 dbFileHandler->write(lsEntry);
166 if (filesWritten) ++(endOfRunReport->lsCountWithFiles);
167 endOfRunReport->updateLatestWrittenLumiSection(*it);
176 for (StreamRecordList::const_iterator
182 for (StreamRecord::FileCountPerLumiSectionMap::const_iterator
183 lscount = (*stream)->fileCountPerLS.begin(),
184 lscountEnd = (*stream)->fileCountPerLS.end();
185 lscount != lscountEnd; ++lscount)
187 unreportedLS.insert(lscount->first);
201 if (samplingHasStarted) {
210 StreamRecordList::const_iterator
216 (*it)->fileCount.calculateStatistics();
217 (*it)->volume.calculateStatistics();
218 (*it)->volume.getStats(stats);
219 if (samplingHasStarted) {
222 (*it)->bandwidth.calculateStatistics();
232 infoSpaceItems.push_back(std::make_pair(
"storedEvents", &
storedEvents_));
233 infoSpaceItems.push_back(std::make_pair(
"storedVolume", &
storedVolume_));
234 infoSpaceItems.push_back(std::make_pair(
"bandwidthToDisk", &
bandwidthToDisk_));
235 infoSpaceItems.push_back(std::make_pair(
"streamNames", &
streamNames_));
236 infoSpaceItems.push_back(std::make_pair(
"eventsPerStream", &
eventsPerStream_));
237 infoSpaceItems.push_back(std::make_pair(
"ratePerStream", &
ratePerStream_));
281 StreamRecordList::const_iterator
288 (*it)->volume.getStats(streamVolumeStats);
290 (*it)->bandwidth.getStats(streamBandwidthStats);
293 static_cast<xdata::String>( (*it)->streamName )
297 static_cast<xdata::UnsignedInteger32>(
303 static_cast<xdata::Double>(
309 static_cast<xdata::Double>(
double getValueRate(DataSetType t=FULL) const
virtual void do_updateInfoSpaceItems()
StreamsMonitorCollection * parentCollection
void addSample(const double &value=1)
bool getStreamRecordsForOutputModuleLabel(const std::string &, StreamRecordList &) const
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_