Skip to content

Demand primary vertex in event by default in AnalysisTop

Oliver Majersky requested to merge omajersk/athena:AT-enforce-PRIVTX into 21.2

This MR makes primary vertex selection in AnalysisTop compulsory, and performs it before we attempt to perform any object calibration, selection or systematic shifts.

Currently, selection on primary vertex in AnalysisTop is handled by specifying selection in cutflow for each selection region. In case all regions include selection of primary vertex in event, events not passing primary vertex selection are rejected before we event attempt to perform object calibration, selection, and systematic shifts.

However if for some reason user does not impose primary vertex selection in all selection regions, then rejecting events without primary vertex will not be performed before object selection, calibration and systematic shifts. In such case, we may attempt to perform operations with CP tools that require the presence of primary vertex and will crash (for example overlap removal tool).

This MR resolves ANALYSISTO-909

Edited by Oliver Majersky

Merge request reports