Skip to content
Snippets Groups Projects
Commit eead65fb authored by Jon Burr's avatar Jon Burr
Browse files

Correct ctest failure

parent 889e2e45
7 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!28261Upgrade all existing algorithms to the new coding style from 21.3
......@@ -5,8 +5,28 @@
from .ConfigHelpers import AlgConfig, jetRecoDictForMET
from TrigEFMissingET.TrigEFMissingETMTConfig import getMETMonTool
from ..Menu.MenuComponents import RecoFragmentsPool
from ..Menu.SignatureDicts import METChainParts
import GaudiKernel.SystemOfUnits as Units
def test_configs():
""" Make sure that all algorithms defined in the METChainParts have
configurations
Really, this is mainly to have something sensible to call in the
ConfigHelpers file to succeed the ctest :(
"""
unknown_algs = []
for alg in METChainParts["EFrecoAlg"]:
for subcls in AlgConfig._get_subclasses():
if subcls.algType() == alg:
break
else:
unknown_algs.append(alg)
assert len(unknown_algs) == 0, (
"The following EFrecoAlgs do not have AlgConfig classes: "
"{}".format(unknown_algs) )
class CellConfig(AlgConfig):
@classmethod
def algType(cls):
......
......@@ -214,3 +214,5 @@ class AlgConfig(object):
# Load all the defined configurations
from . import AlgConfigs
# Make sure that there is an AlgConfig for every EFrecoAlg
AlgConfigs.test_configs()
......@@ -7,7 +7,7 @@ log = logging.getLogger("TriggerMenuMT.HLTMenuConfig.MET.METChainConfiguration")
from ..Menu.ChainConfigurationBase import ChainConfigurationBase
from .ConfigHelpers import extractMETRecoDict, metRecoDictToString, AlgConfig
from ..Menu.MenuComponents import RecoFragmentsPool, ChainStep
from ..Menu.MenuComponents import ChainStep
#----------------------------------------------------------------
......
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