Skip to content
Snippets Groups Projects
Commit ca3e61ab authored by Lucas Meyer Garcia's avatar Lucas Meyer Garcia Committed by Rosen Matev
Browse files

Add test to compare Allen and Moore calo digits

parent 6892cadb
No related branches found
No related tags found
1 merge request!2111Add test to compare Allen and Moore calo digits
###############################################################################
# (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))
<?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>
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