566 == Main function to generate the L1, L1Topo and HLT menu configs and CA, using the GenerateMenuMT class
570 from TrigConfigSvc.TrigConfigSvcCfg
import generateL1Menu
577 chains_gen_filter = FilterChainsToGenerate(flags)
578 menu.setChainFilter(chains_gen_filter)
579 log.debug(
'Filtering chains: %d', menu.chainFilter
is not None)
582 finalListOfChainConfigs = menu.generateAllChainConfigs(flags)
584 log.info(
'Number of configured chains: %d', len(finalListOfChainConfigs))
585 from TriggerMenuMT.HLT.Config
import MenuComponents
586 if len(MenuComponents._CustomComboHypoAllowed)> _maxAllowedCustomCH:
587 log.error(f
'Found {len(MenuComponents._CustomComboHypoAllowed)} ComboHypo algorithms violating the one-CH-per-step rule, only {_maxAllowedCustomCH} are allowed (which are BLS ComboHypos). This is the list of current violations: {MenuComponents._CustomComboHypoAllowed}. Please consolidate your choice of ComboHypo, by checking that it is able to handle decisions internally; if yes eventually increase the limit set by _maxAllowedCustomCH, after discussing with experts')
589 menu.generatePrescales(flags)
593 finalListOfChainConfigs = menu.resolveEmptySteps(finalListOfChainConfigs)
594 log.debug(
"finalListOfChainConfig: %s", finalListOfChainConfigs)
598 log.info(
"Making the HLT configuration tree")
599 menuAcc, CFseq_list =
makeHLTTree(flags, finalListOfChainConfigs)
602 from TriggerJobOpts.TriggerConfigFlags
import ROBPrefetching
603 if ROBPrefetching.InitialRoI
in flags.Trigger.ROBPrefetchingOptions:
604 from TrigGenericAlgs.TrigGenericAlgsConfig
import prefetchingInitialRoIConfig
609 log.info(
"Checking the L1HLTConsistency...")
610 from TriggerMenuMT.HLT.Config.Validation.CheckL1HLTConsistency
import checkL1HLTConsistency
613 log.info(
"Checking the Coherent Prescale assignments...")
614 from TriggerMenuMT.HLT.Config.Validation.CheckCPSGroups
import checkCPSGroups
619 GenerateMenuMT.clear()
620 from TriggerMenuMT.HLT.Config
import MenuComponents
621 MenuComponents._ComboHypoPool.clear()
622 MenuComponents._CustomComboHypoAllowed.clear()