Skip to content

Commit

Permalink
Fix a regex error, used online DQM Input Sources.
Browse files Browse the repository at this point in the history
End-of-runs were not detected.

(cherry picked from commit c4fa9dc)
  • Loading branch information
Dmitrijus Bugelskis committed Oct 16, 2014
1 parent 58cd2a5 commit 8d8929e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DQMServices/StreamerIO/plugins/DQMFileIterator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void DQMFileIterator::collect(bool ignoreTimers) {

directory_iterator dend;
for (directory_iterator di(runPath_); di != dend; ++di) {
const boost::regex fn_re("run(\\d+)_ls(\\d+)_([a-zA-Z0-9]+)(_.*)\\.jsn");
const boost::regex fn_re("run(\\d+)_ls(\\d+)_([a-zA-Z0-9]+)(_.*)?\\.jsn");

const std::string filename = di->path().filename().string();
const std::string fn = di->path().string();
Expand All @@ -212,7 +212,6 @@ void DQMFileIterator::collect(bool ignoreTimers) {
unsigned int run = std::stoi(result[1]);
unsigned int lumi = std::stoi(result[2]);
std::string label = result[3];
std::string leftover = result[4];

if (run != runNumber_) continue;

Expand Down

0 comments on commit 8d8929e

Please sign in to comment.