Source code for DaVinci.filter_selectors

###############################################################################
# (c) Copyright 2021-2023 CERN for the benefit of the LHCb Collaboration      #
#                                                                             #
# This software is distributed under the terms of the GNU General Public      #
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".   #
#                                                                             #
# In applying this licence, CERN does not waive the privileges and immunities #
# granted to it by virtue of its status as an Intergovernmental Organization  #
# or submit itself to any jurisdiction.                                       #
###############################################################################
"""
Definitions of:

- Default cuts a la runs 1&2 common particles.
"""
from GaudiKernel.SystemOfUnits import MeV  # type: ignore[import]
from PyConf.dataflow import DataHandle  # type: ignore[import]
import Functors as F  # type: ignore[import]

#################################
# Default particle cuts
#################################


[docs] def default_particle_cuts(pvs: DataHandle): """ Return a string with the default particle standard loose cuts. """ return F.require_all(F.PT > 250 * MeV, F.MINIPCHI2(pvs) > 4)