Skip to content
Snippets Groups Projects

[RTADPA BW Tests] Introducing an Hlt1-bandwidth test via Moore_in_Allen

Merged Luke Grazette requested to merge lugrazet-BW-initialhlt1test into master
All threads resolved!
3 files
+ 65
0
Compare changes
  • Side-by-side
  • Inline
Files
3
###############################################################################
# (c) Copyright 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. #
###############################################################################
'''
Test option for the Hlt1 bandwidth test in LHCbPR
The streaming configuration in this test is `production`,
which means one stream.
To launch it in Moore, run with
./run gaudirun.py hlt1_bandwidth_nominal_input.py hlt1_bandwidth_nominal.py
'''
from Moore.options import options
from Moore.config import allen_control_flow
from RecoConf.hlt1_allen import call_allen_decision_logger
from PyConf.application import configure_input, configure
from PyConf.control_flow import CompositeNode, NodeLogic
from PRConfig.bandwidth_helpers import FileNameHelper
options.set_input_and_conds_from_testfiledb(
'MiniBrunel_2018_MinBias_FTv4_DIGI')
options.evt_max = 1000
fname_helper = FileNameHelper(process="hlt1")
fname_helper.make_tmp_dirs()
options.output_file = fname_helper.mdf_fname_for_Moore(stream_config="production")
options.output_type = 'MDF'
options.output_manifest_file = fname_helper.tck(stream_config="production")
config = configure_input(options)
allen_node = allen_control_flow(options)
top_cf_node = CompositeNode(
'MooreAllenWithLogger',
combine_logic=NodeLogic.NONLAZY_AND,
children=[allen_node, call_allen_decision_logger()],
force_order=True)
config.update(configure(options, top_cf_node))
\ No newline at end of file
Loading