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!
@@ -19,13 +19,13 @@ To launch it in Moore, run with
'''
from Moore.options import options
from Moore.config import allen_control_flow
from RecoConf.hlt1_allen import allen_gaudi_config
from RecoConf.hlt1_allen import allen_gaudi_config, get_allen_line_names
from AllenCore.gaudi_allen_generator import allen_runtime_options
from PyConf.application import configure_input, configure
from PyConf.control_flow import CompositeNode, NodeLogic
from PRConfig.bandwidth_helpers import FileNameHelper
from DDDB.CheckDD4Hep import UseDD4Hep
from Configurables import DDDBConf
import json
fname_helper = FileNameHelper(process="hlt1")
fname_helper.make_tmp_dirs()
@@ -43,10 +43,13 @@ with (allen_gaudi_config.bind(
sequence="hlt1_pp_forward_then_matching_no_ut_no_gec"),
allen_runtime_options.bind(
filename="allen_write_hlt1_bandwidth_test_monitor.root")):
line_names = get_allen_line_names()
allen_node = allen_control_flow(options)
top_cf_node = CompositeNode(
'MooreAllenWithLogger',
combine_logic=NodeLogic.LAZY_AND,
children=[allen_node],
force_order=True)
config.update(configure(options, allen_node))
# Write out stream configuration to JSON file for use later in the test
with open(fname_helper.stream_config_json_path('streamless'), 'w') as f:
hlt1_linenames = [
linename.replace("Decision", "") for linename in line_names
]
json.dump({"streamless": hlt1_linenames}, f)
Loading