From 5b0a63a7faf5f6dee4a078bb29b4eaec00cc981a Mon Sep 17 00:00:00 2001 From: Bogdan Kutsenko <Bogdan Kutsenko bokutsen@cern.ch> Date: Fri, 14 Mar 2025 15:47:08 +0100 Subject: [PATCH 1/2] qmtest for beamline inclination --- .../default_input_and_conds_hlt1_SMOG.py | 19 ++++++++++ .../allen_gaudi_pv_with_mcchecking_SMOG.qmt | 35 +++++++++++++++++++ ...len_gaudi_forward_with_mcchecking_SMOG.ref | 0 ...forward_with_mcchecking_SMOG.ref.armv8.1_a | 0 ...i_forward_with_mcchecking_SMOG.ref.detdesc | 0 ..._mcchecking_SMOG.ref.x86_64_v3-detdesc-opt | 0 ...ard_with_mcchecking_SMOG.ref.x86_64_v3-opt | 0 7 files changed, 54 insertions(+) create mode 100644 Hlt/Moore/tests/options/default_input_and_conds_hlt1_SMOG.py create mode 100644 Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking_SMOG.qmt create mode 100644 Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref create mode 100644 Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref.armv8.1_a create mode 100644 Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref.detdesc create mode 100644 Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref.x86_64_v3-detdesc-opt create mode 100644 Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref.x86_64_v3-opt diff --git a/Hlt/Moore/tests/options/default_input_and_conds_hlt1_SMOG.py b/Hlt/Moore/tests/options/default_input_and_conds_hlt1_SMOG.py new file mode 100644 index 00000000000..4b96e079dc0 --- /dev/null +++ b/Hlt/Moore/tests/options/default_input_and_conds_hlt1_SMOG.py @@ -0,0 +1,19 @@ +############################################################################### +# (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 Moore import options +from RecoConf.decoders import default_VeloCluster_source + +# Use velo retina decoding: +default_VeloCluster_source.global_bind(bank_type="VPRetinaCluster") + +options.set_input_and_conds_from_testfiledb("expected-2024-PbPb-minbias-xdigi") + +options.evt_max = 1000 diff --git a/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking_SMOG.qmt b/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking_SMOG.qmt new file mode 100644 index 00000000000..0429d9da04a --- /dev/null +++ b/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking_SMOG.qmt @@ -0,0 +1,35 @@ +<?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 2024 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. +--> +<!-- + Run Allen forward tracking and apply PrTrackChecker MC tracking efficiency + checker. +--> +<extension class="GaudiTest.GaudiExeTest" kind="test"> +<argument name="program"><text>gaudirun.py</text></argument> +<argument name="args"><set> + <text>$MOOREROOT/tests/options/default_input_and_conds_hlt1_SMOG.py</text> + <text>$RECOCONFROOT/options/allen_gaudi_pv.py</text> +</set></argument> +<argument name="use_temp_dir"><enumeral>true</enumeral></argument> +<argument name="reference"><text>../refs/allen_gaudi_pv_with_mcchecking_SMOG.ref</text></argument> +<argument name="error_reference"><text>../refs/empty.ref</text></argument> +<argument name="validator"><text> + +from Moore.qmtest.exclusions import ref_preprocessor +validateWithReference(preproc = ref_preprocessor) + +from Moore.qmtest.exclusions import remove_known_warnings +countErrorLines({"FATAL": 0, "ERROR": 0, "WARNING": 0}, + stdout=remove_known_warnings(stdout)) + +</text></argument> +</extension> diff --git a/Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref b/Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref new file mode 100644 index 00000000000..e69de29bb2d diff --git a/Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref.armv8.1_a b/Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref.armv8.1_a new file mode 100644 index 00000000000..e69de29bb2d diff --git a/Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref.detdesc b/Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref.detdesc new file mode 100644 index 00000000000..e69de29bb2d diff --git a/Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref.x86_64_v3-detdesc-opt b/Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref.x86_64_v3-detdesc-opt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref.x86_64_v3-opt b/Hlt/RecoConf/tests/refs/allen_gaudi_forward_with_mcchecking_SMOG.ref.x86_64_v3-opt new file mode 100644 index 00000000000..e69de29bb2d -- GitLab From cc0c4f7f36e547ead8ae0cc84ee3e1ea57f2e57c Mon Sep 17 00:00:00 2001 From: Bogdan Kutsenko <Bogdan Kutsenko bokutsen@cern.ch> Date: Thu, 27 Mar 2025 18:37:51 +0100 Subject: [PATCH 2/2] Update test input --- Hlt/Moore/tests/options/default_input_and_conds_hlt1_SMOG.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hlt/Moore/tests/options/default_input_and_conds_hlt1_SMOG.py b/Hlt/Moore/tests/options/default_input_and_conds_hlt1_SMOG.py index 4b96e079dc0..a56fc0a1c76 100644 --- a/Hlt/Moore/tests/options/default_input_and_conds_hlt1_SMOG.py +++ b/Hlt/Moore/tests/options/default_input_and_conds_hlt1_SMOG.py @@ -14,6 +14,6 @@ from RecoConf.decoders import default_VeloCluster_source # Use velo retina decoding: default_VeloCluster_source.global_bind(bank_type="VPRetinaCluster") -options.set_input_and_conds_from_testfiledb("expected-2024-PbPb-minbias-xdigi") +options.set_input_and_conds_from_testfiledb("expected_2024_minbias_digi_SMOG") options.evt_max = 1000 -- GitLab