Skip to content

Commit

Permalink
Merge pull request #12539 from dmitrijus/mr_harv_80x
Browse files Browse the repository at this point in the history
Fix saveJobReport in DQMFileSaver.
  • Loading branch information
cmsbuild committed Nov 25, 2015
2 parents ab14dcb + a240303 commit d2d0082
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions DQMServices/Components/src/DQMFileSaver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ DQMFileSaver::saveForOffline(const std::string &workflow, int run, int lumi) con
(DQMStore::SaveReferenceTag) saveReference_,
saveReferenceQMin_,
fileUpdate_ ? "UPDATE" : "RECREATE");

// save the JobReport
saveJobReport(filename);
}
else // save EventInfo folders for luminosity sections
{
Expand Down Expand Up @@ -154,6 +157,7 @@ DQMFileSaver::saveForOffline(const std::string &workflow, int run, int lumi) con
}
}
}

}

static void
Expand Down Expand Up @@ -824,12 +828,6 @@ DQMFileSaver::endJob(void)
<< "Internal error. Can only save files at the end of the"
<< " job in Offline mode.";
}

// save JobReport once per job
char suffix[64];
sprintf(suffix, "R%09d", irun_.load());
std::string filename = onlineOfflineFileName(fileBaseName_, suffix, workflow_, child_, fileFormat_);
saveJobReport(filename);
}

void
Expand Down

0 comments on commit d2d0082

Please sign in to comment.