Skip to content

Commit b54c06f

Browse files
committed
Use the EventLoop default
1 parent 650ff32 commit b54c06f

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

test/k4FWCoreTest/options/ExampleFunctionalProducerHist.py

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,12 @@
5858
root_hist_svc.FileName = "functional_producer_hist.root"
5959

6060

61-
if not multithreaded:
62-
app = ApplicationMgr(
63-
TopAlg=[producer1, producer2],
64-
EvtSel="NONE",
65-
EvtMax=10,
66-
ExtSvc=[root_hist_svc] + ([whiteboard] if multithreaded else []),
67-
OutputLevel=INFO,
68-
HistogramPersistency="ROOT",
69-
)
70-
else:
71-
app = ApplicationMgr(
72-
TopAlg=[producer1, producer2],
73-
EvtSel="NONE",
74-
EvtMax=10,
75-
ExtSvc=[root_hist_svc] + ([whiteboard] if multithreaded else []),
76-
OutputLevel=INFO,
77-
HistogramPersistency="ROOT",
78-
EventLoop=slimeventloopmgr,
79-
)
61+
app = ApplicationMgr(
62+
TopAlg=[producer1, producer2],
63+
EvtSel="NONE",
64+
EvtMax=10,
65+
ExtSvc=[root_hist_svc] + ([whiteboard] if multithreaded else []),
66+
OutputLevel=INFO,
67+
HistogramPersistency="ROOT",
68+
EventLoop="EventLoopMgr" if not multithreaded else slimeventloopmgr,
69+
)

test/k4FWCoreTest/src/components/ExampleFunctionalProducerHist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct ExampleFunctionalProducerHist final : k4FWCore::Producer<edm4hep::MCParti
3737
// Not thread-safe!
3838
Rndm::Numbers rndu(randSvc(), Rndm::Flat(0, 1));
3939
++m_histograms[rndu()];
40-
// Return an empty collection since we don't care about the collection
40+
// Return an empty collection since we don't care about the collection for this example
4141
return {};
4242
}
4343

0 commit comments

Comments
 (0)