ATLAS Offline Software
Functions | Variables
python.L1.Menu.MenuCommon Namespace Reference

Functions

def print_available (L1MenuFlags)
 
def defineCommonL1Flags (L1MenuFlags)
 

Variables

 RequiredL1Items
 
 FixedIDMap
 

Function Documentation

◆ defineCommonL1Flags()

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

Definition at line 18 of file MenuCommon.py.

18 def defineCommonL1Flags(L1MenuFlags):
19  L1MenuFlags.CTPVersion = 4 # new CTP
20 
21  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)
22  L1MenuFlags.BunchGroupNames = ['BCRVeto', 'Paired', 'CalReq', 'Empty',
23  'IsolatedUnpaired', 'NonIsolatedUnpaired', 'EmptyAfterPaired', 'InTrain',
24  'AbortGapNotCalReq', 'VdM', 'ALFA', 'EmptyBeforePaired',
25  'EmptyAndPaired']
26 
27  L1MenuFlags.MenuPartitioning = [0, 472, 492] # partition 1: ctpid 0-471, partition 2: ctpid 472-491, partition 3: ctpid 492-511
28 
29 
30 # Define here the list of triggers that should be in all L1 menus

◆ print_available()

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

Definition at line 5 of file MenuCommon.py.

5 def 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("IDs >= 472 go in partition 2, IDs >= 492 go in partition 3")
14  logging.info("There are %d free items", freeItems)
15  logging.info("There are %d floating items: %s", len(floatingItems), ",".join(map(str,floatingItems)))
16  logging.info("There are %d unused items with CTP ID: %s", len(unusedItemsWithCTPID), ",".join(map(str,unusedItemsWithCTPID)))
17 

Variable Documentation

◆ FixedIDMap

python.L1.Menu.MenuCommon.FixedIDMap

Definition at line 75 of file MenuCommon.py.

◆ RequiredL1Items

python.L1.Menu.MenuCommon.RequiredL1Items

Definition at line 31 of file MenuCommon.py.

python.L1.Menu.MenuCommon.defineCommonL1Flags
def defineCommonL1Flags(L1MenuFlags)
Definition: MenuCommon.py:18
python.L1.Menu.MenuCommon.print_available
def print_available(L1MenuFlags)
Definition: MenuCommon.py:5
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10