diff --git a/Hlt/RecoConf/options/hlt1_calo_digits.py b/Hlt/RecoConf/options/hlt1_calo_digits.py new file mode 100644 index 0000000000000000000000000000000000000000..c4c221a49627c42041922814619c30442d434267 --- /dev/null +++ b/Hlt/RecoConf/options/hlt1_calo_digits.py @@ -0,0 +1,38 @@ +############################################################################### +# (c) Copyright 2021-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. # +############################################################################### +from Allen.config import setup_allen_non_event_data_service +from AllenConf.calo_reconstruction import decode_calo +from Moore import options +from PyConf.Algorithms import TestAllenCaloDigits +from PyConf.application import configure_input, configure +from PyConf.control_flow import CompositeNode, NodeLogic +from RecoConf.calorimeter_reconstruction import make_calo_reduced + +config = configure_input(options) +non_event_data_node = setup_allen_non_event_data_service() + +#Get Allen calo digits +calo_allen = decode_calo() +calo_digits_allen = calo_allen['dev_ecal_digits'] + +#Get HLT2 calo digits +calo = make_calo_reduced() +calo_digits = calo['digitsEcal'] + +test_digits = TestAllenCaloDigits( + ecal_digits=calo_digits_allen, EcalDigits=calo_digits) + +cf_node = CompositeNode( + 'compare_calo_digits', + combine_logic=NodeLogic.NONLAZY_OR, + children=[non_event_data_node, test_digits], + force_order=True) +config.update(configure(options, cf_node)) diff --git a/Hlt/RecoConf/tests/qmtest/decoding.qms/hlt1_calo_decoding.qmt b/Hlt/RecoConf/tests/qmtest/decoding.qms/hlt1_calo_decoding.qmt new file mode 100644 index 0000000000000000000000000000000000000000..7c0160c0a4b783f8ff7b74c92aed80e62384746b --- /dev/null +++ b/Hlt/RecoConf/tests/qmtest/decoding.qms/hlt1_calo_decoding.qmt @@ -0,0 +1,24 @@ +<?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 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. +--> +<extension class="GaudiTest.GaudiExeTest" kind="test"> +<argument name="program"><text>gaudirun.py</text></argument> +<argument name="args"><set> + <text>$MOOREROOT/tests/options/digi_input_and_conds_for_allen_decoding_retinacluster.py</text> + <text>$RECOCONFROOT/options/hlt1_calo_digits.py</text> +</set></argument> +<argument name="use_temp_dir"><enumeral>true</enumeral></argument> +<argument name="validator"><text> + +countErrorLines({"FATAL": 0, "ERROR": 0, "WARNING": 0}) + +</text></argument> +</extension>