Skip to content

Record the vertices sorted by the original sumpt for validation [ATR-29435]

As requested by @sutt, when running with the jet-restricted sumpt2 for vertex sorting, this will also create a vertex collection that is sorted according to the original vertex sumpt2 for validation purposes. The copied container should also have the corresponding vertex flagged as PriVtx.

To do so, this adds an algorithm that can resort any arbitrary vertex collection given a weighting calculator (or even an alternative sorting tool.

In the JetRestrictedSumPtVertexWeightCalculator class, I added some protections, e.g. falling back on the standard sumpt calculation in case of events with no jets whatsoever.

For now, none of this code runs by default, but is able to be switched on by flag for trigger validation.

Merge request reports