Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminhuth committed Jan 10, 2025
1 parent ffcc912 commit a83827e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Examples/Python/tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,10 @@ def test_edm4hep_tracks_reader(tmp_path):
def test_buffered_reader(tmp_path, conf_const, ptcl_gun):
# Test the buffered reader with the ROOT particle reader
# need to write out some particles first
s = Sequencer(numThreads=1, events=10, logLevel=acts.logging.WARNING)
eventsInBuffer = 5
eventsToProcess = 10

s = Sequencer(numThreads=1, events=eventsInBuffer, logLevel=acts.logging.WARNING)
evGen = ptcl_gun(s)

file = tmp_path / "particles.root"
Expand All @@ -457,7 +460,7 @@ def test_buffered_reader(tmp_path, conf_const, ptcl_gun):
s.run()

# reset sequencer for reading
s2 = Sequencer(numThreads=1, logLevel=acts.logging.WARNING)
s2 = Sequencer(events=eventsToProcess, numThreads=1, logLevel=acts.logging.WARNING)

reader = acts.examples.RootParticleReader(
level=acts.logging.WARNING,
Expand All @@ -469,7 +472,7 @@ def test_buffered_reader(tmp_path, conf_const, ptcl_gun):
acts.examples.BufferedReader(
level=acts.logging.WARNING,
downstreamReader=reader,
bufferSize=10,
bufferSize=eventsInBuffer,
)
)

Expand All @@ -480,4 +483,4 @@ def test_buffered_reader(tmp_path, conf_const, ptcl_gun):

s2.run()

assert alg.events_seen == 10
assert alg.events_seen == eventsToProcess

0 comments on commit a83827e

Please sign in to comment.