Skip to content
Snippets Groups Projects
Commit dcdfdb1f authored by Sascha Stahl's avatar Sascha Stahl
Browse files

Add test for hlt1 passthrough data

parent 6c416080
No related branches found
No related tags found
1 merge request!2081Rework creation of Upstream protoparticles and add fallback for data without UT
data_type: Upgrade
simulation: False
dddb_tag: upgrade/master
conddb_tag: upgrade/master
geometry_version: trunk
conditions_version: master
input_files:
- mdf:root://eoslhcb.cern.ch//eos/lhcb/wg/rta/data/hlt1_passthrough_data_2022/255620_00150010_0033.raw
input_type: RAW
evt_max: 100
xml_summary_file: hlt2_pp_commissioning_data_summary.xml
xml_file_catalog: hlt2_data_pool_xml_catalog.xml
scheduler_legacy_mode: False
output_file: hlt2_pp_hlt1passthrough_data_output.dst
output_type: 'ROOT'
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE extension PUBLIC '-//QM/2.3/Extension//EN' 'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
<!--
(c) Copyright 2022 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 that HLT2 can run from LHCbDirac and that it produces the expected outputs
-->
<extension class="GaudiTest.GaudiExeTest" kind="test">
<argument name="prerequisites"><set>
<tuple><text>test_prepare_lbexec_hlt</text><enumeral>PASS</enumeral></tuple>
</set></argument>
<argument name="program"><text>lbexec</text></argument>
<argument name="args"><set>
<text>Moore.production:hlt2_pp_commissioning</text>
<text>$HLT2CONFROOT/options/hlt2_pp_hlt1passthrough_data_production_options.yaml</text>
</set></argument>
<argument name="use_temp_dir"><enumeral>true</enumeral></argument>
<argument name="validator"><text>
countErrorLines({"FATAL": 0, "ERROR": 0})
import xml.etree.ElementTree as ET
from pathlib import Path
# Ensure the summary XML is as expected
tree = ET.parse(Path.cwd() / "hlt2_pp_hlt1passthrough_data_summary.xml")
out_files = tree.findall("./output/file")
assert len(out_files) == 1, out_files
out_file = out_files[0]
assert int(out_file.text) &gt; 10
assert int(out_file.text) &lt; 1234
assert out_file.attrib["name"] == "PFN:hlt2_pp_hlt1passthrough_data_output.dst"
# Ensure the pool XML was updated to contain the new output file
tree = ET.parse(Path.cwd() / "hlt2_data_pool_xml_catalog.xml")
catalog_output = tree.findall(f'./File/physical/pfn[@name="hlt2_pp_hlt1passthrough_data_output.dst"]')
assert len(catalog_output) == 1, catalog_output
</text></argument>
</extension>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment