Skip to content
Snippets Groups Projects

Add GEC-only pass through line to Hlt1

Merged Ross John Hunter requested to merge rjhunter-gec-line into master
Files
2
###############################################################################
# (c) Copyright 2019 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. #
###############################################################################
from __future__ import absolute_import, division, print_function
from PyConf import configurable
from Moore.config import HltLine
from RecoConf.hlt1_tracking import require_gec
@configurable
def gec_prefilters():
return [require_gec()]
@configurable
def gec_passthrough_line(name='Hlt1GECPassThroughLine', prescale=1):
"""A line that returns a positive decision if the global event cut passes.
Can be useful for determining the GEC efficiency of a given physics
process when run over simulated data.
"""
return HltLine(name=name, algs=gec_prefilters(), prescale=prescale)
Loading