7 available =
list(
set(
range(Limits.MaxTrigItems-3)) -
set(L1MenuFlags.CtpIdMap.value.values()) -
set([508]))
8 freeItems = Limits.MaxTrigItems - len(L1MenuFlags.items.value)
9 floatingItems =
sorted(
list(
set(L1MenuFlags.items.value) -
set(L1MenuFlags.CtpIdMap.value.keys())))
10 unusedItemsWithCTPID =
set(L1MenuFlags.CtpIdMap.value.keys()) -
set(L1MenuFlags.items.value)
12 logging.info(
"There are %d available CTP IDs: %s", len(available),
",".
join(map(str,available)))
13 logging.info(
"There are %d free items", freeItems)
14 logging.info(
"There are %d floating items: %s", len(floatingItems),
",".
join(map(str,floatingItems)))
15 logging.info(
"There are %d unused items with CTP ID: %s", len(unusedItemsWithCTPID),
",".
join(map(str,unusedItemsWithCTPID)))