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;
117 for (UnreportedLS::const_iterator it = unreportedLS.begin(),
118 itEnd = unreportedLS.end(); it != itEnd; ++it)
121 for (StreamRecordList::const_iterator
127 (*stream)->reportLumiSectionInfo((*it), lsEntry);
129 dbFileHandler->write(lsEntry);
138 for (StreamRecordList::const_iterator
144 for (StreamRecord::FileCountPerLumiSectionMap::const_iterator
145 lscount = (*stream)->fileCountPerLS.begin(),
146 lscountEnd = (*stream)->fileCountPerLS.end();
147 lscount != lscountEnd; ++lscount)
149 unreportedLS.insert(lscount->first);
163 if (samplingHasStarted) {
172 StreamRecordList::const_iterator
178 (*it)->fileCount.calculateStatistics();
179 (*it)->volume.calculateStatistics();
180 (*it)->volume.getStats(stats);
181 if (samplingHasStarted) {
184 (*it)->bandwidth.calculateStatistics();
194 infoSpaceItems.push_back(std::make_pair(
"storedEvents", &
storedEvents_));
195 infoSpaceItems.push_back(std::make_pair(
"storedVolume", &
storedVolume_));
196 infoSpaceItems.push_back(std::make_pair(
"bandwidthToDisk", &
bandwidthToDisk_));
197 infoSpaceItems.push_back(std::make_pair(
"streamNames", &
streamNames_));
198 infoSpaceItems.push_back(std::make_pair(
"eventsPerStream", &
eventsPerStream_));
199 infoSpaceItems.push_back(std::make_pair(
"ratePerStream", &
ratePerStream_));
235 if ( statsCount != infospaceCount )
243 for (
size_t i=0;
i < statsCount; ++
i)
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_
void reportLumiSectionInfo(const uint32_t &lumiSection, std::string &str)
MonitoredQuantity allStreamsVolume_
MonitoredQuantity allStreamsFileCount_
void calculateStatistics(const utils::TimePoint_t ¤tTime=utils::getCurrentTime())
std::vector< StreamRecordPtr > StreamRecordList
xdata::UnsignedInteger32 storedEvents_
void reportAllLumiSectionInfos(DbFileHandlerPtr)
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)
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
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_