5 from TriggerMenuMT.L1.Base.L1MenuFlags
import L1MenuFlags
6 from TriggerMenuMT.L1.Base.Limits
import Limits
11 available =
list(
set(
range(Limits.MaxTrigItems-3)) -
set(L1MenuFlags.CtpIdMap.value.values()) -
set([508]))
12 freeItems = Limits.MaxTrigItems - len(L1MenuFlags.items.value)
13 floatingItems =
sorted(
list(
set(L1MenuFlags.items.value) -
set(L1MenuFlags.CtpIdMap.value.keys())))
14 unusedItemsWithCTPID =
set(L1MenuFlags.CtpIdMap.value.keys()) -
set(L1MenuFlags.items.value)
16 logging.info(
"There are %d available CTP IDs: %s", len(available),
",".
join(map(str,available)))
17 logging.info(
"There are %d free items", freeItems)
18 logging.info(
"There are %d floating items: %s", len(floatingItems),
",".
join(map(str,floatingItems)))
19 logging.info(
"There are %d unused items with CTP ID: %s", len(unusedItemsWithCTPID),
",".
join(map(str,unusedItemsWithCTPID)))
24 L1MenuFlags.CTPVersion = 4
26 L1MenuFlags.BunchGroupPartitioning = [1, 15, 15]
31 'L1_CTPCAL_Thresholds',