File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
PhysicsTools/NanoAOD/plugins Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4545
4646#include < iostream>
4747
48+ #include " tbb/task_arena.h"
49+
4850class NanoAODOutputModule : public edm ::one::OutputModule<> {
4951public:
5052 NanoAODOutputModule (edm::ParameterSet const & pset);
@@ -216,7 +218,7 @@ void NanoAODOutputModule::write(edm::EventForOutput const& iEvent) {
216218 // fill event branches
217219 for (auto & t : m_evstrings)
218220 t.fill (iEvent, *m_tree);
219- m_tree->Fill ();
221+ tbb::this_task_arena::isolate ([&] { m_tree->Fill (); } );
220222
221223 m_processHistoryRegistry.registerProcessHistory (iEvent.processHistory ());
222224}
@@ -230,7 +232,7 @@ void NanoAODOutputModule::writeLuminosityBlock(edm::LuminosityBlockForOutput con
230232 for (auto & t : m_lumiTables)
231233 t.fill (iLumi, *m_lumiTree);
232234
233- m_lumiTree->Fill ();
235+ tbb::this_task_arena::isolate ([&] { m_lumiTree->Fill (); } );
234236
235237 m_processHistoryRegistry.registerProcessHistory (iLumi.processHistory ());
236238}
@@ -262,7 +264,7 @@ void NanoAODOutputModule::writeRun(edm::RunForOutput const& iRun) {
262264 }
263265 }
264266
265- m_runTree->Fill ();
267+ tbb::this_task_arena::isolate ([&] { m_runTree->Fill (); } );
266268
267269 m_processHistoryRegistry.registerProcessHistory (iRun.processHistory ());
268270}
You can’t perform that action at this time.
0 commit comments