Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix runIsComplete behaviour for express processing #7872

Merged
merged 1 commit into from Feb 23, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions DQMServices/Components/src/DQMFileSaver.cc
Expand Up @@ -98,6 +98,25 @@ DQMFileSaver::saveForOffline(const std::string &workflow, int run, int lumi) con

if (lumi == 0) // save for run
{
// set run end flag
dbe_->cd();
dbe_->setCurrentFolder("Info/ProvInfo");

// do this, because ProvInfo is not yet run in offline DQM
MonitorElement* me = dbe_->get("Info/ProvInfo/CMSSW");
if (!me) me = dbe_->bookString("CMSSW", edm::getReleaseVersion().c_str() );

me = dbe_->get("Info/ProvInfo/runIsComplete");
if (!me) me = dbe_->bookFloat("runIsComplete");

if (me)
{
if (runIsComplete_)
me->Fill(1.);
else
me->Fill(0.);
}

dbe_->save(filename,
"",
"^(Reference/)?([^/]+)",
Expand Down