ATLAS Offline Software
Loading...
Searching...
No Matches
python.L1.Menu.MenuCommon Namespace Reference

Functions

 print_available (L1MenuFlags)
 defineCommonL1Flags (L1MenuFlags)

Variables

list RequiredL1Items

Function Documentation

◆ defineCommonL1Flags()

python.L1.Menu.MenuCommon.defineCommonL1Flags ( L1MenuFlags)

Definition at line 17 of file MenuCommon.py.

17def defineCommonL1Flags(L1MenuFlags):
18 L1MenuFlags.CTPVersion = 4 # new CTP
19
20 L1MenuFlags.BunchGroupPartitioning = [1, 15, 15] # partition 1: 1-10, partition 2: empty (was 14), partition 3: 15 (note that BGRP0 is used by all items)
21 L1MenuFlags.BunchGroupNames = ['BCRVeto', 'Paired', 'CalReq', 'Empty',
22 'IsolatedUnpaired', 'NonIsolatedUnpaired', 'EmptyBeforeAfterPaired', 'InTrain',
23 'FirstInTrain', 'AfterGlow', 'ALFA', 'EmptyBeforePaired',
24 'AllWithoutCalreq', 'UnpairedBeam1', 'UnpairedBeam2', 'PCC_AfterGlow']
25
26
27# Define here the list of triggers that should be in all L1 menus

◆ print_available()

python.L1.Menu.MenuCommon.print_available ( L1MenuFlags)

Definition at line 5 of file MenuCommon.py.

5def print_available(L1MenuFlags):
6 import logging
7 available = list(set(range(Limits.MaxTrigItems-3)) - set(L1MenuFlags.CtpIdMap.value.values()) - set([508]))
8 freeItems = Limits.MaxTrigItems - len(L1MenuFlags.items.value) # correct for ZB and CALREQ items
9 floatingItems = sorted(list(set(L1MenuFlags.items.value) - set(L1MenuFlags.CtpIdMap.value.keys()))) # these items get their CTPID assigned automatically
10 unusedItemsWithCTPID = set(L1MenuFlags.CtpIdMap.value.keys()) - set(L1MenuFlags.items.value) # this should be empty, otherwise remove the items from the CtpIdMap
11 available.sort()
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)))
16
STL class.
STL class.

Variable Documentation

◆ RequiredL1Items

list python.L1.Menu.MenuCommon.RequiredL1Items

Definition at line 28 of file MenuCommon.py.