Skip to content

Commit

Permalink
Merge pull request #27649 from wddgit/bugFixSetRunNumberForEachLumi
Browse files Browse the repository at this point in the history
Bug fix for setRunNumberForEachLumi
  • Loading branch information
cmsbuild authored Jul 31, 2019
2 parents 3042235 + e964ed9 commit d5fa25c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions IOPool/Input/src/RootFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1466,8 +1466,9 @@ namespace edm {

std::shared_ptr<RunAuxiliary> RootFile::readRunAuxiliary_() {
if (runHelper_->fakeNewRun()) {
runHelper_->overrideRunNumber(savedRunAuxiliary_->id());
return savedRunAuxiliary();
auto runAuxiliary = std::make_shared<RunAuxiliary>(*savedRunAuxiliary());
runHelper_->overrideRunNumber(runAuxiliary->id());
return runAuxiliary;
}
assert(indexIntoFileIter_ != indexIntoFileEnd_);
assert(indexIntoFileIter_.getEntryType() == IndexIntoFile::kRun);
Expand Down
5 changes: 5 additions & 0 deletions IOPool/Input/test/RunPerLumiTest_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
fileNames = cms.untracked.vstring('file:RunPerLumiTest.root')
)

process.output = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('OutputRunPerLumiTest.root')
)

process.p = cms.Path(process.OtherThing*process.Analysis)

process.e = cms.EndPath(process.output)

0 comments on commit d5fa25c

Please sign in to comment.