Skip to content

Commit 16c83b1

Browse files
authored
Merge pull request #47729 from hqucms/xpog/fix-merge-mem
Reduce memory usage in NANO merge jobs
2 parents 8c8fe33 + 43a366e commit 16c83b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PhysicsTools/NanoAOD/plugins/NanoAODOutputModule.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void NanoAODOutputModule::writeRun(edm::RunForOutput const& iRun) {
273273
throw cms::Exception("LogicError", "Inconsistent nanoMetadata " + p.first + " (" + hstring->str() + ")");
274274
} else {
275275
auto ostr = std::make_unique<TObjString>(hstring->str().c_str());
276-
m_file->WriteTObject(ostr.release(), p.first.c_str());
276+
m_file->WriteTObject(ostr.get(), p.first.c_str());
277277
}
278278
}
279279

PhysicsTools/NanoAOD/plugins/SummaryTableOutputBranches.cc

Lines changed: 1 addition & 1 deletion
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)