Skip to content

Add ChargedTracksWeightFilter to generate flat spectrum in number of charged particles

Oldrich Kepka requested to merge okepka/athena:21.6-nchfilter into 21.6

New algorithm to filter events based on user defined function to produce uniform spectrum in number of charged particles. The function is provided using a spline - with several linearly connected points.

Selection on minimum, maximum number of charged particles, their eta/pt can be made, and is taken from existing ChargedTrackFilter.

Events are weighted by inverse of the function to account for events which are dropped to maintain proper normalizaiton of the sample. Connected to !40056 (merged) which fixes the issue of Weighted Filter Efficiency calculation.

Final validation of th enormalization scaling is ongoing.

JO example

include('GeneratorFilters/ChargedTrackWeightFilter.py')
filtSeq.ChargedTracksWeightFilter.NchMin = 7
filtSeq.ChargedTracksWeightFilter.NchMax = 20
filtSeq.ChargedTracksWeightFilter.Ptcut = 500
filtSeq.ChargedTracksWeightFilter.Etacut= 2.5
filtSeq.ChargedTracksWeightFilter.SplineX=  [0, 2, 5, 10, 15, 25]
filtSeq.ChargedTracksWeightFilter.SplineY = [2.5, 2.5, 7, 10, 12, 14]
Edited by Ewelina Maria Lobodzinska

Merge request reports