12This steering file demonstrates the capabilities of EventLimiter module.
14EventInfoSetter generates 200 events.
16Then, the filtering with EventLimiter makes it so that only 150 events
17pass into EventInfoPrinter
19If EventLimit payload was previously generated using add_event_limit.py,
20then the event limit will be adjusted based on payload contents.
30main.add_module(
'EventInfoSetter', expList=[0], runList=[0], evtNumList=[200])
37main.add_module(
'EventLimiter')
38limiter = main.add_module(
'EventLimiter', loadFromDB=
True, maxEventsPerRun=150)
39limiter.if_value(
"==0", b2.Path(), b2.AfterConditionPath.END)
42main.add_module(
'EventInfoPrinter')
46b2.conditions.prepend_testing_payloads(
'localdb/database.txt')