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

Functions

def print_available (L1MenuFlags)
 
def defineCommonL1Flags (L1MenuFlags)
 

Variables

 RequiredL1Items
 

Function Documentation

◆ defineCommonL1Flags()

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

Definition at line 17 of file MenuCommon.py.

17 def 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()

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("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 

Variable Documentation

◆ RequiredL1Items

python.L1.Menu.MenuCommon.RequiredL1Items

Definition at line 28 of file MenuCommon.py.

python.L1.Menu.MenuCommon.defineCommonL1Flags
def defineCommonL1Flags(L1MenuFlags)
Definition: MenuCommon.py:17
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