diff --git a/Hlt/RecoConf/options/compare_hlt1_hlt2_rich_smart_ids.py b/Hlt/RecoConf/options/compare_hlt1_hlt2_rich_smart_ids.py new file mode 100644 index 0000000000000000000000000000000000000000..2d024f47cbf2627662e2e27246f3aefad1fbcbc4 --- /dev/null +++ b/Hlt/RecoConf/options/compare_hlt1_hlt2_rich_smart_ids.py @@ -0,0 +1,37 @@ +############################################################################### +# (c) Copyright 2000-2018 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 PyConf.Algorithms import TestAllenRichPixels +from PyConf.application import (configure_input, configure) +from PyConf.control_flow import (CompositeNode, NodeLogic) +from Allen.config import setup_allen_non_event_data_service +from AllenConf.rich_reconstruction import decode_rich +from RecoConf.rich_reconstruction import make_rich_pixels, default_rich_reco_options +from Moore import options + +options.evt_max = 100 +config = configure_input(options) +non_event_data_node = setup_allen_non_event_data_service( + bank_types=["Rich1", "Rich2"]) +allen_rich_decoding_rich = decode_rich() +reco_opts = default_rich_reco_options() +rec_rich_pixels = make_rich_pixels(options=reco_opts) + +test_hits = TestAllenRichPixels( + rich_smart_ids=allen_rich_decoding_rich["dev_smart_ids"], + RichDecodedData=rec_rich_pixels["RichDecodedData"]) + +cf_node = CompositeNode( + 'compare_rich_smart_ids', + combine_logic=NodeLogic.NONLAZY_OR, + children=[non_event_data_node, test_hits], + force_order=True) + +config.update(configure(options, cf_node)) diff --git a/Hlt/RecoConf/options/compare_hlt1_hlt2_ut_hits_with_mcchecking.py b/Hlt/RecoConf/options/compare_hlt1_hlt2_ut_hits_with_mcchecking.py index 9a7a44435be5da4ba90bb9129274a296baddac1b..06b38e3c5f17d404385f2835d797b9de0fdf8657 100644 --- a/Hlt/RecoConf/options/compare_hlt1_hlt2_ut_hits_with_mcchecking.py +++ b/Hlt/RecoConf/options/compare_hlt1_hlt2_ut_hits_with_mcchecking.py @@ -18,7 +18,7 @@ from RecoConf.hlt1_tracking import make_PrStorePrUTHits_hits from Moore import options config = configure_input(options) -non_event_data_node = setup_allen_non_event_data_service() +non_event_data_node = setup_allen_non_event_data_service(bank_types=["UT"]) allen_decoded_ut = decode_ut() with make_PrStorePrUTHits_hits.bind(isCluster=False): diff --git a/Hlt/RecoConf/tests/qmtest/decoding.qms/compare_hlt1_hlt2_rich_smart_ids.qmt b/Hlt/RecoConf/tests/qmtest/decoding.qms/compare_hlt1_hlt2_rich_smart_ids.qmt new file mode 100644 index 0000000000000000000000000000000000000000..ce74dfdcd0076c1f5f377981ae0f7a0f64fdaf2f --- /dev/null +++ b/Hlt/RecoConf/tests/qmtest/decoding.qms/compare_hlt1_hlt2_rich_smart_ids.qmt @@ -0,0 +1,29 @@ + + + + +gaudirun.py + + $MOOREROOT/tests/options/mdf_input_and_conds_data_2022.py + $RECOCONFROOT/options/compare_hlt1_hlt2_rich_smart_ids.py + +true + + +from Moore.qmtest.exclusions import remove_known_warnings +countErrorLines({"FATAL": 0, "ERROR": 0, "WARNING": 0}, + stdout=remove_known_warnings(stdout)) + + +