Skip to content

PyEvtFilterFromFile - extention of PyEvtFilter functionality

Oldrich Kepka requested to merge okepka/athena:21.0-evtFilter into 21.0

The functionality of PyEvtFilter filtering algorithm allowing to filter events based on list of tuples (run number , event number) is extended.

The new algorithm PyEvtFilterFromFile derives from PyEvtFilter and provides a wrapper to load the list from external file.

Preinclude is provide to enable the filter in reconstruction tags, where external file is to be provided by preExec using selectorInputFile local variable.

An example to run:

Reco_tf.py ..... --preInclude=GaudiSequencer/preinclude.evtFilterFromFile.py --preExec 'selectorInputFile="eventlist.txt"' --checkEventCount False

Note: Is Control/GaudiSequencer/share/preinclude.evtFilterFromFile.py the right place to store the preinclude, or there is other preference?

Tagging: @tsulaia

Merge request reports