Skip to content

Commit d70004b

Browse files
authored
Merge pull request #47736 from hqucms/xpog/fix-merge-mem-106x
[10_6_X] Reduce memory usage in NANO merge jobs
2 parents e964b1c + 4a899da commit d70004b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: PhysicsTools/NanoAOD/plugins/NanoAODOutputModule.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ NanoAODOutputModule::writeRun(edm::RunForOutput const& iRun) {
250250
if (hstring->str() != tos->GetString()) throw cms::Exception("LogicError", "Inconsistent nanoMetadata " + p.first + " (" + hstring->str() +")");
251251
} else {
252252
auto ostr = std::make_unique<TObjString>(hstring->str().c_str());
253-
m_file->WriteTObject(ostr.release(), p.first.c_str());
253+
m_file->WriteTObject(ostr.get(), p.first.c_str());
254254
}
255255
}
256256

Diff for: PhysicsTools/NanoAOD/plugins/SummaryTableOutputBranches.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void SummaryTableOutputBranches::makeScalarBranches(const std::vector<Col> &tabc
1010
return x.name == col.name;
1111
}) == branches.end()) {
1212
T backFillValue = 0;
13-
auto *br = tree.Branch(col.name.c_str(), &backFillValue, (col.name + "/" + rootType).c_str());
13+
auto *br = tree.Branch(col.name.c_str(), &backFillValue, (col.name + "/" + rootType).c_str(), /*bufsize=*/1024);
1414
br->SetTitle(col.doc.c_str());
1515
for (unsigned long i = 0; i < m_fills; i++)
1616
br->Fill();

0 commit comments

Comments
 (0)