def calcSlotAndConnector(self): cableAssign = self.getCTPINCableAssignment(self.thrtype) from TriggerMenu.l1.Lvl1Flags import Lvl1Flags run1 = Lvl1Flags.CTPVersion() <= 3 if run1 and self.thrtype == "EM": cableAssign += self.getCTPINCableAssignment("TAU") offset = self.mapping for (slot, connector, start, stop, bitnum) in cableAssign: self.bitnum = bitnum delta = (stop - start + 1) / self.bitnum log.debug( 'Cable SLOT%i / CON%i has room for %i thresholds of type %s' % (slot, connector, delta, self.thrtype)) if offset >= delta: # does not fit on this connector (only 0 to offset-1 will fit) offset -= delta # move to the next cable for checking continue self.slot = "SLOT%i" % slot self.connector = "CON%i" % connector self.range_begin = start + offset * self.bitnum self.range_end = self.range_begin + self.bitnum - 1 break if not self.connector: print "Cable mapping ERROR ", cableAssign raise RuntimeError( "No cable has been assigned to threshold type '%s' with mapping %i" % (self.thrtype, self.mapping))
def findUnneededRun2(): menus = ['Physics_pp_v6'] for menu in menus: TF.triggerMenuSetup = menu tpcl1 = TriggerConfigLVL1() print set(tpcl1.registeredItems.keys()) - set(Lvl1Flags.items())
def findFreeCTPIDs(menu): from pickle import load f = open("L1Items.pickle", "r") [menus, allItems, allThrs] = load(f) TF.triggerMenuSetup = menu print set(Lvl1Flags.CtpIdMap().keys()) - allItems
def findFreeCTPIDs(menu): from pickle import load f = open("L1Items.pickle", "r") [menus, allItems, allThrs] = load(f) TF.triggerMenuSetup = menu tpcl1 = TriggerConfigLVL1(outputFile=TF.outputLVL1configFile()) print(set(Lvl1Flags.CtpIdMap().keys()) - allItems)
def findUnneededRun2(): from TriggerJobOpts.TriggerFlags import TriggerFlags as TF from TriggerMenu.l1.Lvl1Flags import Lvl1Flags menus = ['Physics_pp_v6'] for menu in menus: TF.triggerMenuSetup = menu tpcl1 = TriggerConfigLVL1() print(set(tpcl1.registeredItems.keys()) - set(Lvl1Flags.items()))
def print_available(): from TriggerMenu.l1.Lvl1Flags import Lvl1Flags defineMenu() available = [] for i in range(512): if i == 463: continue #reserved for L1_RD2_BGRP14, L1_RD3_BGRP15 now assigned to 510 for partition 3 ATR-17737 if i >= 509 and i <= 511: continue #reserved for CALREQ if not i in Lvl1Flags.CtpIdMap().values(): available.append(str(i)) available.sort() print "There are %d available CTP IDs:" % len(available), ",".join( available) print "IDs >= 472 go in partition 2, IDs >= 492 go in partition 3"
def remapItems(): itemsToRemove = [] for itemIndex, itemName in enumerate(Lvl1Flags.items()): if (itemName in Lvl1Flags.ItemMap()): if (Lvl1Flags.ItemMap()[itemName] != ''): Lvl1Flags.items()[itemIndex] = Lvl1Flags.ItemMap()[itemName] else: itemsToRemove.append(itemIndex) for i in reversed(itemsToRemove): del Lvl1Flags.items()[i]
def remapThresholds(): threshToRemove = [] for index, thresholdName in enumerate(Lvl1Flags.thresholds()): if thresholdName in Lvl1Flags.ThresholdMap(): if (Lvl1Flags.ThresholdMap()[thresholdName] != ''): Lvl1Flags.thresholds()[index] = Lvl1Flags.ThresholdMap()[thresholdName] else: threshToRemove.append(index) for t in reversed(threshToRemove): del Lvl1Flags.thresholds()[t]
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration from AthenaCommon.Logging import logging log = logging.getLogger("TriggerMenu.menu.L1Seeds") from TriggerJobOpts.TriggerFlags import TriggerFlags ####################################### # trigger type definitions ###################################### from TriggerMenu.l1.Lvl1Flags import Lvl1Flags run1 = Lvl1Flags.CTPVersion() <= 3 if run1: from TriggerMenu.l1.TriggerTypeDefRun1 import TT rpcout_type = TT.rpcout | TT.phys rpcin_type = TT.rpcin | TT.phys else: from TriggerMenu.l1.TriggerTypeDef import TT rpcout_type = TT.muon | TT.phys rpcin_type = TT.muon | TT.phys cl_type = TT.calo | TT.phys mb_type = TT.minb | TT.phys calo_exceptions = set([]) #######################################################
import importlib import sys tag = "pp_v6" if len(sys.argv) > 1: tag = sys.argv[1] l1menu = importlib.import_module("TriggerMenu.l1menu.Menu_MC_%s" % tag) physics_hltmenu = importlib.import_module("TriggerMenu.menu.Physics_%s" % tag) mc_hltmenu = importlib.import_module("TriggerMenu.menu.MC_%s" % tag) from TriggerMenu.l1.Lvl1Flags import Lvl1Flags from TriggerJobOpts.TriggerFlags import TriggerFlags l1menu.defineMenu() l1exist = set(Lvl1Flags.items()) slices = ("TestSlice", "MuonSlice", "JetSlice", "BjetSlice", "METSlice", "TauSlice", "EgammaSlice", "BphysicsSlice", "CombinedSlice", "HeavyIonSlice", "BeamspotSlice", "MinBiasSlice", "CalibSlice", "CosmicSlice", "StreamingSlice", "MonitorSlice", "EnhancedBiasSlice") physics_hltmenu.setupMenu() l1physics_used = set() for sl in slices: signatures = getattr(TriggerFlags, sl).signatures() l1s = [chain[1] for chain in signatures] l1physics_used.update(l1s) multil1s = [l1 for chain in signatures for l1 in chain[2]] l1physics_used.update(multil1s)
def defineMenu(): """ Use MC_pp_v7 L1 menu for this """ import Menu_MC_pp_v7 from TriggerMenu.l1.Lvl1Flags import Lvl1Flags Menu_MC_pp_v7.defineMenu() Lvl1Flags.thresholds += [] Lvl1Flags.items += [ # for running high rate tests in secondary CTP partitions #'L1_RD2_BGRP14', 'L1_RD3_BGRP15', ] #Make sure these triggers don't get assigned random CTPIDs Lvl1Flags.CtpIdMap().update({ #'L1_RD2_BGRP14' : 463, 'L1_RD3_BGRP15': 464, }) #--------------------------------- # L1menu in MCppV5 is basis # BeamSplashes: adapt some thresholds and items #--------------------------------- Lvl1Flags.ThresholdMap = {} Lvl1Flags.ItemMap = {} #---------------------------------------------- def remapThresholds(): threshToRemove = [] for index, thresholdName in enumerate(Lvl1Flags.thresholds()): if thresholdName in Lvl1Flags.ThresholdMap(): if (Lvl1Flags.ThresholdMap()[thresholdName] != ''): Lvl1Flags.thresholds()[index] = Lvl1Flags.ThresholdMap( )[thresholdName] else: threshToRemove.append(index) for t in reversed(threshToRemove): del Lvl1Flags.thresholds()[t] #---------------------------------------------- remapThresholds() #---------------------------------------------- def remapItems(): itemsToRemove = [] for itemIndex, itemName in enumerate(Lvl1Flags.items()): if (itemName in Lvl1Flags.ItemMap()): if (Lvl1Flags.ItemMap()[itemName] != ''): Lvl1Flags.items()[itemIndex] = Lvl1Flags.ItemMap( )[itemName] else: itemsToRemove.append(itemIndex) for i in reversed(itemsToRemove): del Lvl1Flags.items()[i] #---------------------------------------------- remapItems()
def defineMenu(): """ Defines the following LvlFlags: thresholds .... list of all threshold names in the menu (includes forced thresholds) items .... list of all L1 item names in the menu CtpIdMap .... map of item names to CTP IDs """ from TriggerMenu.l1.Lvl1Flags import Lvl1Flags Lvl1Flags.CTPVersion = 4 # new CTP Lvl1Flags.BunchGroupPartitioning = [ 1, 13, 14 ] # partition 1: 1-12, partition 2: 13, partition 3: 14-15 (note that BGRP0 is used by all items) Lvl1Flags.BunchGroupNames = [ 'BCRVeto', 'Filled', 'Calib', 'Empty', 'UnpairedBeam1', 'UnpairedBeam2', 'FirstEmpty', 'InTrain' ] Lvl1Flags.BunchGroupNames += ['NotUsed'] * len(Lvl1Flags.BunchGroupNames()) Lvl1Flags.MenuPartitioning = [ 0, 472, 492 ] # partition 1: ctpid 0-471, partition 2: ctpid 472-491, partition 3: ctpid 492-511 Lvl1Flags.RemapThresholdsAsListed = True Lvl1Flags.thresholds = [ # Note that the forced thresholds (FTHR) are not used in the menu but are needed for input monitoring # They can always be replaced with something that is needed for the menu #------------------------- # SLOT 7 / CON 0,1 (EM1,2) #------------------------- # 16 x EM 'EM7', 'EM8', 'EM8I', 'EM10', 'EM10VH', 'EM12', 'EM13VH', 'EM14', 'EM15', 'EM15HI', 'EM16', 'EM18', 'EM20', 'EM20VH', 'EM20VHI', 'EM22', # 1 x ZB 'ZB_J75', # Will double check if 'ZB_EM15' should be used for Run-2. #-------------------------- # SLOT 7 / CON 2,3 (TAU1,2) #-------------------------- # 16 x TAU 'HA12', 'HA12IL', 'HA12IM', 'HA12IT', 'HA15', 'HA20', 'HA20IL', 'HA20IM', 'HA20IT', 'HA25', 'HA25IT', 'HA30', 'HA35', 'HA40', 'HA50', 'HA60', #---------------------- # SLOT 8 / CON 0 (JET1) #---------------------- # 10 x 3-bit JET (can have multiplicity 4 or more) # 8 x JETs and central jets 'J10', 'J12', 'J15', 'J20', 'J25', 'J25.0ETA23', 'J30', 'J35', # 2 x VBF 'J20.0ETA49', 'J30.0ETA49', #---------------------- # SLOT 8 / CON 1 (JET2) #---------------------- # 15 x 2-bit JET (can have maximum multiplicity of 3) (SLOT 8, CON 1) # 3 x Central Jet 'JJ15.23ETA49', 'J20.28ETA31', 'J40.0ETA25', # 6 Jets 'J40', 'J50', 'J75', 'J85', 'J100', 'J175', # 6 x FJ 'J10.31ETA49', 'J15.31ETA49', 'J20.31ETA49', 'J30.31ETA49', 'J75.31ETA49', 'J100.31ETA49', #--------------------- # SLOT 8 / CON 2 (EN1) #--------------------- # 24 x 1-bit thresholds # 8 x TE 'TE5', 'TE20', 'TE50', 'TE100', 'TE200', 'TE10000', 'TE12000', 'TE14000', # 8 x XE 'XE35', 'XE40', 'XE45', 'XE50', 'XE55', 'XE60', 'XE70', 'XE80', 'XE35.0ETA24', 'XE40.0ETA24', 'XE45.0ETA24', 'XE50.0ETA24', 'XE55.0ETA24', 'XE60.0ETA24', 'XE70.0ETA24', 'XE80.0ETA24', # 8 x XS 'XS20', 'XS30', 'XS40', 'XS45', 'XS50', 'XS55', 'XS60', 'XS65', #--------------------- # SLOT 8 / CON 3 (EN2) #--------------------- # 16 x 1-bit thresholds # 8 x weighted sum ET #'RXE35', 'RXE40', 'RXE45', 'RXE50', 'RXE55', 'RXE60', 'RXE70', 'RXE80', # FTHR # 8 x restricted eta range in |eta|<4.9 'TE500.0ETA49', 'TE1500.0ETA49', 'TE3000.0ETA49', 'TE3500.0ETA49', 'TE5000.0ETA49', 'TE6500.0ETA49', 'TE8000.0ETA49', 'TE9000.0ETA49', #------------------------ # SLOT 9 / CON 0 (MUCTPi) #------------------------ # 6 x MU 'MU0', 'MU4', 'MU6', 'MU11', 'MU15', 'MU20', # MU10 is needed for monitoring #------------------------ # SLOT 9 / CON 1 (CTPCal) #------------------------ # 3 x 1-bit BCM 'BCM_AtoC', 'BCM_CtoA', 'BCM_Wide', # 1 x 3-bit BCM 'BCM_Comb', # 8 x DBM #'DBM0', 'DBM1', 'DBM2', 'DBM3', 'DBM4', 'DBM5', 'DBM6', 'DBM7', # FTHR # 2 x BPTX 'BPTX0', 'BPTX1', # 6 x LUCID 'LUCID_A', 'LUCID_C', #'LUCID_Coinc_AC', # FTHR #'LUCID_COMM', #'LUCID_05', 'LUCID_06', # FHTR # 3 x ZDC 'ZDC_A', 'ZDC_C', 'ZDC_AND', # FTHR # 3 x CALREQ 'CAL0', 'CAL1', 'CAL2', #----------------------------- # SLOT 9 / CON 2,3 (NIM1,NIM2) #----------------------------- # 2 x MBTS 'MBTS_A', 'MBTS_C', # 24 x MBTSSI (all FTHR) 'MBTS_A0', 'MBTS_A1', 'MBTS_A2', 'MBTS_A3', 'MBTS_A4', 'MBTS_A5', 'MBTS_A6', 'MBTS_A7', 'MBTS_A8', 'MBTS_A10', 'MBTS_A12', 'MBTS_A14', 'MBTS_C0', 'MBTS_C1', 'MBTS_C2', 'MBTS_C3', 'MBTS_C4', 'MBTS_C5', 'MBTS_C6', 'MBTS_C7', 'MBTS_C8', 'MBTS_C10', 'MBTS_C12', 'MBTS_C14', # L1A for CTP monitoring itself 'NIML1A', # LHCF 'NIMLHCF', # TGC 'NIMTGC', # RPC 'NIMRPC', # TRT 'NIMTRT', ] Lvl1Flags.items = [ 'L1_EM7', 'L1_EM8', 'L1_EM10', 'L1_EM12', 'L1_EM14', 'L1_EM16', 'L1_EM18', 'L1_EM20', 'L1_EM22', 'L1_2EM10', #'L1_2EM5', 'L1_2EM7', # tau beam items #'L1_TAU8', #muons 'L1_MU0', 'L1_MU11', 'L1_MU15', 'L1_MU20', 'L1_MU4', 'L1_MU6', 'L1_2MU0', 'L1_2MU4', 'L1_2MU0_MU6', 'L1_2MU11', 'L1_2MU20', 'L1_2MU6', 'L1_3MU6', #jets 'L1_J10', 'L1_J15', 'L1_J20', 'L1_J30', 'L1_J35', 'L1_J50', 'L1_J75', 'L1_J175', #jet energy 'L1_2J15', #'L1_JE200', #'L1_JE300', #'L1_JE500', # forward jets 'L1_J10.31ETA49', #'L1_FJ30', #'L1_FJ55' , #'L1_FJ95', #MinBias 'L1_LUCID_A', 'L1_LUCID_C', 'L1_LUCID_A_C', 'L1_LUCID', #'L1_LUCID_COMM', 'L1_MBTS_2', 'L1_MBTS_2_BGRP9', 'L1_MBTS_2_BGRP11', 'L1_MBTS_2_EMPTY', 'L1_MBTS_2_UNPAIRED_ISO', 'L1_MBTS_2_UNPAIRED_NONISO', 'L1_MBTS_1', 'L1_MBTS_1_EMPTY', 'L1_MBTS_1_UNPAIRED_ISO', 'L1_MBTS_1_UNPAIRED_NONISO', 'L1_MBTS_1_1', 'L1_MBTS_2_2', 'L1_MBTS_3_3', 'L1_MBTS_4_4', 'L1_MBTS_1_1_BGRP11', 'L1_MBTS_1_1_VTE50', 'L1_MBTS_2_2_VTE50', #TRT 'L1_TRT_FILLED', 'L1_TRT_EMPTY', #randoms 'L1_RD0_BGRP9', 'L1_RD0_FILLED', 'L1_RD0_FIRSTEMPTY', 'L1_RD0_UNPAIRED_ISO', 'L1_RD0_EMPTY', 'L1_RD1_FILLED', 'L1_RD1_EMPTY', #MET #total energy 'L1_TE5', 'L1_TE20', 'L1_TE50', 'L1_TE100', 'L1_TE200', 'L1_TE10000', 'L1_TE12000', 'L1_TE14000', 'L1_TE5_NZ', 'L1_TE5_VTE200', # restricted TE 'L1_TE500.0ETA49', 'L1_TE1500.0ETA49', 'L1_TE3000.0ETA49', 'L1_TE3500.0ETA49', 'L1_TE5000.0ETA49', 'L1_TE6500.0ETA49', 'L1_TE8000.0ETA49', 'L1_TE9000.0ETA49', # restricted TE for overlay 'L1_TE500.0ETA49_OVERLAY', 'L1_TE1500.0ETA49_OVERLAY', 'L1_TE3000.0ETA49_OVERLAY', 'L1_TE3500.0ETA49_OVERLAY', 'L1_TE5000.0ETA49_OVERLAY', 'L1_TE6500.0ETA49_OVERLAY', 'L1_TE8000.0ETA49_OVERLAY', 'L1_TE9000.0ETA49_OVERLAY', #Min Bias 'L1_ZDC', 'L1_ZDC_A', 'L1_ZDC_C', 'L1_ZDC_AND', 'L1_ZDC_AND_VTE50', 'L1_ZDC_A_C', 'L1_ZDC_A_C_BGRP11', 'L1_ZDC_A_C_OVERLAY', 'L1_ZDC_A_C_VTE50_OVERLAY', 'L1_TE50_OVERLAY', 'L1_ZDC_A_C_VTE50', 'L1_ZDC_A_C_TE50', 'L1_BCM_Wide', 'L1_BCM_HT_BGRP0', 'L1_BCM_Wide_BGRP0', 'L1_BCM_AC_CA_BGRP0', 'L1_ZDC_MBTS_1', 'L1_ZDC_MBTS_2', 'L1_ZDC_MBTS_1_1', 'L1_ZDC_MBTS_2_2', 'L1_ZDC_VTE200', #ZDC one side 'L1_ZDC_A_VZDC_C_VTE200', 'L1_ZDC_C_VZDC_A_VTE200', 'L1_ZDC_XOR', 'L1_ZDC_XOR_VTE200', 'L1_ZDC_XOR_TE5_VTE200', 'L1_ZDC_XOR_TRT_VTE200', #coincidence 'L1_ZDC_A_C_VTE200', 'L1_ZDC_A_C_TE5_VTE200', #NIMDIR stuff # temporary commented out in HI_v3: 'L1_NIM_S8C2B21', 'L1_NIM_S8C2B22', 'L1_NIM_S8C2B23', # votoed by TE #UPC triggers 'L1_MU0_NZ', 'L1_J15_NZ', 'L1_2MU0_NZ', #'L1_2EM3_NZ', 'L1_2J15_NZ', 'L1_MU0_NL', #'L1_EM3_NL', 'L1_J15_NL', 'L1_2MU0_NL', #'L1_2EM3_NL', 'L1_2J15_NL', 'L1_MU0_MV', 'L1_2MU0_MV', 'L1_MU0_MV_VTE50', 'L1_MU0_VTE50', 'L1_MU0_TE50', 'L1_MU4_MV_VTE50', 'L1_MU4_VTE50', 'L1_MU4_TE50', #'L1_EM3_MV_VTE50', #'L1_EM3_VTE50', 'L1_J10_VTE100', 'L1_J10_VTE200', ## VDM 'L1_ZDC_A_C_BGRP7', 'L1_LUCID_BGRP7', 'L1_BGRP7', #MBTS 32 inputs 'L1_MBTSA0', 'L1_MBTSA1', 'L1_MBTSA2', 'L1_MBTSA3', 'L1_MBTSA4', 'L1_MBTSA5', 'L1_MBTSA6', 'L1_MBTSA7', 'L1_MBTSA8', ##'L1_MBTSA9', 11, 13, 15 not in run2 anymore 'L1_MBTSA10', ##'L1_MBTSA11', 'L1_MBTSA12', ##'L1_MBTSA13', 'L1_MBTSA14', ##'L1_MBTSA15', 'L1_MBTSC0', 'L1_MBTSC1', 'L1_MBTSC2', 'L1_MBTSC3', 'L1_MBTSC4', 'L1_MBTSC5', 'L1_MBTSC6', 'L1_MBTSC7', 'L1_MBTSC8', ##'L1_MBTSC9', 'L1_MBTSC10', ##'L1_MBTSC11', 'L1_MBTSC12', ##'L1_MBTSC13', 'L1_MBTSC14', ##'L1_MBTSC15', #background 'L1_EM7_UNPAIRED_ISO', 'L1_EM7_UNPAIRED_NONISO', 'L1_EM7_EMPTY', 'L1_EM7_FIRSTEMPTY', #MU UNPAIRED-EMPTY-ETC 'L1_MU0_UNPAIRED_ISO', 'L1_MU0_UNPAIRED_NONISO', 'L1_MU0_EMPTY', 'L1_MU0_FIRSTEMPTY', 'L1_MU4_UNPAIRED_ISO', 'L1_MU4_UNPAIRED_NONISO', 'L1_MU4_EMPTY', 'L1_MU4_FIRSTEMPTY', 'L1_MU6_FIRSTEMPTY', 'L1_MU11_EMPTY', 'L1_2MU0_EMPTY', 'L1_2MU4_EMPTY', 'L1_2MU6_UNPAIRED_ISO', 'L1_2MU6_UNPAIRED_NONISO', 'L1_2MU6_EMPTY', 'L1_2MU6_FIRSTEMPTY', #TAU UNPAIRED-EMPTY-ETC 'L1_TAU12_UNPAIRED_ISO', 'L1_TAU12_UNPAIRED_NONISO', 'L1_TAU12_EMPTY', 'L1_TAU12_FIRSTEMPTY', #J UNPAIRED-EMPTY-ETC 'L1_J10_UNPAIRED_ISO', 'L1_J10_UNPAIRED_NONISO', 'L1_J10_EMPTY', 'L1_J10_FIRSTEMPTY', 'L1_J30_EMPTY', 'L1_J30_UNPAIRED', 'L1_J30_FIRSTEMPTY', #FJ UNPAIRED-EMPTY-ETC #'L1_FJ10_UNPAIRED_ISO', 'L1_FJ10_FIRSTEMPTY', 'L1_J10.31ETA49_EMPTY', #ZDC 'L1_ZDC_EMPTY', 'L1_ZDC_UNPAIRED_ISO', 'L1_ZDC_UNPAIRED_NONISO', #L1_ZDC_AND 'L1_ZDC_AND_EMPTY', 'L1_ZDC_AND_UNPAIRED_ISO', 'L1_ZDC_AND_UNPAIRED_NONISO', # 'L1_ZDC_A_C_BGRP9', 'L1_ZDC_A_C_EMPTY', 'L1_ZDC_A_C_UNPAIRED_ISO', 'L1_ZDC_A_C_UNPAIRED_NONISO', #MBTS 'L1_MBTS_1_1_BGRP9', 'L1_MBTS_1_1_EMPTY', 'L1_MBTS_2_2_EMPTY', 'L1_MBTS_3_3_EMPTY', 'L1_MBTS_1_1_UNPAIRED_ISO', 'L1_MBTS_2_2_UNPAIRED_ISO', 'L1_MBTS_3_3_UNPAIRED_ISO', 'L1_MBTS_4_4_UNPAIRED_ISO', #LUCID 'L1_LUCID_EMPTY', 'L1_LUCID_UNPAIRED_ISO', #'L1_LUCID_COMM_UNPAIRED_ISO', 'L1_LUCID_A_C_EMPTY', 'L1_LUCID_A_C_UNPAIRED_ISO', 'L1_LUCID_A_C_UNPAIRED_NONISO', #ZB 'L1_ZB', # lumi measurements 'L1_MLZ_A', 'L1_MLZ_C', 'L1_MBLZ', # BGRP and BPTX 'L1_BPTX0_BGRP0', 'L1_BPTX1_BGRP0', 'L1_BGRP0', 'L1_BGRP1', #BCM 'L1_BCM_Wide_EMPTY', 'L1_BCM_Wide_UNPAIRED_ISO', 'L1_BCM_Wide_UNPAIRED_NONISO', 'L1_BCM_AC_CA_UNPAIRED_ISO', ######### Run-2 monitoring items taken from monitoring rules 'L1_BCM_AC_ABORTGAPNOTCALIB', 'L1_BCM_AC_CALIB', 'L1_BCM_AC_UNPAIRED_ISO', 'L1_BCM_AC_UNPAIRED_NONISO', 'L1_BCM_CA_ABORTGAPNOTCALIB', 'L1_BCM_CA_CALIB', 'L1_BCM_CA_UNPAIRED_ISO', 'L1_BCM_CA_UNPAIRED_NONISO', 'L1_BCM_Wide_ABORTGAPNOTCALIB', 'L1_BCM_Wide_CALIB', 'L1_J12_ABORTGAPNOTCALIB', 'L1_J12_UNPAIRED_ISO', 'L1_J12_UNPAIRED_NONISO', 'L1_J12_BGRP12', 'L1_J30.31ETA49_UNPAIRED_ISO', 'L1_J30.31ETA49_UNPAIRED_NONISO', 'L1_J30.31ETA49_BGRP12', 'L1_J50_ABORTGAPNOTCALIB', 'L1_J50_UNPAIRED_ISO', 'L1_J50_UNPAIRED_NONISO', 'L1_CALREQ2', 'L1_EM10VH', 'L1_EM15', 'L1_EM15HI_2TAU12IM', 'L1_EM15HI_2TAU12IM_J25_3J12', 'L1_EM15HI_2TAU12IM_XE35', 'L1_EM15HI_TAU40_2TAU15', #### NO-MU10 'L1_MU10_TAU12IM', #### NO-MU10 'L1_MU10_TAU12IM_J25_2J12', #### NO-MU10 'L1_MU10_TAU12IM_XE35', #### NO-MU10 'L1_MU10_TAU12IM_XE40', #### NO-MU10 'L1_MU10_TAU12_J25_2J12', #### NO-MU10 'L1_MU10_TAU20', #### NO-MU10 'L1_MU10_TAU20IM', 'L1_TAU12', 'L1_TAU12IL', 'L1_TAU12IM', 'L1_TAU12IT', 'L1_TAU20', 'L1_TAU20IL', 'L1_TAU20IL_2TAU12IL_J25_2J20_3J12', 'L1_TAU20IM', 'L1_TAU20IM_2J20_XE45', 'L1_TAU20IM_2J20_XE50', 'L1_TAU20IM_2TAU12IM', 'L1_TAU20IM_2TAU12IM_J25_2J20_3J12', 'L1_TAU20IM_2TAU12IM_XE35', 'L1_TAU20IM_2TAU12IM_XE40', 'L1_TAU20IT', 'L1_TAU20_2J20_XE45', 'L1_TAU20_2TAU12', 'L1_TAU20_2TAU12_XE35', 'L1_TAU25IT_2TAU12IT_2J25_3J12', 'L1_TAU30', 'L1_TAU40', 'L1_TAU60', #'L1_TAU8', 'L1_EM20VH_FIRSTEMPTY', 'L1_EM20VHI', 'L1_EM7_EMPTY', 'L1_EM7_FIRSTEMPTY', 'L1_J100', 'L1_J100.31ETA49', 'L1_J100.31ETA49_FIRSTEMPTY', 'L1_J100_FIRSTEMPTY', 'L1_J12', 'L1_J12_EMPTY', 'L1_J12_FIRSTEMPTY', 'L1_J30.31ETA49', 'L1_J30.31ETA49_EMPTY', 'L1_J40_XE50', 'L1_J75.31ETA49', 'L1_J75_XE40', 'L1_RD0_ABORTGAPNOTCALIB', 'L1_TGC_BURST', 'L1_XE35', 'L1_XE50', ] Lvl1Flags.CtpIdMap = { 'L1_EM18': 0, 'L1_EM22': 1, 'L1_EM7': 2, 'L1_EM10': 3, 'L1_EM12': 4, 'L1_EM14': 5, 'L1_2MU4_EMPTY': 6, 'L1_RD0_UNPAIRED_NONISO': 7, 'L1_BCM_AC_CA_UNPAIRED_NONISO': 8, 'L1_FJ10_UNPAIRED_NONISO': 9, 'L1_2EM10': 10, #'L1_2EM5' : 11, 'L1_MU0_VTE20': 12, 'L1_NIM_S8C2B21': 13, #DIRNIM 'L1_NIM_S8C2B22': 14, #DIRNIM 'L1_MBTS_4_4': 15, 'L1_RD1_EMPTY': 16, 'L1_RD0_FILLED': 17, 'L1_RD0_FIRSTEMPTY': 18, 'L1_RD0_UNPAIRED_ISO': 19, 'L1_MBTS_4_4_UNPAIRED_ISO': 20, 'L1_ZDC_AND_VTE50': 27, #'L1_EM3_VTE20': 28, 'L1_MU0_MV_VTE50': 34, 'L1_MU0_VTE50': 35, 'L1_ZDC_A_C_VTE50': 36, 'L1_ZDC_A_C_UNPAIRED_NONISO': 37, 'L1_MU4_VTE50': 38, 'L1_MU4_MV_VTE50': 39, 'L1_ZDC_A_C_OVERLAY': 40, 'L1_MU0_TE50': 41, 'L1_ZDC_A_C_TE50': 42, 'L1_MU4_TE50': 43, #'L1_EM3_VTE50' : 44, #'L1_EM3_MV_VTE50' : 45, 'L1_J10_VTE100': 46, 'L1_BGRP7': 47, 'L1_LUCID_BGRP7': 48, 'L1_MBTS_2_BGRP7': 49, 'L1_MBTSC4': 50, 'L1_MBTSC5': 51, 'L1_MBTSC6': 52, 'L1_MBTSC7': 53, 'L1_MBTSC8': 54, 'L1_MBTSC9': 55, 'L1_MBTSC10': 56, 'L1_MBTSC11': 57, 'L1_MBTSC12': 58, 'L1_MBTSC13': 59, 'L1_MBTSC14': 60, 'L1_MBTSC15': 61, 'L1_RD0_EMPTY': 62, 'L1_RD1_FILLED': 63, #'L1_TAU3' : 64, 'L1_MBTSC3': 65, 'L1_MU4_FIRSTEMPTY': 67, 'L1_MU6_FIRSTEMPTY': 68, 'L1_2MU0_EMPTY': 69, 'L1_MU0_FIRSTEMPTY': 70, 'L1_2MU6': 71, 'L1_2MU11': 72, 'L1_2MU20': 73, 'L1_MU11_EMPTY': 75, 'L1_MBTSC2': 76, 'L1_LUCID_UNPAIRED_NONISO': 77, 'L1_BCM_Wide_BGRP0': 80, 'L1_BCM_AC_CA_BGRP0': 81, 'L1_MBTSC1': 82, 'L1_J10_UNPAIRED': 83, 'L1_EM20': 84, 'L1_EM16': 85, 'L1_MBTSC0': 86, 'L1_J30_UNPAIRED': 87, 'L1_MU15': 88, 'L1_MU0': 89, 'L1_MU6': 90, 'L1_MU11': 91, 'L1_MU20': 92, 'L1_MU4': 93, 'L1_2MU0': 94, 'L1_2MU4': 95, 'L1_J20': 96, 'L1_J10': 97, 'L1_J15': 98, 'L1_J30': 99, 'L1_J35': 100, 'L1_J50': 102, 'L1_J18': 104, #'L1_J5' : 105, 'L1_BCM_AC_CA_UNPAIRED_ISO': 106, 'L1_BCM_Wide_EMPTY': 107, 'L1_BCM_Wide_UNPAIRED_ISO': 108, 'L1_L1_BCM_Wide_UNPAIRED_NONISO': 109, #'L1_J10_UNPAIRED_ISO' : 110, # duplicated below #'L1_J10_UNPAIRED_NONISO' : 111, # duplicated below 'L1_LUCID_UNPAIRED_ISO': 113, #'L1_TAU8_FIRSTEMPTY' : 114, 'L1_TAU8_UNPAIRED_ISO': 115, 'L1_TAU8_UNPAIRED_NONISO': 116, 'L1_ZDC_A_C_UNPAIRED_ISO': 117, #'L1_ZDC_UNPAIRED_ISO' : 118, # duplicated below #'L1_ZDC_UNPAIRED_NONISO' : 119, # duplicated below 'L1_MBTSA0': 120, 'L1_MBTSA1': 122, 'L1_FJ0': 123, 'L1_2MU6_UNPAIRED_ISO': 124, 'L1_2MU6_UNPAIRED_NONISO': 125, 'L1_BCM_Wide_UNPAIRED_NONISO': 126, 'L1_EM7_UNPAIRED_ISO': 127, 'L1_EM7_UNPAIRED_NONISO': 128, #'L1_J10_FIRSTEMPTY' : 129, # duplicated below 'L1_J30_FIRSTEMPTY': 130, 'L1_MBTSA2': 131, 'L1_TE5': 132, 'L1_TE14000': 133, 'L1_TE20': 134, 'L1_TE50': 138, 'L1_TE100': 136, 'L1_TE200': 135, 'L1_MBTSA3': 137, 'L1_2J5': 139, 'L1_2J10': 140, 'L1_TE12000': 141, 'L1_TE10000': 142, 'L1_2MU6_EMPTY': 143, 'L1_2MU6_FIRSTEMPTY': 144, 'L1_ZDC_MBTS_1': 145, 'L1_ZDC_MBTS_2': 146, 'L1_ZDC_MBTS_1_1': 147, 'L1_ZDC_MBTS_2_2': 148, 'L1_MBTS_1_EMPTY': 149, 'L1_MBTS_1_1_EMPTY': 150, 'L1_MBTS_2_EMPTY': 151, #'L1_TAU8_EMPTY' : 152, 'L1_MBTSA4': 153, 'L1_MBTSA5': 154, 'L1_MBTSA6': 155, 'L1_MBTSA7': 156, 'L1_NIM_S8C2B23': 157, #DIRNIM 'L1_MU0_UNPAIRED_NONISO': 159, 'L1_MU0_UNPAIRED_ISO': 160, 'L1_MBTSA8': 161, 'L1_MU0_EMPTY': 162, 'L1_MBTSA9': 163, 'L1_MBTSA10': 164, 'L1_MU4_UNPAIRED_NONISO': 165, 'L1_MU4_EMPTY': 166, 'L1_MU4_UNPAIRED_ISO': 167, 'L1_MBTSA11': 168, #'L1_J10_EMPTY' : 171, 'L1_J30_EMPTY': 172, 'L1_MBTSA12': 173, 'L1_MBTSA13': 174, 'L1_FJ0_EMPTY': 175, 'L1_MBTSA14': 176, #'L1_EM3_EMPTY' : 177, 'L1_MBTSA15': 178, 'L1_FJ0_UNPAIRED_ISO': 180, 'L1_FJ5_UNPAIRED_ISO': 181, 'L1_ZDC_UNPAIRED_ISO': 182, 'L1_ZDC_UNPAIRED_NONISO': 183, 'L1_J10_EMPTY': 184, 'L1_J10_FIRSTEMPTY': 185, 'L1_J10_UNPAIRED_ISO': 186, 'L1_J10_UNPAIRED_NONISO': 187, 'L1_ZDC_A_BGRP7': 188, 'L1_ZDC_AND': 189, 'L1_ZDC_A': 190, 'L1_ZDC_C': 191, 'L1_ZDC_A_C': 192, 'L1_ZDC': 193, 'L1_ZDC_C_BGRP7': 194, 'L1_ZDC_A_C_EMPTY': 196, 'L1_ZDC_EMPTY': 197, 'L1_FJ5': 198, 'L1_FJ10': 199, 'L1_MBTS_1_UNPAIRED_ISO': 200, 'L1_MBTS_1_UNPAIRED_NONISO': 201, 'L1_MBTS_1_1_UNPAIRED_ISO': 202, 'L1_FJ15': 203, 'L1_MBTS_2_UNPAIRED_ISO': 204, 'L1_MBTS_2_UNPAIRED_NONISO': 205, 'L1_LUCID_A_C_UNPAIRED_NONISO': 206, 'L1_LUCID_A_C_UNPAIRED_ISO': 208, 'L1_LUCID_A_UNPAIRED': 209, 'L1_LUCID_C_UNPAIRED': 210, 'L1_LUCID_A_C_UNPAIRED': 211, 'L1_LUCID_A': 212, 'L1_LUCID_C': 213, 'L1_LUCID_A_C': 214, 'L1_LUCID': 215, 'L1_FJ5_EMPTY': 218, 'L1_FJ0_C': 219, 'L1_MBTS_2': 222, 'L1_MBTS_2_2': 223, 'L1_MBTS_3_3': 224, 'L1_BCM_HT_BGRP0': 225, 'L1_MBTS_1': 226, 'L1_MBTS_1_1': 228, 'L1_MBTS_2_2_EMPTY': 229, 'L1_MBTS_3_3_EMPTY': 230, 'L1_MBTS_2_2_UNPAIRED_ISO': 231, 'L1_MBTS_3_3_UNPAIRED_ISO': 232, #'L1_J5_TE90' : 233, 'L1_2J5_TE90': 234, 'L1_ZDC_A_C_BGRP11': 235, 'L1_LUCID_A_EMPTY': 236, 'L1_LUCID_C_EMPTY': 237, 'L1_LUCID_A_C_EMPTY': 238, 'L1_FJ0_A': 239, 'L1_MBTS_1_1_BGRP11': 240, 'L1_BPTX0_BGRP0': 241, 'L1_BPTX1_BGRP0': 242, 'L1_MBTS_2_BGRP9': 243, 'L1_MBTS_1_1_BGRP9': 244, 'L1_LUCID_EMPTY': 245, 'L1_RD0_BGRP9': 246, 'L1_LHCF': 247, 'L1_ZDC_A_C_BGRP9': 248, 'L1_MBTS_2_BGRP11': 249, 'L1_ZB': 250, 'L1_BGRP1': 252, #new in Run 2 'L1_ZDC_A_C_VTE50_OVERLAY': 256, 'L1_TE50_OVERLAY': 257, 'L1_J10_VTE200': 258, 'L1_BCM_AC_ABORTGAPNOTCALIB': 259, 'L1_BCM_AC_CALIB': 260, 'L1_BCM_AC_UNPAIRED_ISO': 261, 'L1_BCM_AC_UNPAIRED_NONISO': 262, 'L1_BCM_CA_ABORTGAPNOTCALIB': 263, 'L1_BCM_CA_CALIB': 264, 'L1_BCM_CA_UNPAIRED_ISO': 265, 'L1_BCM_CA_UNPAIRED_NONISO': 266, 'L1_BCM_Wide_ABORTGAPNOTCALIB': 267, 'L1_BCM_Wide_CALIB': 268, 'L1_J12_ABORTGAPNOTCALIB': 269, 'L1_J12_UNPAIRED_ISO': 270, 'L1_J12_UNPAIRED_NONISO': 271, 'L1_J12_BGRP12': 493, 'L1_J30.31ETA49_UNPAIRED_ISO': 272, 'L1_J30.31ETA49_UNPAIRED_NONISO': 273, 'L1_J30.31ETA49_BGRP12': 494, 'L1_J50_ABORTGAPNOTCALIB': 274, 'L1_J50_UNPAIRED_ISO': 275, 'L1_J50_UNPAIRED_NONISO': 276, #'L1_TAU8': 277, 'L1_TAU12': 278, 'L1_TAU12IL': 279, 'L1_TAU12IM': 280, 'L1_TAU12IT': 281, 'L1_TAU20': 282, 'L1_TAU20IL': 283, 'L1_TAU20IL_2TAU12IL_J25_2J20_3J12': 284, 'L1_TAU20IM': 285, 'L1_TAU20IM_2J20_XE45': 286, 'L1_TAU20IM_2J20_XE50': 287, 'L1_TAU20IM_2TAU12IM': 288, 'L1_TAU20IM_2TAU12IM_J25_2J20_3J12': 289, 'L1_TAU20IM_2TAU12IM_XE35': 290, 'L1_TAU20IM_2TAU12IM_XE40': 291, 'L1_TAU20IT': 292, 'L1_TAU20_2J20_XE45': 293, 'L1_TAU20_2TAU12': 294, 'L1_TAU20_2TAU12_XE35': 295, 'L1_TAU25IT_2TAU12IT_2J25_3J12': 296, 'L1_TAU30': 297, 'L1_TAU40': 298, 'L1_TAU60': 299, 'L1_EM20VH_FIRSTEMPTY': 300, 'L1_EM20VHI': 301, 'L1_EM7_EMPTY': 302, 'L1_EM7_FIRSTEMPTY': 303, 'L1_J100': 304, 'L1_J100.31ETA49': 305, 'L1_J100.31ETA49_FIRSTEMPTY': 306, 'L1_J100_FIRSTEMPTY': 307, 'L1_J12': 308, 'L1_J12_EMPTY': 309, 'L1_J12_FIRSTEMPTY': 310, 'L1_J30.31ETA49': 311, 'L1_J30.31ETA49_EMPTY': 312, 'L1_J40_XE50': 313, 'L1_J75.31ETA49': 314, 'L1_J75_XE40': 315, 'L1_RD0_ABORTGAPNOTCALIB': 316, 'L1_TGC_BURST': 317, 'L1_XE35': 318, 'L1_XE50': 319, 'L1_EM10VH': 320, 'L1_EM15': 321, 'L1_EM15HI_2TAU12IM': 322, 'L1_EM15HI_2TAU12IM_J25_3J12': 323, 'L1_EM15HI_2TAU12IM_XE35': 324, 'L1_EM15HI_TAU40_2TAU15': 325, # restricted TE 'L1_TE500.0ETA49': 326, 'L1_TE1500.0ETA49': 327, 'L1_TE3000.0ETA49': 328, 'L1_TE3500.0ETA49': 329, 'L1_TE4500.0ETA49': 330, 'L1_TE6500.0ETA49': 331, 'L1_TE8000.0ETA49': 332, 'L1_TE9000.0ETA49': 333, #'L1_J5': 334, 'L1_TE5_VTE200': 335, # restricted TE for overlay 'L1_TE500.0ETA49_OVERLAY': 336, 'L1_TE1500.0ETA49_OVERLAY': 337, 'L1_TE3000.0ETA49_OVERLAY': 338, 'L1_TE3500.0ETA49_OVERLAY': 339, 'L1_TE4500.0ETA49_OVERLAY': 340, 'L1_TE6500.0ETA4_OVERLAY9': 341, 'L1_TE8000.0ETA49_OVERLAY': 342, 'L1_TE9000.0ETA49_OVERLAY': 343, 'L1_EM8': 344, 'L1_2EM7': 345, 'L1_CALREQ2': 511, 'L1_TRT_FILLED': 482, 'L1_TRT_EMPTY': 483, 'L1_ZDC_A_VZDC_C_VTE200': 484, 'L1_ZDC_C_VZDC_A_VTE200': 485, 'L1_ZDC_XOR': 486, 'L1_ZDC_XOR_VTE200': 487, 'L1_ZDC_XOR_TE5_VTE200': 488, 'L1_ZDC_XOR_TRT_VTE200': 489, 'L1_ZDC_VTE200': 490, 'L1_ZDC_A_C_VTE200': 491, 'L1_ZDC_A_C_TE5_VTE200': 492, } Lvl1Flags.prescales = {}
def defineMenu(): """ Defines the following LvlFlags: thresholds .... list of all threshold names in the menu (includes forced thresholds) items .... list of all L1 item names in the menu CtpIdMap .... map of item names to CTP IDs """ from TriggerMenu.l1.Lvl1Flags import Lvl1Flags Lvl1Flags.CTPVersion = 4 # new CTP Lvl1Flags.BunchGroupPartitioning = [1, 13, 14] # partition 1: 1-12, partition 2: 13, partition 3: 14-15 (note that BGRP0 is used by all items) Lvl1Flags.BunchGroupNames = ['BCRVeto', 'Filled', 'Calib', 'Empty', 'UnpairedBeam1', 'UnpairedBeam2', 'FirstEmpty', 'InTrain'] Lvl1Flags.BunchGroupNames += ['NotUsed'] * len(Lvl1Flags.BunchGroupNames()) Lvl1Flags.MenuPartitioning = [0, 472, 492] # partition 1: ctpid 0-471, partition 2: ctpid 472-491, partition 3: ctpid 492-511 Lvl1Flags.RemapThresholdsAsListed = True Lvl1Flags.thresholds = [ # Note that the forced thresholds (FTHR) are not used in the menu but are needed for input monitoring # They can always be replaced with something that is needed for the menu #------------------------- # SLOT 7 / CON 0,1 (EM1,2) #------------------------- # 16 x EM #'EM7', 'EM8', 'EM8I', 'EM10', 'EM10VH', 'EM12', 'EM13VH', 'EM14', 'EM15', 'EM15HI', 'EM16', 'EM18', 'EM20', 'EM20VH', 'EM20VHI', 'EM22', 'EM3','EM4','EM5','EM7', 'EM8', 'EM8I', 'EM10', 'EM10VH', 'EM12', 'EM13VH', 'EM14', 'EM15', 'EM15HI', 'EM16', 'EM20', 'EM20VHI', # 1 x ZB 'ZB_J75', # Will double check if 'ZB_EM15' should be used for Run-2. #-------------------------- # SLOT 7 / CON 2,3 (TAU1,2) #-------------------------- # 16 x TAU #'HA12', 'HA12IL', 'HA12IM', 'HA12IT', 'HA15', 'HA20', 'HA20IL', 'HA20IM', 'HA20IT', 'HA25', 'HA25IT', 'HA30', 'HA35', 'HA40', 'HA50', 'HA60', 'HA8', 'HA12', 'HA12IL', 'HA12IM', 'HA12IT', 'HA15', 'HA20', 'HA20IL', 'HA20IM', 'HA20IT', 'HA25', 'HA25IT', 'HA30', 'HA40', 'HA60', 'HA100', #---------------------- # SLOT 8 / CON 0 (JET1) #---------------------- # 10 x 3-bit JET (can have multiplicity 4 or more) # 8 x JETs and central jets 'J5', 'J10', 'J12', 'J15', 'J20', 'J25', 'J25.0ETA23', 'J30', # 2 x VBF 'J20.0ETA49', 'J30.0ETA49', #---------------------- # SLOT 8 / CON 1 (JET2) #---------------------- # 15 x 2-bit JET (can have maximum multiplicity of 3) (SLOT 8, CON 1) # 3 x Central Jet 'JJ15.23ETA49','J20.28ETA31','J40.0ETA25', # 6 Jets 'J40', 'J50', 'J75', 'J85', 'J100', 'J175', # 6 x FJ 'J10.31ETA49', 'J15.31ETA49', 'J20.31ETA49', 'J30.31ETA49', 'J75.31ETA49', 'J100.31ETA49', #--------------------- # SLOT 8 / CON 2 (EN1) #--------------------- # 24 x 1-bit thresholds # 8 x TE 'TE5', 'TE10', 'TE20', 'TE50', 'TE70', 'TE90', 'TE120', 'TE160', # 8 x XE 'XE10', 'XE20', 'XE25', 'XE30', 'XE35', 'XE40', 'XE45', 'XE50', 'XE55', 'XE60', 'XE65', 'XE70', 'XE75', 'XE80', 'XE150', 'XE300', # 8 x XS 'XS20', 'XS30', 'XS40', 'XS45', 'XS50', 'XS55', 'XS60', 'XS65', #--------------------- # SLOT 8 / CON 3 (EN2) #--------------------- # 16 x 1-bit thresholds # 8 x weighted sum ET #'RXE35', 'RXE40', 'RXE45', 'RXE50', 'RXE55', 'RXE60', 'RXE70', 'RXE80', # FTHR # 8 x restricted eta range in |eta|<4.9 'TE10.0ETA24', 'TE15.0ETA24', 'TE20.0ETA24', 'TE25.0ETA24', 'TE30.0ETA24', 'TE35.0ETA24', 'TE40.0ETA24', 'TE45.0ETA24', #------------------------ # SLOT 9 / CON 0 (MUCTPi) #------------------------ # 6 x MU 'MU4', 'MU6', 'MU10', 'MU11', 'MU15', 'MU20', # MU10 is needed for monitoring #------------------------ # SLOT 9 / CON 1 (CTPCal) #------------------------ # 3 x 1-bit BCM 'BCM_AtoC', 'BCM_CtoA', 'BCM_Wide', # 1 x 3-bit BCM 'BCM_Comb', # 8 x DBM #'DBM0', 'DBM1', 'DBM2', 'DBM3', 'DBM4', 'DBM5', 'DBM6', 'DBM7', # FTHR # 2 x BPTX 'BPTX0','BPTX1', # 6 x LUCID 'LUCID_A', 'LUCID_C', #'LUCID_Coinc_AC', # FTHR #'LUCID_COMM', #'LUCID_05', 'LUCID_06', # FHTR # 3 x ZDC 'ZDC_A', 'ZDC_C', 'ZDC_AND', # FTHR # 3 x CALREQ 'CAL0','CAL1','CAL2', #----------------------------- # SLOT 9 / CON 2,3 (NIM1,NIM2) #----------------------------- # 2 x MBTS 'MBTS_A', 'MBTS_C', # 24 x MBTSSI (all FTHR) 'MBTS_A0', 'MBTS_A1', 'MBTS_A2', 'MBTS_A3', 'MBTS_A4' , 'MBTS_A5', 'MBTS_A6', 'MBTS_A7', 'MBTS_A8', 'MBTS_A10', 'MBTS_A12' , 'MBTS_A14', 'MBTS_C0', 'MBTS_C1', 'MBTS_C2', 'MBTS_C3', 'MBTS_C4' , 'MBTS_C5', 'MBTS_C6', 'MBTS_C7', 'MBTS_C8', 'MBTS_C10', 'MBTS_C12' , 'MBTS_C14', # L1A for CTP monitoring itself 'NIML1A', # LHCF 'NIMLHCF', # TGC 'NIMTGC', # RPC 'NIMRPC', # TRT 'NIMTRT', #------------------------------------------------------------------- #L1 TOPO inputs #------------------------------------------------------------------- #HT 'HT190-AJ15all.ETA21', 'HT190-J15s5.ETA21', 'HT150-AJ20all.ETA31', 'HT150-J20s5.ETA31', #ZH '10MINDPHI-AJ20s2-XE50', '10MINDPHI-J20s2-XE50', '10MINDPHI-J20s2-XE30', '10MINDPHI-J20ab-XE50', '10MINDPHI-CJ20ab-XE50', #Jpsi T&P '1INVM5-EMs1-EMs6', '1INVM5-EM7s1-EMs6', '1INVM5-EM12s1-EMs6', #W T&P '05MINDPHI-AJj10s6-XE0', '10MINDPHI-AJj10s6-XE0', '15MINDPHI-AJj10s6-XE0', '05MINDPHI-EM12s6-XE0', '15MINDPHI-EM12s6-XE0', '05MINDPHI-EM15s6-XE0', '15MINDPHI-EM15s6-XE0', '05RATIO-XE0-HT0-AJj15all.ETA49', '90RATIO2-XE0-HT0-AJj15all.ETA49', '250RATIO2-XE0-HT0-AJj15all.ETA49', 'HT20-AJj15all.ETA49', 'NOT-02MATCH-EM10s1-AJj15all.ETA49', '25MT-EM12s6-XE0', '35MT-EM12s6-XE0', '35MT-EM15s6-XE0', # central muon 'MULT-CMU4ab', 'MULT-CMU6ab', #B-jet '0DR04-MU4ab-CJ15ab', '0DR04-MU4ab-CJ20ab', '0DR04-MU4ab-CJ30ab', '0DR04-MU6ab-CJ20ab', '0DR04-MU6ab-CJ25ab', #B-physics #SX '2DR15-2MU4ab', #SX '2INVM999-2MU4ab', #SX '4INVM8-2MU4ab', '2DR15-2MU6ab', #SX '2INVM999-2MU6ab', #SX '4INVM8-2MU6ab', # L1 thresholds for L1Topo streamers '2DR99-2MU4ab', '5DETA99-5DPHI99-MU6ab-MU4ab', '5DETA99-5DPHI99-2MU6ab', '0DR10-MU10ab-MU6ab', '0DR15-2MU6ab', '0DETA04-0DPHI03-EM8abi-MU10ab', '0DETA04-0DPHI03-EM15abi-MUab', '10MINDPHI-AJ20s2-XE50', '10MINDPHI-J20s2-XE50', '10MINDPHI-J20ab-XE50', '10MINDPHI-CJ20ab-XE50', '900INVM9999-AJ30s6-AJ20s6', '800INVM9999-AJ30s6-AJ20s6', '700INVM9999-AJ30s6-AJ20s6', '500INVM9999-AJ30s6-AJ20s6', '400INVM9999-AJ30s6-AJ20s6', #'350INVM9999-AJ30s6-AJ20s6', '300INVM9999-AJ30s6-AJ20s6', '200INVM9999-AJ30s6-AJ20s6', '100INVM9999-AJ30s6-AJ20s6', #'350INVM9999-J30s6-J20s6', #'300INVM9999-J30s6-J20s6', #'250INVM9999-J30s6-J20s6', #'200INVM9999-J30s6-J20s6', 'HT150-AJj15all.ETA49', '0MATCH-4AJ20.ETA31-4AJj15.ETA31', '100RATIO-0MATCH-TAU30si2-EMall', 'NOT-0MATCH-TAU30si2-EMall', '0DR28-MU10ab-TAU12abi', '1DISAMB-TAU12abi-J25ab', '1DISAMB-EM15his2-TAU12abi-J25ab', 'DISAMB-0DR28-EM15his2-TAU12abi', '1DISAMB-J25ab-0DR28-EM15his2-TAU12abi', '1DISAMB-TAU20abi-TAU12abi-J25ab', '0DR25-TAU20abi-TAU12abi', '0DR28-TAU20abi-TAU12abi', '0DETA20-0DPHI20-TAU20abi-TAU12abi', '1DISAMB-J25ab-0DR25-TAU20abi-TAU12abi', '1DISAMB-J25ab-0DR28-TAU20abi-TAU12abi', 'DISAMB-30INVM-EM20his2-TAU12ab', '400INVM9999-AJ30s6.ETA31-AJ20s6.31ETA49', 'LAR-EM50s1', 'LAR-J100s1', '2INVM9-2MU6ab', '7INVM15-2MU4ab', '2INVM8-ONEBARREL-MU6ab-MU4ab', '0DR24-2CMU4ab', '0DR22-2MU6ab', '0DR34-2MU4ab', '0DR24-2MU4ab', '0DR24-CMU4ab-MU4ab', '2INVM8-CMU4ab-MU4ab', '0DR15-2MU4ab', '0DR15-MU6ab-MU4ab', '0DR22-MU6ab-MU4ab', '8INVM15-MU6ab-MU4ab', '8INVM15-2MU6ab', '2INVM8-2MU4ab', # ATR-15197 '2INVM9-2MU4ab', '2INVM8-MU6ab-MU4ab', # ATR-15197 '2INVM9-MU6ab-MU4ab', '2INVM9-2MU4ab', '2INVM9-MU6ab-MU4ab', 'KF-XE40-AJall', 'KF-XE50-AJall', 'KF-XE55-AJall', 'KF-XE60-AJall', 'KF-XE65-AJall', 'KF-XE75-AJall', 'LATE-MU10s1', 'SC111-CJ15ab.ETA26', 'SC85-CJ15ab.ETA26', ] Lvl1Flags.items = [ 'L1_EM3', 'L1_EM4', 'L1_EM5', 'L1_EM7', 'L1_EM8', 'L1_EM10', 'L1_EM12', 'L1_EM14', 'L1_EM16', #'L1_EM18', 'L1_EM20', #'L1_EM22', 'L1_2EM10', 'L1_2EM3', 'L1_2EM5', 'L1_2EM7', # tau beam items #'L1_TAU8', #muons #'L1_MU0', 'L1_MU10', 'L1_MU15', 'L1_MU20', 'L1_MU4', 'L1_MU6', #'L1_2MU0', 'L1_2MU4', #'L1_2MU0_MU6', 'L1_2MU10', 'L1_2MU20', 'L1_2MU6', 'L1_3MU6', 'L1_MU6_2MU4', #jets 'L1_J5', 'L1_J10', 'L1_J15', 'L1_J20', 'L1_J30', #'L1_J35', 'L1_J50', 'L1_J75', 'L1_J175', #jet energy 'L1_2J15', 'L1_3J10', 'L1_3J15', 'L1_4J10', 'L1_4J15', #'L1_JE200', #'L1_JE300', #'L1_JE500', # forward jets 'L1_J10.31ETA49', 'L1_J15.31ETA49', 'L1_J20.31ETA49', #'L1_FJ30', #'L1_FJ55' , #'L1_FJ95', #MinBias 'L1_LUCID_A', 'L1_LUCID_C', 'L1_LUCID_A_C', 'L1_LUCID', #'L1_LUCID_COMM', 'L1_MBTS_2', 'L1_MBTS_2_BGRP9', 'L1_MBTS_2_BGRP11', 'L1_MBTS_2_EMPTY', 'L1_MBTS_2_UNPAIRED_ISO', 'L1_MBTS_2_UNPAIRED_NONISO', 'L1_MBTS_1', 'L1_MBTS_1_EMPTY', 'L1_MBTS_1_UNPAIRED_ISO', 'L1_MBTS_1_UNPAIRED_NONISO', 'L1_MBTS_1_OVERLAY', 'L1_MBTS_1_1', 'L1_MBTS_1_1_OVERLAY', 'L1_MBTS_2_2', 'L1_MBTS_3_3', 'L1_MBTS_4_4', 'L1_MBTS_1_1_BGRP11', #'L1_MBTS_1_1_VTE50', #'L1_MBTS_2_2_VTE50', #TRT 'L1_TRT_FILLED', 'L1_TRT_EMPTY', #randoms 'L1_RD0_BGRP9', 'L1_RD0_FILLED', 'L1_RD0_FILLED_OVERLAY', 'L1_RD0_FIRSTEMPTY', 'L1_RD0_UNPAIRED_ISO', 'L1_RD0_EMPTY', 'L1_RD1_FILLED', 'L1_RD1_EMPTY', #MET #total energy 'L1_TE5', 'L1_TE10', 'L1_TE20', 'L1_TE50', 'L1_TE70', 'L1_TE90', 'L1_TE120', 'L1_TE160', 'L1_TE5_NZ', #'L1_TE5_VTE200', # restricted TE 'L1_TE10.0ETA24', 'L1_TE15.0ETA24', 'L1_TE20.0ETA24', 'L1_TE25.0ETA24', 'L1_TE30.0ETA24', 'L1_TE35.0ETA24', 'L1_TE40.0ETA24', 'L1_TE45.0ETA24', # restricted TE for overlay #'L1_TE500.0ETA49_OVERLAY', #'L1_TE1500.0ETA49_OVERLAY', #'L1_TE3000.0ETA49_OVERLAY', #'L1_TE3500.0ETA49_OVERLAY', #'L1_TE5000.0ETA49_OVERLAY', #'L1_TE6500.0ETA49_OVERLAY', #'L1_TE8000.0ETA49_OVERLAY', #'L1_TE9000.0ETA49_OVERLAY', #Min Bias 'L1_ZDC', 'L1_ZDC_A', 'L1_ZDC_C', 'L1_ZDC_AND', #'L1_ZDC_A_VTE20', 'L1_ZDC_A_C', 'L1_ZDC_A_C_BGRP11', 'L1_ZDC_A_C_OVERLAY', 'L1_ZDC_A_OVERLAY', 'L1_ZDC_C_OVERLAY', 'L1_TE5_OVERLAY', 'L1_TE10_OVERLAY', 'L1_TE20_OVERLAY', 'L1_TE50_OVERLAY', #'L1_ZDC_A_C_TE50', 'L1_BCM_Wide', 'L1_BCM_HT_BGRP0','L1_BCM_Wide_BGRP0','L1_BCM_AC_CA_BGRP0', 'L1_ZDC_MBTS_1', 'L1_ZDC_MBTS_2', 'L1_ZDC_MBTS_1_1', 'L1_ZDC_MBTS_2_2', #'L1_ZDC_VTE200', #ZDC one side #'L1_ZDC_A_VZDC_C_VTE200', #'L1_ZDC_C_VZDC_A_VTE200', 'L1_EM3_VZDC_A', 'L1_EM3_VZDC_C', 'L1_2EM3_VZDC_A', 'L1_2EM3_VZDC_C', 'L1_EM5_VZDC_A', 'L1_EM5_VZDC_C', 'L1_TE5_VZDC_A', 'L1_TE5_VZDC_C', 'L1_J5_VZDC_A', 'L1_J5_VZDC_C', 'L1_J10_VZDC_A', 'L1_J10_VZDC_C', 'L1_J15_VZDC_A', 'L1_J15_VZDC_C', 'L1_J20_VZDC_A', 'L1_J20_VZDC_C', 'L1_MU4_VZDC_A', 'L1_MU4_VZDC_C', 'L1_2MU4_VZDC_A', 'L1_2MU4_VZDC_C', 'L1_MU4_VTE10_VZDC_A', 'L1_MU4_VTE10_VZDC_C', 'L1_2MU4_VTE10_VZDC_A', 'L1_2MU4_VTE10_VZDC_C', #'L1_MU4_VZDC_A_C', 'L1_MU6_VZDC_A', 'L1_MU6_VZDC_C', 'L1_MU6_VTE10_VZDC_A', 'L1_MU6_VTE10_VZDC_C', #'L1_MU6_VZDC_A_C', 'L1_RD0_FILLED_VZDC_A', 'L1_RD0_FILLED_VZDC_C', 'L1_MBTS_2_C_VZDC_A', 'L1_MBTS_2_A_VZDC_C', 'L1_ZDC_A_VZDC_C', 'L1_ZDC_C_VZDC_A', 'L1_VTE10_VZDC_C', 'L1_VTE10_VZDC_A', 'L1_TE10_VZDC_A', 'L1_TE10_VZDC_C', 'L1_TE20_VZDC_A', 'L1_TE20_VZDC_C', 'L1_ZDC_XOR', #'L1_ZDC_XOR_VTE200', #'L1_ZDC_XOR_TE5_VTE200', #'L1_ZDC_XOR_TRT_VTE200', #coincidence #'L1_ZDC_A_C_VTE200', #'L1_ZDC_A_C_TE5_VTE200', #NIMDIR stuff # temporary commented out in HI_v4: 'L1_NIM_S8C2B21', 'L1_NIM_S8C2B22', 'L1_NIM_S8C2B23', # votoed by TE #UPC triggers #'L1_MU0_NZ', 'L1_J15_NZ', #'L1_2MU0_NZ', #'L1_2EM3_NZ', 'L1_2J15_NZ', #'L1_MU0_NL', #'L1_EM3_NL', 'L1_J15_NL', #'L1_2MU0_NL', #'L1_2EM3_NL', 'L1_2J15_NL', #'L1_MU0_MV', #'L1_2MU0_MV', #'L1_MU0_MV_VTE50', #'L1_MU0_VTE50', #'L1_MU0_TE50', #'L1_MU4_MV_VTE50', #'L1_MU4_VTE50', 'L1_MU4_VTE10', 'L1_2MU4_VTE10', 'L1_MU4_TE50', 'L1_MU4_TE70', 'L1_MU4_TE90', 'L1_MU4_TE120', 'L1_MU4_TE160', 'L1_MU4_TE10.0ETA24', 'L1_MU4_TE15.0ETA24', 'L1_MU4_TE20.0ETA24', 'L1_MU4_TE25.0ETA24', 'L1_MU4_TE30.0ETA24', 'L1_MU4_TE35.0ETA24', 'L1_MU4_TE40.0ETA24', #'L1_EM3_MV_VTE50', #'L1_EM3_VTE50', #'L1_J10_VTE100', #'L1_J10_VTE200', ## VDM 'L1_ZDC_A_C_BGRP7','L1_LUCID_BGRP7',#'L1_BGRP7', #MBTS 32 inputs 'L1_MBTSA0', 'L1_MBTSA1', 'L1_MBTSA2', 'L1_MBTSA3', 'L1_MBTSA4', 'L1_MBTSA5', 'L1_MBTSA6', 'L1_MBTSA7', 'L1_MBTSA8', ##'L1_MBTSA9', 11, 13, 15 not in run2 anymore 'L1_MBTSA10', ##'L1_MBTSA11', 'L1_MBTSA12', ##'L1_MBTSA13', 'L1_MBTSA14',##'L1_MBTSA15', 'L1_MBTSC0', 'L1_MBTSC1', 'L1_MBTSC2', 'L1_MBTSC3', 'L1_MBTSC4', 'L1_MBTSC5', 'L1_MBTSC6', 'L1_MBTSC7', 'L1_MBTSC8', ##'L1_MBTSC9', 'L1_MBTSC10', ##'L1_MBTSC11', 'L1_MBTSC12', ##'L1_MBTSC13', 'L1_MBTSC14', ##'L1_MBTSC15', #background 'L1_EM7_UNPAIRED_ISO','L1_EM7_UNPAIRED_NONISO','L1_EM7_EMPTY','L1_EM7_FIRSTEMPTY', #MU UNPAIRED-EMPTY-ETC #'L1_MU0_UNPAIRED_ISO','L1_MU0_UNPAIRED_NONISO','L1_MU0_EMPTY','L1_MU0_FIRSTEMPTY', 'L1_MU4_UNPAIRED_ISO', 'L1_MU4_UNPAIRED_NONISO', 'L1_MU4_EMPTY', 'L1_MU4_FIRSTEMPTY', 'L1_MU6_FIRSTEMPTY','L1_MU10_EMPTY', #'L1_2MU0_EMPTY', 'L1_2MU4_EMPTY', 'L1_2MU6_UNPAIRED_ISO','L1_2MU6_UNPAIRED_NONISO','L1_2MU6_EMPTY','L1_2MU6_FIRSTEMPTY', #TAU UNPAIRED-EMPTY-ETC 'L1_TAU12_UNPAIRED_ISO','L1_TAU12_UNPAIRED_NONISO','L1_TAU12_EMPTY','L1_TAU12_FIRSTEMPTY', #J UNPAIRED-EMPTY-ETC 'L1_J10_UNPAIRED_ISO','L1_J10_UNPAIRED_NONISO','L1_J10_EMPTY','L1_J10_FIRSTEMPTY', 'L1_J30_EMPTY', 'L1_J30_UNPAIRED', 'L1_J30_FIRSTEMPTY', #FJ UNPAIRED-EMPTY-ETC #'L1_FJ10_UNPAIRED_ISO', 'L1_FJ10_FIRSTEMPTY', #'L1_J10.31ETA49_EMPTY', #ZDC 'L1_ZDC_EMPTY', 'L1_ZDC_A_EMPTY', 'L1_ZDC_C_EMPTY', 'L1_ZDC_UNPAIRED_ISO', 'L1_ZDC_UNPAIRED_NONISO', #L1_ZDC_AND 'L1_ZDC_AND_EMPTY', 'L1_ZDC_AND_UNPAIRED_ISO', 'L1_ZDC_AND_UNPAIRED_NONISO', # 'L1_ZDC_A_C_BGRP9', 'L1_ZDC_A_BGRP9', 'L1_ZDC_C_BGRP9', 'L1_ZDC_A_C_EMPTY', 'L1_ZDC_A_C_UNPAIRED_ISO', 'L1_ZDC_A_C_UNPAIRED_NONISO', #MBTS 'L1_MBTS_1_1_BGRP9', 'L1_MBTS_1_1_EMPTY', 'L1_MBTS_2_2_EMPTY', 'L1_MBTS_3_3_EMPTY', 'L1_MBTS_1_1_UNPAIRED_ISO', 'L1_MBTS_2_2_UNPAIRED_ISO', 'L1_MBTS_3_3_UNPAIRED_ISO', 'L1_MBTS_4_4_UNPAIRED_ISO', 'L1_MBTS_2_A', 'L1_MBTS_2_C', 'L1_MBTS_4_A', 'L1_MBTS_4_C', #LUCID 'L1_LUCID_EMPTY', 'L1_LUCID_UNPAIRED_ISO',#'L1_LUCID_COMM_UNPAIRED_ISO', 'L1_LUCID_A_C_EMPTY', 'L1_LUCID_A_C_UNPAIRED_ISO', 'L1_LUCID_A_C_UNPAIRED_NONISO', 'L1_ZDC_A_UNPAIRED_ISO', 'L1_ZDC_C_UNPAIRED_ISO', 'L1_ZDC_A_UNPAIRED_NONISO', 'L1_ZDC_C_UNPAIRED_NONISO', #ZB 'L1_ZB', # lumi measurements 'L1_MLZ_A', 'L1_MLZ_C', 'L1_MBLZ', # BGRP and BPTX 'L1_BPTX0_BGRP0', 'L1_BPTX1_BGRP0', #'L1_BGRP0', #'L1_BGRP1', #BCM 'L1_BCM_Wide_EMPTY','L1_BCM_Wide_UNPAIRED_ISO','L1_BCM_Wide_UNPAIRED_NONISO', 'L1_BCM_AC_CA_UNPAIRED_ISO', #LHCF 'L1_LHCF', 'L1_LHCF_EMPTY', 'L1_LHCF_UNPAIRED_ISO', ######### Run-2 monitoring items taken from monitoring rules 'L1_BCM_AC_ABORTGAPNOTCALIB', 'L1_BCM_AC_CALIB', 'L1_BCM_AC_UNPAIRED_ISO', 'L1_BCM_AC_UNPAIRED_NONISO', 'L1_BCM_CA_ABORTGAPNOTCALIB', 'L1_BCM_CA_CALIB', 'L1_BCM_CA_UNPAIRED_ISO', 'L1_BCM_CA_UNPAIRED_NONISO', 'L1_BCM_Wide_ABORTGAPNOTCALIB', 'L1_BCM_Wide_CALIB', 'L1_J12_ABORTGAPNOTCALIB', 'L1_J12_UNPAIRED_ISO', 'L1_J12_UNPAIRED_NONISO', 'L1_J12_BGRP12', 'L1_J30.31ETA49_UNPAIRED_ISO', 'L1_J30.31ETA49_UNPAIRED_NONISO', 'L1_J30.31ETA49_BGRP12', 'L1_J50_ABORTGAPNOTCALIB', 'L1_J50_UNPAIRED_ISO', 'L1_J50_UNPAIRED_NONISO', 'L1_CALREQ2', 'L1_EM10VH', 'L1_EM15', 'L1_EM15HI_2TAU12IM', 'L1_EM15HI_2TAU12IM_J25_3J12', 'L1_EM15HI_2TAU12IM_XE35', 'L1_EM15HI_TAU40_2TAU15', #### NO-MU10 'L1_MU10_TAU12IM', #### NO-MU10 'L1_MU10_TAU12IM_J25_2J12', #### NO-MU10 'L1_MU10_TAU12IM_XE35', #### NO-MU10 'L1_MU10_TAU12IM_XE40', #### NO-MU10 'L1_MU10_TAU12_J25_2J12', #### NO-MU10 'L1_MU10_TAU20', #### NO-MU10 'L1_MU10_TAU20IM', 'L1_TAU8_EMPTY', 'L1_TAU8_FIRSTEMPTY', 'L1_TAU12', 'L1_TAU12IL', 'L1_TAU12IM', 'L1_TAU12IT', 'L1_TAU20', 'L1_TAU20IL', #'L1_TAU20IL_2TAU12IL_J25_2J20_3J12', 'L1_TAU20IM', #'L1_TAU20IM_2J20_XE45', # 'L1_TAU20IM_2J20_XE50', 'L1_TAU20IM_2TAU12IM', #'L1_TAU20IM_2TAU12IM_J25_2J20_3J12', # 'L1_TAU20IM_2TAU12IM_XE35', # 'L1_TAU20IM_2TAU12IM_XE40', 'L1_TAU20IT', 'L1_TAU20_2J20_XE45', 'L1_TAU20_2TAU12', 'L1_TAU20_2TAU12_XE35', #'L1_TAU25IT_2TAU12IT_2J25_3J12', 'L1_TAU30', 'L1_TAU40', #'L1_TAU60', #'L1_TAU8', # 'L1_EM20VH_FIRSTEMPTY', 'L1_EM20VHI', 'L1_EM3_EMPTY', 'L1_EM7_EMPTY', 'L1_EM7_FIRSTEMPTY', 'L1_J100', #'L1_J100.31ETA49', #'L1_J100.31ETA49_FIRSTEMPTY', 'L1_J100_FIRSTEMPTY', 'L1_J12', 'L1_J12_EMPTY', 'L1_J12_FIRSTEMPTY', 'L1_J30.31ETA49', 'L1_J30.31ETA49_EMPTY', 'L1_J40_XE50', 'L1_J40_XE60', 'L1_J75.31ETA49', 'L1_J75_XE40', 'L1_RD0_ABORTGAPNOTCALIB', 'L1_TGC_BURST', 'L1_XE35', 'L1_XE50', 'L1_XE80', #'L1_LAR-EM', #'L1_LAR-J', #Seeds fop L1Topo 'L1_EM7_MU10', 'L1_MU4_J12', 'L1_MU10_TAU12IM', #L1Topo items 'L1_2MU4-B', 'L1_2MU4-BO', 'L1_2MU4_J20_XE30_DPHI-J20s2XE30', 'L1_2MU6-B', 'L1_2MU6-BO', 'L1_30M-EM20ITAU12', 'L1_3J15_BTAG-MU4J15', 'L1_3J15_BTAG-MU4J30', 'L1_3J15_BTAG-MU6J25', 'L1_3J20_4J20.0ETA49_MJJ-400', 'L1_3J20_4J20.0ETA49_MJJ-700', 'L1_3J20_4J20.0ETA49_MJJ-800', 'L1_3J20_4J20.0ETA49_MJJ-900', 'L1_3J20_BTAG-MU4J20', 'L1_BOX-TAU20ITAU12I', 'L1_BPH-2M8-2MU4-B_BPH-0DR15-2MU4', 'L1_BPH-2M8-MU6MU4-B_BPH-0DR15-MU6MU4', 'L1_BPH-2M9-2MU6_BPH-2DR15-2MU6', 'L1_BPH-7M15-2MU4_BPH-0DR24-2MU4', 'L1_BPH-7M15-2MU4_BPH-0DR24-2MU4-B', 'L1_BPH-7M15-2MU4_BPH-0DR24-2MU4-BO', 'L1_BPH-8M15-2MU6', 'L1_BPH-8M15-2MU6_BPH-0DR22-2MU6', 'L1_BPH-8M15-MU6MU4', 'L1_BPH-8M15-MU6MU4_BPH-0DR22-MU6MU4', 'L1_BTAG-MU4J15', 'L1_BTAG-MU4J30', 'L1_BTAG-MU6J20', 'L1_BTAG-MU6J25', 'L1_DPHI-AJ20s2XE50', 'L1_DPHI-CJ20XE50', 'L1_DPHI-J20XE50', 'L1_DPHI-J20s2XE50', 'L1_DR-EM15TAU12I', 'L1_DR-EM15TAU12I-J25', 'L1_DR-MU10TAU12I', 'L1_DR-MU10TAU12I_TAU12I-J25', 'L1_DR-TAU20ITAU12I', 'L1_DR-TAU20ITAU12I-J25', 'L1_DR25-TAU20ITAU12I', 'L1_DR25-TAU20ITAU12I-J25', 'L1_DY-BOX-2MU6', 'L1_DY-DR-2MU4', #'L1_EM10_W-MT25', #'L1_EM10_W-MT25_W-15DPHI-JXE-0_W-15DPHI-EMXE', #'L1_EM10_W-MT25_W-15DPHI-JXE-0_W-15DPHI-EMXE_W-90RO2-XEHT-0', #'L1_EM10_W-MT25_W-15DPHI-JXE-0_W-15DPHI-EMXE_XS20', #'L1_EM10_W-MT25_W-15DPHI-JXE-0_W-15DPHI-EMXE_XS30', 'L1_EM15TAU12I-J25', 'L1_EM15_W-MT35', #'L1_EM15_W-MT35_W-05DPHI-JXE-0_W-05DPHI-EMXE', #'L1_EM15_W-MT35_W-05DPHI-JXE-0_W-05DPHI-EMXE_W-250RO2-XEHT-0', #'L1_EM15_W-MT35_W-05DPHI-JXE-0_W-05DPHI-EMXE_XS30', #'L1_EM15_W-MT35_W-05DPHI-JXE-0_W-05DPHI-EMXE_XS60', #'L1_EM18VH_MJJ-300', 'L1_HT150-J20.ETA31', 'L1_HT150-J20s5.ETA31', 'L1_HT150-JJ15.ETA49', #'L1_HT150-JJ15.ETA49_MJJ400', 'L1_HT190-J15.ETA21', 'L1_HT190-J15s5.ETA21', 'L1_HT150-J20s5.ETA31_MJJ-400-CF', 'L1_J25_2J20_3J12_BOX-TAU20ITAU12I', 'L1_J30_2J20_4J20.0ETA49_MJJ-400', 'L1_J30_2J20_4J20.0ETA49_MJJ-700', 'L1_J30_2J20_4J20.0ETA49_MJJ-800', 'L1_J30_2J20_4J20.0ETA49_MJJ-900', 'L1_J4-MATCH', 'L1_J40_DPHI-CJ20XE50', 'L1_J40_DPHI-J20XE50', 'L1_J40_DPHI-J20s2XE50', 'L1_J40_XE50_DPHI-J20s2XE50', 'L1_JPSI-1M5', 'L1_JPSI-1M5-EM12', 'L1_JPSI-1M5-EM7', 'L1_KF-XE40', 'L1_KF-XE50', 'L1_KF-XE55', 'L1_KF-XE60', 'L1_KF-XE65', 'L1_KF-XE75', 'L1_LAR-EM', 'L1_LAR-J', 'L1_LFV-EM15I', 'L1_LFV-EM8I', 'L1_LFV-MU', 'L1_LFV-MU6', 'L1_LLP-NOMATCH', 'L1_LLP-RO', 'L1_MJJ-100', 'L1_MJJ-400', 'L1_MJJ-400-CF', 'L1_MJJ-700', 'L1_MJJ-800', 'L1_MJJ-900', 'L1_MU10_TAU12I-J25', 'L1_MU4_J20_XE30_DPHI-J20s2XE30', 'L1_MU6MU4-BO', 'L1_MU6_2MU4-B', 'L1_MU6_MJJ-200', 'L1_MU6_MJJ-300', 'L1_MU6_MJJ-400', 'L1_MU6_MJJ-500', 'L1_TAU20ITAU12I-J25', 'L1_W-05RO-XEHT-0', 'L1_W-250RO2-XEHT-0', 'L1_W-90RO2-XEHT-0', 'L1_W-HT20-JJ15.ETA49', 'L1_W-NOMATCH', 'L1_XE35_MJJ-200', ] Lvl1Flags.CtpIdMap = { 'L1_EM3' : 0, 'L1_EM5' : 1, 'L1_EM7' : 2, 'L1_EM10' : 3, 'L1_EM12' : 4, 'L1_EM14' : 5, 'L1_2MU4_EMPTY' : 6, 'L1_RD0_UNPAIRED_NONISO' : 7, 'L1_BCM_AC_CA_UNPAIRED_NONISO': 8, 'L1_2EM10' : 9, 'L1_2EM3' : 10, 'L1_2EM5' : 11, 'L1_MU4_VTE10' : 12, 'L1_2MU4_VTE10' : 277, 'L1_NIM_S8C2B21' : 13,#DIRNIM 'L1_NIM_S8C2B22' : 14,#DIRNIM 'L1_MBTS_4_4' : 15, 'L1_RD1_EMPTY': 16, 'L1_RD0_FILLED' : 17, 'L1_RD0_FIRSTEMPTY' : 18, 'L1_RD0_UNPAIRED_ISO' : 19, 'L1_MBTS_4_4_UNPAIRED_ISO': 20, 'L1_MBTS_2_A': 21, 'L1_MBTS_2_C': 22, 'L1_MBTS_4_A': 23, 'L1_MBTS_4_C': 24, 'L1_MU4_VTE10_VZDC_A': 25, 'L1_MU4_VTE10_VZDC_C': 26, 'L1_MU6_VTE10_VZDC_A': 27, 'L1_MU6_VTE10_VZDC_C': 28, 'L1_MU4_TE10.0ETA24': 29, 'L1_MU4_TE15.0ETA24': 30, 'L1_MU4_TE20.0ETA24': 31, 'L1_MU4_TE25.0ETA24': 32, 'L1_MU4_TE30.0ETA24': 33, 'L1_MU4_TE35.0ETA24': 34, 'L1_MU4_TE40.0ETA24': 35, 'L1_EM20VHI': 36, 'L1_ZDC_A_C_UNPAIRED_NONISO' : 37, 'L1_MU6_2MU4' : 38, #'L1_MU4_VTE50' : 38, #'L1_MU4_MV_VTE50' : 39, 'L1_ZDC_A_C_OVERLAY' : 40, 'L1_MU4_TE70' : 41, #'L1_ZDC_A_C_TE50' : 42, 'L1_MU4_TE50' : 43, 'L1_MU4_TE90' : 44, 'L1_MU4_TE120' : 45, 'L1_MU4_TE160' : 46, #'L1_BGRP7' : 47, 'L1_LUCID_BGRP7' : 48, 'L1_MBTS_2_BGRP7' : 49, 'L1_MBTSC4' : 50, 'L1_MBTSC5' : 51, 'L1_MBTSC6' : 52, 'L1_MBTSC7' : 53, 'L1_MBTSC8' : 54, 'L1_MBTSC9' : 55, 'L1_MBTSC10' : 56, 'L1_MBTSC11' : 57, 'L1_MBTSC12' : 58, 'L1_MBTSC13' : 59, 'L1_MBTSC14' : 60, 'L1_MBTSC15' : 61, 'L1_RD0_EMPTY' : 62, 'L1_RD1_FILLED' : 63, 'L1_MBTSC3' : 65, 'L1_MU4_FIRSTEMPTY' : 67, 'L1_MU6_FIRSTEMPTY' : 68, 'L1_J40_XE60' : 69, 'L1_XE80' : 70, 'L1_2MU6' : 71, 'L1_2MU10' : 72, 'L1_2MU20' : 73, #'L1_ZDC_A_VTE20' : 74, 'L1_MU10_EMPTY' : 75, 'L1_MBTSC2' : 76, 'L1_LUCID_UNPAIRED_NONISO' : 77, 'L1_BCM_Wide_BGRP0' : 80, 'L1_BCM_AC_CA_BGRP0' : 81, 'L1_MBTSC1' : 82, 'L1_J10_UNPAIRED' : 83, 'L1_EM4' : 84, 'L1_EM16' : 85, 'L1_MBTSC0' : 86, 'L1_J30_UNPAIRED' : 87, 'L1_MU15' : 88, #'L1_MU0' : 89, 'L1_MU6' : 90, 'L1_MU10' : 91, 'L1_MU20' : 92, 'L1_MU4' : 93, #'L1_2MU0' : 94, 'L1_2MU4' : 95, 'L1_J20' : 96, 'L1_J10' : 97, 'L1_J15' : 98, 'L1_J30' : 99, #'L1_J35' : 100, 'L1_J50' : 102, 'L1_J18' : 104, 'L1_J5' : 105, 'L1_BCM_AC_CA_UNPAIRED_ISO' : 106, 'L1_BCM_Wide_EMPTY' : 107, 'L1_BCM_Wide_UNPAIRED_ISO' : 108, 'L1_L1_BCM_Wide_UNPAIRED_NONISO' : 109, #'L1_J10_UNPAIRED_ISO' : 110, # duplicated below #'L1_J10_UNPAIRED_NONISO' : 111, # duplicated below 'L1_LUCID_UNPAIRED_ISO' : 113, 'L1_TAU8_FIRSTEMPTY' : 114, 'L1_TAU8_UNPAIRED_ISO' : 115, 'L1_TAU8_UNPAIRED_NONISO' : 116, 'L1_ZDC_A_C_UNPAIRED_ISO' : 117, #'L1_ZDC_UNPAIRED_ISO' : 118, # duplicated below #'L1_ZDC_UNPAIRED_NONISO' : 119, # duplicated below 'L1_MBTSA0' : 120, 'L1_MBTSA1' : 122, #'L1_FJ0' : 123, 'L1_2MU6_UNPAIRED_ISO' : 124, 'L1_2MU6_UNPAIRED_NONISO' : 125, 'L1_BCM_Wide_UNPAIRED_NONISO' : 126, 'L1_EM7_UNPAIRED_ISO' : 127, 'L1_EM7_UNPAIRED_NONISO' : 128, #'L1_J10_FIRSTEMPTY' : 129, # duplicated below 'L1_J30_FIRSTEMPTY' : 130, 'L1_MBTSA2' : 131, 'L1_TE5' : 132, 'L1_TE10' : 133, 'L1_TE20' : 134, 'L1_TE70' : 138, 'L1_TE50' : 136, 'L1_TE160' : 135, 'L1_MBTSA3' : 137, 'L1_2J5' : 139, 'L1_2J10' : 140, 'L1_TE90' : 141, 'L1_TE120' : 142, 'L1_2MU6_EMPTY' : 143, 'L1_2MU6_FIRSTEMPTY' : 144, 'L1_ZDC_MBTS_1' : 145, 'L1_ZDC_MBTS_2' : 146, 'L1_ZDC_MBTS_1_1' : 147, 'L1_ZDC_MBTS_2_2' : 148, 'L1_MBTS_1_EMPTY' : 149, 'L1_MBTS_1_1_EMPTY' : 150, 'L1_MBTS_2_EMPTY' : 151, 'L1_TAU8_EMPTY' : 152, 'L1_MBTSA4' : 153, 'L1_MBTSA5' : 154, 'L1_MBTSA6' : 155, 'L1_MBTSA7' : 156, 'L1_NIM_S8C2B23' : 157,#DIRNIM #'L1_MU0_UNPAIRED_NONISO' : 159, #'L1_MU0_UNPAIRED_ISO' : 160, 'L1_MBTSA8' : 161, #'L1_MU0_EMPTY' : 162, 'L1_MBTSA9' : 163, 'L1_MBTSA10' : 164, 'L1_MU4_UNPAIRED_NONISO': 165, 'L1_MU4_EMPTY' : 166, 'L1_MU4_UNPAIRED_ISO': 167, 'L1_MBTSA11' : 168, #'L1_J10_EMPTY' : 171, 'L1_J30_EMPTY' : 172, 'L1_MBTSA12' : 173, 'L1_MBTSA13' : 174, #'L1_FJ0_EMPTY' : 175, 'L1_MBTSA14' : 176, 'L1_EM3_EMPTY' : 177, 'L1_MBTSA15' : 178, 'L1_ZDC_A_UNPAIRED_NONISO' : 179, 'L1_ZDC_C_UNPAIRED_NONISO' : 180, #'L1_FJ0_UNPAIRED_ISO' : 180, #'L1_FJ5_UNPAIRED_ISO' : 181, 'L1_ZDC_UNPAIRED_ISO' : 182, 'L1_ZDC_UNPAIRED_NONISO' : 183, 'L1_J10_EMPTY' : 184, 'L1_J10_FIRSTEMPTY' : 185, 'L1_J10_UNPAIRED_ISO' : 186, 'L1_J10_UNPAIRED_NONISO' : 187, 'L1_ZDC_A_BGRP7' : 188, 'L1_ZDC_AND' : 189, 'L1_ZDC_A' : 190, 'L1_ZDC_C' : 191, 'L1_ZDC_A_C' : 192, 'L1_ZDC' : 193, 'L1_ZDC_C_BGRP7' : 194, 'L1_ZDC_A_UNPAIRED_ISO' : 195, 'L1_ZDC_A_C_EMPTY' : 196, 'L1_ZDC_EMPTY' : 197, 'L1_J20.31ETA49': 198, 'L1_J10.31ETA49' : 199, 'L1_MBTS_1_UNPAIRED_ISO': 200, 'L1_MBTS_1_UNPAIRED_NONISO': 201, 'L1_MBTS_1_1_UNPAIRED_ISO': 202, 'L1_J15.31ETA49': 203, 'L1_MBTS_2_UNPAIRED_ISO': 204, 'L1_MBTS_2_UNPAIRED_NONISO': 205, 'L1_LUCID_A_C_UNPAIRED_NONISO': 206, 'L1_LUCID_A_C_UNPAIRED_ISO': 208, 'L1_LUCID_A_UNPAIRED': 209, 'L1_LUCID_C_UNPAIRED': 210, 'L1_LUCID_A_C_UNPAIRED': 211, 'L1_LUCID_A' : 212, 'L1_LUCID_C' : 213, 'L1_LUCID_A_C' : 214, 'L1_LUCID' : 215, 'L1_TE10_VZDC_A' : 216, 'L1_TE10_VZDC_C' : 217, 'L1_TE20_VZDC_A' : 218, 'L1_TE20_VZDC_C' : 219, #'L1_FJ5_EMPTY' : 218, #'L1_FJ0_C' : 219, 'L1_J20_VZDC_A': 220, 'L1_J20_VZDC_C': 221, 'L1_MBTS_2' : 222, 'L1_MBTS_2_2' : 223, 'L1_MBTS_3_3' : 224, 'L1_BCM_HT_BGRP0' : 225, 'L1_MBTS_1' : 226, 'L1_ZDC_C_UNPAIRED_ISO' : 227, 'L1_MBTS_1_1' : 228, 'L1_MBTS_2_2_EMPTY' : 229, 'L1_MBTS_3_3_EMPTY' : 230, 'L1_MBTS_2_2_UNPAIRED_ISO' : 231, 'L1_MBTS_3_3_UNPAIRED_ISO' : 232, #'L1_J5_TE90' : 233, 'L1_2J5_TE90' : 234, 'L1_ZDC_A_C_BGRP11' : 235, 'L1_LUCID_A_EMPTY' : 236, 'L1_LUCID_C_EMPTY' : 237, 'L1_LUCID_A_C_EMPTY' : 238, #'L1_FJ0_A' : 239, 'L1_MBTS_1_1_BGRP11' : 240, 'L1_BPTX0_BGRP0' : 241, 'L1_BPTX1_BGRP0' : 242, 'L1_MBTS_2_BGRP9' : 243, 'L1_MBTS_1_1_BGRP9' : 244, 'L1_LUCID_EMPTY' : 245, 'L1_RD0_BGRP9' : 246, 'L1_LHCF' : 247, 'L1_ZDC_A_C_BGRP9' : 248, 'L1_MBTS_2_BGRP11' : 249, 'L1_ZB' : 250, 'L1_ZDC_A_BGRP9' : 251, #'L1_BGRP1' : 252, 'L1_VTE10_VZDC_C' : 253, 'L1_VTE10_VZDC_A' : 254, 'L1_ZDC_C_BGRP9' : 255, 'L1_MBTS_1_1_OVERLAY' : 256, 'L1_RD0_FILLED_OVERLAY' : 257, 'L1_MBTS_1_OVERLAY' : 258, 'L1_BCM_AC_ABORTGAPNOTCALIB': 259, 'L1_BCM_AC_CALIB': 260, 'L1_BCM_AC_UNPAIRED_ISO': 261, 'L1_BCM_AC_UNPAIRED_NONISO': 262, 'L1_BCM_CA_ABORTGAPNOTCALIB': 263, 'L1_BCM_CA_CALIB': 264, 'L1_BCM_CA_UNPAIRED_ISO': 265, 'L1_BCM_CA_UNPAIRED_NONISO': 266, 'L1_BCM_Wide_ABORTGAPNOTCALIB': 267, 'L1_BCM_Wide_CALIB': 268, 'L1_J12_ABORTGAPNOTCALIB': 269, 'L1_J12_UNPAIRED_ISO': 270, 'L1_J12_UNPAIRED_NONISO': 271, 'L1_J12_BGRP12': 493, 'L1_J30.31ETA49_UNPAIRED_ISO': 272, 'L1_J30.31ETA49_UNPAIRED_NONISO': 273, 'L1_J30.31ETA49_BGRP12': 494, 'L1_J50_ABORTGAPNOTCALIB': 274, 'L1_J50_UNPAIRED_ISO': 275, 'L1_J50_UNPAIRED_NONISO': 276, #'L1_TAU8': 277, 'L1_TAU12': 278, 'L1_TAU12IL': 279, 'L1_TAU12IM': 280, 'L1_TAU12IT': 281, 'L1_TAU20': 282, 'L1_TAU20IL': 283, #'L1_TAU20IL_2TAU12IL_J25_2J20_3J12': 284, 'L1_TAU20IM': 285, 'L1_TAU20IM_2TAU12IM': 286, # 'L1_TAU20IM_2J20_XE50': 287, # 'L1_TAU20IM_2TAU12IM': 288, 'L1_2MU4_VTE10_VZDC_A': 287, 'L1_2MU4_VTE10_VZDC_C': 288, #'L1_TAU20IM_2TAU12IM_J25_2J20_3J12': 289, # 'L1_TAU20IM_2TAU12IM_XE35': 290, # 'L1_TAU20IM_2TAU12IM_XE40': 291, 'L1_2MU4_VZDC_A': 290, 'L1_2MU4_VZDC_C': 291, 'L1_TAU20IT': 292, 'L1_TAU20_2J20_XE45': 293, 'L1_TAU20_2TAU12': 294, 'L1_TAU20_2TAU12_XE35': 295, #'L1_TAU25IT_2TAU12IT_2J25_3J12': 296, 'L1_TAU30': 297, 'L1_TAU40': 298, #'L1_TAU60': 299, 'L1_EM20VH_FIRSTEMPTY': 300, 'L1_EM20': 301, 'L1_EM7_EMPTY': 302, 'L1_EM7_FIRSTEMPTY': 303, 'L1_J100': 304, #'L1_J100.31ETA49': 305, #'L1_J100.31ETA49_FIRSTEMPTY': 306, 'L1_J100_FIRSTEMPTY': 307, 'L1_J12': 308, 'L1_J12_EMPTY': 309, 'L1_J12_FIRSTEMPTY': 310, 'L1_J30.31ETA49': 311, 'L1_J30.31ETA49_EMPTY': 312, 'L1_J40_XE50': 313, 'L1_J75.31ETA49': 314, 'L1_J75_XE40': 315, 'L1_RD0_ABORTGAPNOTCALIB': 316, 'L1_TGC_BURST': 317, 'L1_XE35': 318, 'L1_XE50': 319, 'L1_EM10VH': 320, 'L1_EM15': 321, 'L1_EM15HI_2TAU12IM': 322, 'L1_EM15HI_2TAU12IM_J25_3J12': 323, 'L1_EM15HI_2TAU12IM_XE35': 324, 'L1_EM15HI_TAU40_2TAU15': 325, # restricted TE 'L1_TE10.0ETA24': 326, 'L1_TE15.0ETA24': 327, 'L1_TE20.0ETA24': 328, 'L1_TE25.0ETA24': 329, 'L1_TE30.0ETA24': 320, 'L1_TE35.0ETA24': 331, 'L1_TE40.0ETA24': 332, 'L1_TE45.0ETA24': 333, 'L1_ZDC_A_OVERLAY': 334, 'L1_ZDC_C_OVERLAY': 335, 'L1_TE5_OVERLAY': 336, 'L1_TE10_OVERLAY': 337, 'L1_TE20_OVERLAY': 338, 'L1_TE50_OVERLAY': 339, 'L1_3J10': 340, 'L1_3J15': 341, 'L1_4J10': 342, 'L1_4J15': 343, 'L1_EM8': 344, 'L1_2EM7': 345, 'L1_MU4_VZDC_A_C': 346, 'L1_MU6_VZDC_A_C': 347, 'L1_MBTS_2_C_VZDC_A': 348, 'L1_MBTS_2_A_VZDC_C': 349, 'L1_2EM3_VZDC_A': 350, 'L1_2EM3_VZDC_C': 351, 'L1_MU6_VZDC_A': 352, 'L1_MU6_VZDC_C': 353, 'L1_J15_VZDC_A': 354, 'L1_J15_VZDC_C': 355, 'L1_ZDC_A_VZDC_C': 356, 'L1_ZDC_C_VZDC_A': 357, 'L1_EM3_VZDC_A': 358, 'L1_EM3_VZDC_C': 359, 'L1_EM5_VZDC_A': 360, 'L1_EM5_VZDC_C': 361, 'L1_TE5_VZDC_A': 362, 'L1_TE5_VZDC_C': 363, 'L1_J5_VZDC_A': 364, 'L1_J5_VZDC_C': 365, 'L1_J10_VZDC_A': 366, 'L1_J10_VZDC_C': 367, 'L1_MU4_VZDC_A': 368, 'L1_MU4_VZDC_C': 369, 'L1_RD0_FILLED_VZDC_A': 370, 'L1_RD0_FILLED_VZDC_C': 371, 'L1_2MU4-B' : 372, 'L1_2MU4-BO' : 373, 'L1_2MU4_J20_XE30_DPHI-J20s2XE30' : 374, 'L1_2MU6-B' : 375, 'L1_2MU6-BO' : 376, 'L1_30M-EM20ITAU12' : 377, 'L1_3J15_BTAG-MU4J15' : 378, 'L1_3J15_BTAG-MU4J30' : 379, 'L1_3J15_BTAG-MU6J25' : 380, 'L1_3J20_4J20.0ETA49_MJJ-400' : 381, 'L1_3J20_4J20.0ETA49_MJJ-700' : 382, 'L1_3J20_4J20.0ETA49_MJJ-800' : 383, 'L1_3J20_4J20.0ETA49_MJJ-900' : 384, 'L1_3J20_BTAG-MU4J20' : 385, 'L1_BOX-TAU20ITAU12I' : 386, 'L1_BPH-2M8-2MU4-B_BPH-0DR15-2MU4' : 387, 'L1_BPH-2M8-MU6MU4-B_BPH-0DR15-MU6MU4' : 388, 'L1_BPH-2M9-2MU6_BPH-2DR15-2MU6' : 389, 'L1_BPH-7M15-2MU4_BPH-0DR24-2MU4' : 390, 'L1_BPH-7M15-2MU4_BPH-0DR24-2MU4-B' : 391, 'L1_BPH-7M15-2MU4_BPH-0DR24-2MU4-BO' : 392, 'L1_BPH-8M15-2MU6' : 393, 'L1_BPH-8M15-2MU6_BPH-0DR22-2MU6' : 394, 'L1_BPH-8M15-MU6MU4' : 395, 'L1_BPH-8M15-MU6MU4_BPH-0DR22-MU6MU4' : 396, 'L1_BTAG-MU4J15' : 397, 'L1_BTAG-MU4J30' : 398, 'L1_BTAG-MU6J20' : 399, 'L1_BTAG-MU6J25' : 400, 'L1_DPHI-AJ20s2XE50' : 401, 'L1_DPHI-CJ20XE50' : 402, 'L1_DPHI-J20XE50' : 403, 'L1_DPHI-J20s2XE50' : 404, 'L1_DR-EM15TAU12I' : 405, 'L1_DR-EM15TAU12I-J25' : 406, 'L1_DR-MU10TAU12I' : 407, 'L1_DR-MU10TAU12I_TAU12I-J25' : 408, 'L1_DR-TAU20ITAU12I' : 409, 'L1_DR-TAU20ITAU12I-J25' : 410, 'L1_DR25-TAU20ITAU12I' : 411, 'L1_DR25-TAU20ITAU12I-J25' : 412, 'L1_DY-BOX-2MU6' : 413, 'L1_DY-DR-2MU4' : 414, #'L1_EM10_W-MT25' : 415, #'L1_EM10_W-MT25_W-15DPHI-JXE-0_W-15DPHI-EMXE' : 416, #'L1_EM10_W-MT25_W-15DPHI-JXE-0_W-15DPHI-EMXE_W-90RO2-XEHT-0' : 417, #'L1_EM10_W-MT25_W-15DPHI-JXE-0_W-15DPHI-EMXE_XS20' : 418, #'L1_EM10_W-MT25_W-15DPHI-JXE-0_W-15DPHI-EMXE_XS30' : 419, 'L1_EM15TAU12I-J25' : 420, 'L1_EM15_W-MT35' : 421, #'L1_EM15_W-MT35_W-05DPHI-JXE-0_W-05DPHI-EMXE' : 422, #'L1_EM15_W-MT35_W-05DPHI-JXE-0_W-05DPHI-EMXE_W-250RO2-XEHT-0' : 423, #'L1_EM15_W-MT35_W-05DPHI-JXE-0_W-05DPHI-EMXE_XS30' : 424, #'L1_EM15_W-MT35_W-05DPHI-JXE-0_W-05DPHI-EMXE_XS60' : 425, #'L1_EM18VH_MJJ-300' : 426, 'L1_HT150-J20.ETA31' : 427, 'L1_HT150-J20s5.ETA31' : 428, 'L1_HT150-JJ15.ETA49' : 429, #'L1_HT150-JJ15.ETA49_MJJ400' : 430, 'L1_HT190-J15.ETA21' : 431, 'L1_HT190-J15s5.ETA21' : 432, 'L1_HT150-J20s5.ETA31_MJJ-400-CF': 433, 'L1_J25_2J20_3J12_BOX-TAU20ITAU12I' : 434, 'L1_J30_2J20_4J20.0ETA49_MJJ-400' : 435, 'L1_J30_2J20_4J20.0ETA49_MJJ-700' : 436, 'L1_J30_2J20_4J20.0ETA49_MJJ-800' : 437, 'L1_J30_2J20_4J20.0ETA49_MJJ-900' : 438, 'L1_J4-MATCH' : 439, 'L1_J40_DPHI-CJ20XE50' : 440, 'L1_J40_DPHI-J20XE50' : 441, 'L1_J40_DPHI-J20s2XE50' : 442, 'L1_J40_XE50_DPHI-J20s2XE50': 443, 'L1_JPSI-1M5' : 444, 'L1_JPSI-1M5-EM12' : 445, 'L1_JPSI-1M5-EM7' : 446, 'L1_KF-XE40' : 447, 'L1_KF-XE50' : 448, 'L1_KF-XE55' : 449, 'L1_KF-XE60' : 450, 'L1_KF-XE65' : 451, 'L1_KF-XE75' : 452, 'L1_LAR-EM' : 453, 'L1_LAR-J' : 454, 'L1_LFV-EM15I' : 455, 'L1_LFV-EM8I' : 456, 'L1_LFV-MU' : 457, 'L1_LFV-MU6' : 458, 'L1_LLP-NOMATCH' : 459, 'L1_LLP-RO' : 460, 'L1_MJJ-100' : 461, 'L1_MJJ-400' : 462, 'L1_MJJ-400-CF': 463, 'L1_MJJ-700' : 464, 'L1_MJJ-800' : 465, 'L1_MJJ-900' : 466, 'L1_MU10_TAU12I-J25' : 467, 'L1_MU4_J20_XE30_DPHI-J20s2XE30' : 468, 'L1_MU6MU4-BO' : 469, 'L1_MU6_2MU4-B' : 470, 'L1_MU6_MJJ-200' : 471, 'L1_MU6_MJJ-300' : 472, 'L1_MU6_MJJ-400' : 473, 'L1_MU6_MJJ-500' : 474, 'L1_TAU20ITAU12I-J25' : 475, 'L1_W-05RO-XEHT-0' : 476, 'L1_W-250RO2-XEHT-0' : 477, 'L1_W-90RO2-XEHT-0' : 478, 'L1_W-HT20-JJ15.ETA49' : 479, 'L1_W-NOMATCH' : 480, 'L1_XE35_MJJ-200' : 481, 'L1_TRT_FILLED' : 482, 'L1_TRT_EMPTY' : 483, 'L1_ZDC_XOR' : 486, 'L1_EM7_MU10' : 487, 'L1_MU4_J12' : 488, 'L1_MU10_TAU12IM' : 489, #CTPID 494 occupied by L1_J30.31ETA49_BGRP12 'L1_CALREQ2' : 511, } Lvl1Flags.prescales = {}
def defineMenu(): """ Defines the following LvlFlags: thresholds .... list of all threshold names in the menu (includes forced thresholds) items .... list of all L1 item names in the menu CtpIdMap .... map of item names to CTP IDs """ from TriggerMenu.l1.Lvl1Flags import Lvl1Flags Lvl1Flags.CTPVersion = 4 # new CTP #TODO should be different? Lvl1Flags.BunchGroupPartitioning = [ 1, 13, 14 ] # partition 1: 1-12, partition 2: 13, partition 3: 14-15 (note that BGRP0 is used by all items) Lvl1Flags.BunchGroupNames = [ 'BCRVeto', 'Filled', 'Calib', 'Empty', 'UnpairedBeam1', 'UnpairedBeam2', 'FirstEmpty', 'InTrain' ] Lvl1Flags.BunchGroupNames += ['NotUsed'] * len(Lvl1Flags.BunchGroupNames()) Lvl1Flags.MenuPartitioning = [ 0, 472, 492 ] # partition 1: ctpid 0-471, partition 2: ctpid 472-491, partition 3: ctpid 492-511 Lvl1Flags.RemapThresholdsAsListed = True Lvl1Flags.thresholds = [ # Note that the forced thresholds (FTHR) are not used in the menu but are needed for input monitoring # They can always be replaced with something that is needed for the menu #------------------------- # SLOT 7 / CON 0,1 (EM1,2) #------------------------- # 16 x EM 'EM7', 'EM8', 'EM8I', 'EM10', 'EM10VH', 'EM12', 'EM13VH', 'EM14', 'EM15', 'EM15HI', 'EM16', 'EM18', 'EM20', 'EM20VH', 'EM20VHI', 'EM22', # 1 x ZB 'ZB_J75', # TODO double check if 'ZB_EM15' should be used for Run-2 (need to be changed also in ItemDef). #-------------------------- # SLOT 7 / CON 2,3 (TAU1,2) #-------------------------- #TODO TAU trigger behaving like EM items, lowere thresholds # 16 x TAU 'HA8', 'HA12', 'HA12IL', 'HA12IM', 'HA12IT', 'HA15', 'HA20', 'HA20IL', 'HA20IM', 'HA20IT', 'HA25', 'HA25IT', 'HA30', 'HA40', 'HA60', 'HA100', #---------------------- # SLOT 8 / CON 0 (JET1) #---------------------- # 10 x 3-bit JET (can have multiplicity 4 or more) #TODO shall we start at higher pT to reduce overflows? # 8 x JETs and central jets 'J12', 'J12.0ETA23', 'J15', 'J15.0ETA25', 'J20', 'J25', 'J25.0ETA23', 'J30', # 2 x VBF 'J20.0ETA49', 'J30.0ETA49', #---------------------- # SLOT 8 / CON 1 (JET2) #---------------------- # 15 x 2-bit JET (can have maximum multiplicity of 3) (SLOT 8, CON 1) # 3 x Central Jet 'JJ15.23ETA49', 'J20.28ETA31', 'J40.0ETA25', # 6 Jets 'J40', 'J50', 'J75', 'J85', 'J100', 'J175', # 6 x FJ 'J10.31ETA49', 'J15.31ETA49', 'J20.31ETA49', 'J30.31ETA49', 'J75.31ETA49', 'J100.31ETA49', #--------------------- # SLOT 8 / CON 2 (EN1) #--------------------- # 24 x 1-bit thresholds # 8 x TE 'TE5', 'TE20', 'TE50', 'TE100', 'TE200', 'TE10000', 'TE12000', 'TE14000', # 8 x XE 'XE35', 'XE40', 'XE45', 'XE50', 'XE55', 'XE60', 'XE70', 'XE80', 'XE35.0ETA24', 'XE40.0ETA24', 'XE45.0ETA24', 'XE50.0ETA24', 'XE55.0ETA24', 'XE60.0ETA24', 'XE70.0ETA24', 'XE80.0ETA24', # 8 x XS 'XS20', 'XS30', 'XS40', 'XS45', 'XS50', 'XS55', 'XS60', 'XS65', #--------------------- # SLOT 8 / CON 3 (EN2) #--------------------- # 16 x 1-bit thresholds # 8 x weighted sum ET #'RXE35', 'RXE40', 'RXE45', 'RXE50', 'RXE55', 'RXE60', 'RXE70', 'RXE80', # FTHR # 8 x restricted eta range in |eta|<4.9 'TE500.0ETA49', 'TE1500.0ETA49', 'TE3000.0ETA49', 'TE3500.0ETA49', 'TE5000.0ETA49', 'TE6500.0ETA49', 'TE8000.0ETA49', 'TE9000.0ETA49', #------------------------ # SLOT 9 / CON 0 (MUCTPi) #------------------------ # 6 x MU (TODO can we still use MU0?) 'MU4', 'MU6', 'MU10', 'MU11', 'MU15', 'MU20', # MU10 is needed for monitoring #------------------------ # SLOT 9 / CON 1 (CTPCal) #------------------------ # 3 x 1-bit BCM 'BCM_AtoC', 'BCM_CtoA', 'BCM_Wide', # 1 x 3-bit BCM 'BCM_Comb', # 8 x DBM #'DBM0', 'DBM1', 'DBM2', 'DBM3', 'DBM4', 'DBM5', 'DBM6', 'DBM7', # FTHR # 2 x BPTX 'BPTX0', 'BPTX1', # 6 x LUCID 'LUCID_A', 'LUCID_C', #'LUCID_Coinc_AC', # FTHR #'LUCID_COMM', #'LUCID_05', 'LUCID_06', # FHTR # 3 x ZDC 'ZDC_A', 'ZDC_C', 'ZDC_AND', # FTHR # 3 x CALREQ 'CAL0', 'CAL1', 'CAL2', #----------------------------- # SLOT 9 / CON 2,3 (NIM1,NIM2) #----------------------------- # 2 x MBTS 'MBTS_A', 'MBTS_C', #TODO/NOTE: redefined according to pp_v7 menu # 32 x MBTSSI (all FTHR) # NOTE: THESE ARE OUT OF ORDER FOR A REASON! Do not change! # The order defines the mapping - see ATR-17870. 'MBTS_A0', 'MBTS_A1', 'MBTS_A2', 'MBTS_A3', 'MBTS_A4', 'MBTS_A5', 'MBTS_A6', 'MBTS_A7', 'MBTS_A8', 'MBTS_A10', 'MBTS_A12', 'MBTS_A14', 'MBTS_A9', 'MBTS_A11', 'MBTS_A13', 'MBTS_A15', 'MBTS_C0', 'MBTS_C1', 'MBTS_C2', 'MBTS_C3', 'MBTS_C4', 'MBTS_C5', 'MBTS_C6', 'MBTS_C7', 'MBTS_C8', 'MBTS_C10', 'MBTS_C12', 'MBTS_C14', 'MBTS_C11', 'MBTS_C13', 'MBTS_C9', 'MBTS_C15', # L1A for CTP monitoring itself 'NIML1A', # LHCF 'NIMLHCF', # TGC 'NIMTGC', # RPC 'NIMRPC', # TRT 'NIMTRT', # AFP 'AFP_NSC', 'AFP_NSA', 'AFP_FSA_SIT', 'AFP_FSA_TOF', 'AFP_FSA_LOG', 'AFP_FSC_SIT', 'AFP_FSC_LOG', 'AFP_FSC_TOF', #------------------------------------------------------------------- #L1 TOPO inputs TODO - need to modify? #------------------------------------------------------------------- #HT 'HT190-AJ15all.ETA21', 'HT190-J15s5.ETA21', 'HT150-AJ20all.ETA31', 'HT150-J20s5.ETA31', #ZH '10MINDPHI-AJ20s2-XE50', '10MINDPHI-J20s2-XE50', '10MINDPHI-J20s2-XE30', '10MINDPHI-J20ab-XE50', '10MINDPHI-CJ20ab-XE50', #Jpsi T&P '1INVM5-EMs1-EMs6', '1INVM5-EM7s1-EMs6', '1INVM5-EM12s1-EMs6', #W T&P '05MINDPHI-AJj10s6-XE0', '10MINDPHI-AJj10s6-XE0', '15MINDPHI-AJj10s6-XE0', '05MINDPHI-EM12s6-XE0', '15MINDPHI-EM12s6-XE0', '05MINDPHI-EM15s6-XE0', '15MINDPHI-EM15s6-XE0', '05RATIO-XE0-HT0-AJj15all.ETA49', '90RATIO2-XE0-HT0-AJj15all.ETA49', '250RATIO2-XE0-HT0-AJj15all.ETA49', 'HT20-AJj15all.ETA49', 'NOT-02MATCH-EM10s1-AJj15all.ETA49', '25MT-EM12s6-XE0', '35MT-EM12s6-XE0', '35MT-EM15s6-XE0', #'10MINDPHI-AJj15s2-XE0', #'20MINDPHI-AJjs6-XE0', #'20MINDPHI-AJj15s2-XE0', #'10MINDPHI-EM6s1-XE0', #'20MINDPHI-EM9s6-XE0', #'20MINDPHI-EM6s1-XE0', #'05RATIO-XE0-HT0-AJj15all.ETA49', #'08RATIO-XE0-HT0-AJj0all.ETA49', #'40RATIO2-XE0-HT0-AJj15all.ETA49', #'90RATIO2-XE0-HT0-AJj0all.ETA49', #'HT20-AJj0all.ETA49', #'NOT-02MATCH-EM9s1-AJj15all.ETA49', #'05RATIO-XE0-SUM0-EM9s1-HT0-AJj15all.ETA49', #'20MT-EM6s6-XE0', #'30MT-EM6s6-XE0', #'40MT-EM6s6-XE0', # central muon 'MULT-CMU4ab', 'MULT-CMU6ab', #B-jet '0DR04-MU4ab-CJ15ab', '0DR04-MU4ab-CJ20ab', '0DR04-MU4ab-CJ30ab', '0DR04-MU6ab-CJ20ab', '0DR04-MU6ab-CJ25ab', #B-physics '0DR03-EM7ab-CJ15ab', '2DR15-2MU6ab', # L1 thresholds for L1Topo streamers #SX '2INVM999-CMU4ab-MU4ab', #SX '2INVM999-2CMU4ab', #SX '2INVM999-MU6ab-MU4ab', #SX '2INVM999-ONEBARREL-MU6ab-MU4ab', #SX '2INVM999-CMU6ab-CMU4ab', #SX '4INVM8-CMU4ab-MU4ab', #SX '4INVM8-2CMU4ab', #SX '4INVM8-MU6ab-MU4ab', #SX '4INVM8-ONEBARREL-MU6ab-MU4ab', #SX '4INVM8-CMU6ab-CMU4ab', '2DR99-2MU4ab', '5DETA99-5DPHI99-MU6ab-MU4ab', '5DETA99-5DPHI99-2MU6ab', '0DR10-MU10ab-MU6ab', '0DR15-2MU6ab', # '0DETA04-0DPHI03-EM8abi-MU10ab', '0DETA04-EM8abi-MU10ab', '0DPHI03-EM8abi-MU10ab', # '0DETA04-0DPHI03-EM15abi-MUab', '0DETA04-EM15abi-MUab', '0DPHI03-EM15abi-MUab', '10MINDPHI-AJ20s2-XE50', '10MINDPHI-J20s2-XE50', '10MINDPHI-J20ab-XE50', '10MINDPHI-CJ20ab-XE50', '900INVM9999-AJ30s6-AJ20s6', '800INVM9999-AJ30s6-AJ20s6', '700INVM9999-AJ30s6-AJ20s6', '500INVM9999-AJ30s6-AJ20s6', '400INVM9999-AJ30s6-AJ20s6', #'350INVM9999-AJ30s6-AJ20s6', '300INVM9999-AJ30s6-AJ20s6', '200INVM9999-AJ30s6-AJ20s6', '100INVM9999-AJ30s6-AJ20s6', '600INVM9999-J30s6-AJ20s6', '500INVM9999-J30s6-AJ20s6', '400INVM9999-J30s6-AJ20s6', '200INVM9999-J30s6-AJ20s6', '63DETA127-FJ20s1-FJ20s2', '0DETA20-J50s1-Js2', '27DPHI32-EMs1-EMs6', #'350INVM9999-J30s6-J20s6', #'300INVM9999-J30s6-J20s6', #'250INVM9999-J30s6-J20s6', #'200INVM9999-J30s6-J20s6', 'HT150-AJj15all.ETA49', '0MATCH-4AJ20.ETA31-4AJj15.ETA31', '100RATIO-0MATCH-TAU30si2-EMall', 'NOT-0MATCH-TAU30si1-EMall', '0DR28-MU10ab-TAU12abi', '1DISAMB-TAU12abi-J25ab', '1DISAMB-EM15his2-TAU12abi-J25ab', 'DISAMB-0DR28-EM15his2-TAU12abi', '1DISAMB-J25ab-0DR28-EM15his2-TAU12abi', '1DISAMB-TAU20abi-TAU12abi-J25ab', '0DR25-TAU20abi-TAU12abi', '0DR28-TAU20abi-TAU12abi', '0DETA20-0DPHI20-TAU20abi-TAU12abi', '1DISAMB-J25ab-0DR25-TAU20abi-TAU12abi', '1DISAMB-J25ab-0DR28-TAU20abi-TAU12abi', 'DISAMB-30INVM-EM20his2-TAU12ab', '400INVM9999-AJ30s6.ETA31-AJ20s6.31ETA49', 'LAR-EM20shi1', 'LAR-J100s1', 'ZEE-EM20shi2', 'FTK-EM20s1', 'FTK-J100s1', 'FTK-MU10s1', '2INVM9-2MU6ab', '7INVM15-2MU4ab', '2INVM8-ONEBARREL-MU6ab-MU4ab', '0DR24-2CMU4ab', '0DR22-2MU6ab', '0DR34-2MU4ab', '0DR24-2MU4ab', '0DR24-CMU4ab-MU4ab', '2INVM8-CMU4ab-MU4ab', '0DR15-2MU4ab', '0DR15-MU6ab-MU4ab', '0DR22-MU6ab-MU4ab', '8INVM15-MU6ab-MU4ab', '8INVM15-2MU6ab', '0INVM9-EM7ab-EMab', '2INVM8-2MU4ab', # ATR-15197 '2INVM9-2MU4ab', '2INVM8-MU6ab-MU4ab', # ATR-15197 '2INVM9-MU6ab-MU4ab', '2INVM9-2MU4ab', '2INVM9-MU6ab-MU4ab', 'KF-XE40-AJall', 'KF-XE50-AJall', 'KF-XE55-AJall', 'KF-XE60-AJall', 'KF-XE65-AJall', 'KF-XE75-AJall', 'LATE-MU10s1', 'SC111-CJ15ab.ETA26', 'SC85-CJ15ab.ETA26', # ALFA (the replication is needed to build all the combinations in the CTPCore) 'ALFA_B7R1L', 'ALFA_B7R1U', 'ALFA_A7R1L', 'ALFA_A7R1U', 'ALFA_A7L1L', 'ALFA_A7L1U', 'ALFA_B7L1L', 'ALFA_B7L1U', 'ALFA2_B7R1L', 'ALFA2_B7R1U', 'ALFA2_A7R1L', 'ALFA2_A7R1U', 'ALFA2_A7L1L', 'ALFA2_A7L1U', 'ALFA2_B7L1L', 'ALFA2_B7L1U', 'ALFA3_B7R1L', 'ALFA3_B7R1U', 'ALFA3_A7R1L', 'ALFA3_A7R1U', 'ALFA3_A7L1L', 'ALFA3_A7L1U', 'ALFA3_B7L1L', 'ALFA3_B7L1U', 'ALFA4_B7R1L', 'ALFA4_B7R1U', 'ALFA4_A7R1L', 'ALFA4_A7R1U', 'ALFA4_A7L1L', 'ALFA4_A7L1U', 'ALFA4_B7L1L', 'ALFA4_B7L1U', #ATR-13743 'ALFA_B7R1L_OD', 'ALFA_B7R1U_OD', 'ALFA_A7R1L_OD', 'ALFA_A7R1U_OD', 'ALFA_A7L1L_OD', 'ALFA_A7L1U_OD', 'ALFA_B7L1L_OD', 'ALFA_B7L1U_OD', ] Lvl1Flags.items = [ 'L1_EM7', 'L1_EM8', 'L1_EM10', 'L1_EM12', 'L1_EM14', 'L1_EM16', 'L1_EM18', 'L1_EM20', 'L1_EM22', 'L1_2EM10', #'L1_2EM5', 'L1_2EM7', # tau beam items #'L1_TAU8', #muons #'L1_MU0', 'L1_MU11', 'L1_MU15', 'L1_MU20', 'L1_MU4', 'L1_MU6', #'L1_2MU0', 'L1_2MU4', #'L1_2MU0_MU6', 'L1_2MU11', 'L1_2MU20', 'L1_2MU6', 'L1_3MU6', #jets 'L1_J12', 'L1_J15', 'L1_J20', 'L1_J30', #'L1_J35', 'L1_J50', 'L1_J75', 'L1_J175', #jet energy 'L1_2J15', #'L1_JE200', #'L1_JE300', #'L1_JE500', # forward jets 'L1_J10.31ETA49', #'L1_FJ30', #'L1_FJ55' , #'L1_FJ95', #MinBias 'L1_LUCID_A', 'L1_LUCID_C', 'L1_LUCID_A_C', 'L1_LUCID', #'L1_LUCID_COMM', 'L1_MBTS_2', 'L1_MBTS_2_BGRP9', 'L1_MBTS_2_BGRP11', 'L1_MBTS_2_EMPTY', 'L1_MBTS_2_UNPAIRED_ISO', 'L1_MBTS_2_UNPAIRED_NONISO', 'L1_MBTS_1', 'L1_MBTS_1_EMPTY', 'L1_MBTS_1_UNPAIRED_ISO', 'L1_MBTS_1_UNPAIRED_NONISO', 'L1_MBTS_1_1', 'L1_MBTS_2_2', 'L1_MBTS_3_3', 'L1_MBTS_4_4', 'L1_MBTS_1_1_BGRP11', 'L1_MBTS_1_1_VTE50', 'L1_MBTS_2_2_VTE50', #TRT 'L1_TRT_FILLED', 'L1_TRT_EMPTY', #randoms 'L1_RD0_BGRP9', 'L1_RD0_FILLED', 'L1_RD0_FIRSTEMPTY', 'L1_RD0_UNPAIRED_ISO', 'L1_RD0_EMPTY', 'L1_RD1_FILLED', 'L1_RD1_EMPTY', #MET #total energy 'L1_TE5', 'L1_TE20', 'L1_TE50', 'L1_TE100', 'L1_TE200', 'L1_TE10000', 'L1_TE12000', 'L1_TE14000', 'L1_TE5_NZ', 'L1_TE5_VTE200', # restricted TE 'L1_TE500.0ETA49', 'L1_TE1500.0ETA49', 'L1_TE3000.0ETA49', 'L1_TE3500.0ETA49', 'L1_TE5000.0ETA49', 'L1_TE6500.0ETA49', 'L1_TE8000.0ETA49', 'L1_TE9000.0ETA49', # restricted TE for overlay 'L1_TE500.0ETA49_OVERLAY', 'L1_TE1500.0ETA49_OVERLAY', 'L1_TE3000.0ETA49_OVERLAY', 'L1_TE3500.0ETA49_OVERLAY', 'L1_TE5000.0ETA49_OVERLAY', 'L1_TE6500.0ETA49_OVERLAY', 'L1_TE8000.0ETA49_OVERLAY', 'L1_TE9000.0ETA49_OVERLAY', #Min Bias 'L1_ZDC', 'L1_ZDC_A', 'L1_ZDC_C', 'L1_ZDC_AND', 'L1_ZDC_AND_VTE50', 'L1_ZDC_A_C', 'L1_ZDC_A_C_BGRP11', 'L1_ZDC_A_C_OVERLAY', 'L1_ZDC_A_C_VTE50_OVERLAY', 'L1_TE50_OVERLAY', 'L1_ZDC_A_C_VTE50', 'L1_ZDC_A_C_TE50', 'L1_BCM_Wide', 'L1_BCM_HT_BGRP0', 'L1_BCM_Wide_BGRP0', 'L1_BCM_AC_CA_BGRP0', 'L1_ZDC_MBTS_1', 'L1_ZDC_MBTS_2', 'L1_ZDC_MBTS_1_1', 'L1_ZDC_MBTS_2_2', 'L1_ZDC_VTE200', #ZDC one side 'L1_ZDC_A_VZDC_C_VTE200', 'L1_ZDC_C_VZDC_A_VTE200', 'L1_ZDC_XOR', 'L1_ZDC_XOR_VTE200', 'L1_ZDC_XOR_TE5_VTE200', 'L1_ZDC_XOR_TRT_VTE200', #coincidence 'L1_ZDC_A_C_VTE200', 'L1_ZDC_A_C_TE5_VTE200', #NIMDIR stuff # temporary commented out in HI_v3: 'L1_NIM_S8C2B21', 'L1_NIM_S8C2B22', 'L1_NIM_S8C2B23', # votoed by TE #UPC triggers #'L1_MU0_NZ', 'L1_J15_NZ', #'L1_2MU0_NZ', #'L1_2EM3_NZ', 'L1_2J15_NZ', #'L1_MU0_NL', #'L1_EM3_NL', 'L1_J15_NL', #'L1_2MU0_NL', #'L1_2EM3_NL', 'L1_2J15_NL', #'L1_MU0_MV', #'L1_2MU0_MV', #'L1_MU0_MV_VTE50', #'L1_MU0_VTE50', #'L1_MU0_TE50', 'L1_MU4_MV_VTE50', 'L1_MU4_VTE50', 'L1_MU4_TE50', #'L1_EM3_MV_VTE50', #'L1_EM3_VTE50', 'L1_J12_VTE100', 'L1_J12_VTE200', ## VDM 'L1_ZDC_A_C_BGRP7', 'L1_LUCID_BGRP7', 'L1_BGRP7', #MBTS 32 inputs 'L1_MBTSA0', 'L1_MBTSA1', 'L1_MBTSA2', 'L1_MBTSA3', 'L1_MBTSA4', 'L1_MBTSA5', 'L1_MBTSA6', 'L1_MBTSA7', 'L1_MBTSA8', ##'L1_MBTSA9', 11, 13, 15 not in run2 anymore 'L1_MBTSA10', ##'L1_MBTSA11', 'L1_MBTSA12', ##'L1_MBTSA13', 'L1_MBTSA14', ##'L1_MBTSA15', 'L1_MBTSC0', 'L1_MBTSC1', 'L1_MBTSC2', 'L1_MBTSC3', 'L1_MBTSC4', 'L1_MBTSC5', 'L1_MBTSC6', 'L1_MBTSC7', 'L1_MBTSC8', ##'L1_MBTSC9', 'L1_MBTSC10', ##'L1_MBTSC11', 'L1_MBTSC12', ##'L1_MBTSC13', 'L1_MBTSC14', ##'L1_MBTSC15', #background 'L1_EM7_UNPAIRED_ISO', 'L1_EM7_UNPAIRED_NONISO', 'L1_EM7_EMPTY', 'L1_EM7_FIRSTEMPTY', #MU UNPAIRED-EMPTY-ETC #'L1_MU0_UNPAIRED_ISO','L1_MU0_UNPAIRED_NONISO','L1_MU0_EMPTY','L1_MU0_FIRSTEMPTY', 'L1_MU4_UNPAIRED_ISO', 'L1_MU4_UNPAIRED_NONISO', 'L1_MU4_EMPTY', 'L1_MU4_FIRSTEMPTY', 'L1_MU6_FIRSTEMPTY', 'L1_MU11_EMPTY', #'L1_2MU0_EMPTY', 'L1_2MU4_EMPTY', 'L1_2MU6_UNPAIRED_ISO', 'L1_2MU6_UNPAIRED_NONISO', 'L1_2MU6_EMPTY', 'L1_2MU6_FIRSTEMPTY', #TAU UNPAIRED-EMPTY-ETC 'L1_TAU12_UNPAIRED_ISO', 'L1_TAU12_UNPAIRED_NONISO', 'L1_TAU12_EMPTY', 'L1_TAU12_FIRSTEMPTY', #J UNPAIRED-EMPTY-ETC 'L1_J12_UNPAIRED_ISO', 'L1_J12_UNPAIRED_NONISO', 'L1_J12_EMPTY', 'L1_J12_FIRSTEMPTY', 'L1_J30_EMPTY', 'L1_J30_UNPAIRED', 'L1_J30_FIRSTEMPTY', #FJ UNPAIRED-EMPTY-ETC #'L1_FJ10_UNPAIRED_ISO', 'L1_FJ10_FIRSTEMPTY', 'L1_J10.31ETA49_EMPTY', #ZDC 'L1_ZDC_EMPTY', 'L1_ZDC_UNPAIRED_ISO', 'L1_ZDC_UNPAIRED_NONISO', #L1_ZDC_AND 'L1_ZDC_AND_EMPTY', 'L1_ZDC_AND_UNPAIRED_ISO', 'L1_ZDC_AND_UNPAIRED_NONISO', # 'L1_ZDC_A_C_BGRP9', 'L1_ZDC_A_C_EMPTY', 'L1_ZDC_A_C_UNPAIRED_ISO', 'L1_ZDC_A_C_UNPAIRED_NONISO', #MBTS 'L1_MBTS_1_1_BGRP9', 'L1_MBTS_1_1_EMPTY', 'L1_MBTS_2_2_EMPTY', 'L1_MBTS_3_3_EMPTY', 'L1_MBTS_1_1_UNPAIRED_ISO', 'L1_MBTS_2_2_UNPAIRED_ISO', 'L1_MBTS_3_3_UNPAIRED_ISO', 'L1_MBTS_4_4_UNPAIRED_ISO', #LUCID 'L1_LUCID_EMPTY', 'L1_LUCID_UNPAIRED_ISO', #'L1_LUCID_COMM_UNPAIRED_ISO', 'L1_LUCID_A_C_EMPTY', 'L1_LUCID_A_C_UNPAIRED_ISO', 'L1_LUCID_A_C_UNPAIRED_NONISO', #ZB 'L1_ZB', # lumi measurements 'L1_MLZ_A', 'L1_MLZ_C', 'L1_MBLZ', # BGRP and BPTX 'L1_BPTX0_BGRP0', 'L1_BPTX1_BGRP0', 'L1_BGRP0', 'L1_BGRP1', #BCM 'L1_BCM_Wide_EMPTY', 'L1_BCM_Wide_UNPAIRED_ISO', 'L1_BCM_Wide_UNPAIRED_NONISO', 'L1_BCM_AC_CA_UNPAIRED_ISO', ######### Run-2 monitoring items taken from monitoring rules 'L1_BCM_AC_ABORTGAPNOTCALIB', 'L1_BCM_AC_CALIB', 'L1_BCM_AC_UNPAIRED_ISO', 'L1_BCM_AC_UNPAIRED_NONISO', 'L1_BCM_CA_ABORTGAPNOTCALIB', 'L1_BCM_CA_CALIB', 'L1_BCM_CA_UNPAIRED_ISO', 'L1_BCM_CA_UNPAIRED_NONISO', 'L1_BCM_Wide_ABORTGAPNOTCALIB', 'L1_BCM_Wide_CALIB', 'L1_J12_ABORTGAPNOTCALIB', 'L1_J12_BGRP12', 'L1_J30.31ETA49_UNPAIRED_ISO', 'L1_J30.31ETA49_UNPAIRED_NONISO', 'L1_J30.31ETA49_BGRP12', 'L1_J50_ABORTGAPNOTCALIB', 'L1_J50_UNPAIRED_ISO', 'L1_J50_UNPAIRED_NONISO', 'L1_CALREQ2', 'L1_EM10VH', 'L1_EM15', 'L1_EM15HI_2TAU12IM', 'L1_EM15HI_2TAU12IM_J25_3J12', 'L1_EM15HI_2TAU12IM_XE35', 'L1_EM15HI_TAU40_2TAU15', #### NO-MU10 'L1_MU10_TAU12IM', #### NO-MU10 'L1_MU10_TAU12IM_J25_2J12', #### NO-MU10 'L1_MU10_TAU12IM_XE35', #### NO-MU10 'L1_MU10_TAU12IM_XE40', #### NO-MU10 'L1_MU10_TAU12_J25_2J12', #### NO-MU10 'L1_MU10_TAU20', #### NO-MU10 'L1_MU10_TAU20IM', 'L1_TAU12', 'L1_TAU12IL', 'L1_TAU12IM', 'L1_TAU12IT', 'L1_TAU20', 'L1_TAU20IL', 'L1_TAU20IL_2TAU12IL_J25_2J20_3J12', 'L1_TAU20IM', 'L1_TAU20IM_2J20_XE45', 'L1_TAU20IM_2J20_XE50', 'L1_TAU20IM_2TAU12IM', 'L1_TAU20IM_2TAU12IM_J25_2J20_3J12', 'L1_TAU20IM_2TAU12IM_XE35', 'L1_TAU20IM_2TAU12IM_XE40', 'L1_TAU20IT', 'L1_TAU20_2J20_XE45', 'L1_TAU20_2TAU12', 'L1_TAU20_2TAU12_XE35', 'L1_TAU25IT_2TAU12IT_2J25_3J12', 'L1_TAU30', 'L1_TAU40', 'L1_TAU60', #'L1_TAU8', 'L1_EM20VH_FIRSTEMPTY', 'L1_EM20VHI', 'L1_EM7_EMPTY', 'L1_EM7_FIRSTEMPTY', 'L1_J100', #'L1_J100.31ETA49', #'L1_J100.31ETA49_FIRSTEMPTY', 'L1_J100_FIRSTEMPTY', 'L1_J30.31ETA49', 'L1_J30.31ETA49_EMPTY', 'L1_J40_XE50', 'L1_J75.31ETA49', 'L1_J75_XE40', 'L1_RD0_ABORTGAPNOTCALIB', 'L1_TGC_BURST', 'L1_XE35', 'L1_XE50', #TOPO 'L1_LAR-EM', 'L1_LAR-J', ] Lvl1Flags.CtpIdMap = { 'L1_EM18': 0, 'L1_EM22': 1, 'L1_EM7': 2, 'L1_EM10': 3, 'L1_EM12': 4, 'L1_EM14': 5, 'L1_2MU4_EMPTY': 6, 'L1_RD0_UNPAIRED_NONISO': 7, 'L1_BCM_AC_CA_UNPAIRED_NONISO': 8, 'L1_FJ10_UNPAIRED_NONISO': 9, 'L1_2EM10': 10, #'L1_2EM5' : 11, #'L1_MU0_VTE20' : 12, 'L1_LAR-EM': 11, 'L1_LAR-J': 12, 'L1_NIM_S8C2B21': 13, #DIRNIM 'L1_NIM_S8C2B22': 14, #DIRNIM 'L1_MBTS_4_4': 15, 'L1_RD1_EMPTY': 16, 'L1_RD0_FILLED': 17, 'L1_RD0_FIRSTEMPTY': 18, 'L1_RD0_UNPAIRED_ISO': 19, 'L1_MBTS_4_4_UNPAIRED_ISO': 20, 'L1_ZDC_AND_VTE50': 27, #'L1_EM3_VTE20': 28, #'L1_MU0_MV_VTE50' : 34, #'L1_MU0_VTE50' : 35, 'L1_ZDC_A_C_VTE50': 36, 'L1_ZDC_A_C_UNPAIRED_NONISO': 37, 'L1_MU4_VTE50': 38, 'L1_MU4_MV_VTE50': 39, 'L1_ZDC_A_C_OVERLAY': 40, #'L1_MU0_TE50' : 41, 'L1_ZDC_A_C_TE50': 42, 'L1_MU4_TE50': 43, #'L1_EM3_VTE50' : 44, #'L1_EM3_MV_VTE50' : 45, 'L1_J12_VTE100': 46, 'L1_BGRP7': 47, 'L1_LUCID_BGRP7': 48, 'L1_MBTS_2_BGRP7': 49, 'L1_MBTSC4': 50, 'L1_MBTSC5': 51, 'L1_MBTSC6': 52, 'L1_MBTSC7': 53, 'L1_MBTSC8': 54, 'L1_MBTSC9': 55, 'L1_MBTSC10': 56, 'L1_MBTSC11': 57, 'L1_MBTSC12': 58, 'L1_MBTSC13': 59, 'L1_MBTSC14': 60, 'L1_MBTSC15': 61, 'L1_RD0_EMPTY': 62, 'L1_RD1_FILLED': 63, #'L1_TAU3' : 64, 'L1_MBTSC3': 65, 'L1_MU4_FIRSTEMPTY': 67, 'L1_MU6_FIRSTEMPTY': 68, #'L1_2MU0_EMPTY' : 69, #'L1_MU0_FIRSTEMPTY' : 70, 'L1_2MU6': 71, 'L1_2MU11': 72, 'L1_2MU20': 73, 'L1_MU11_EMPTY': 75, 'L1_MBTSC2': 76, 'L1_LUCID_UNPAIRED_NONISO': 77, 'L1_BCM_Wide_BGRP0': 80, 'L1_BCM_AC_CA_BGRP0': 81, 'L1_MBTSC1': 82, 'L1_J12_UNPAIRED': 83, 'L1_EM20': 84, 'L1_EM16': 85, 'L1_MBTSC0': 86, 'L1_J30_UNPAIRED': 87, 'L1_MU15': 88, #'L1_MU0' : 89, 'L1_MU6': 90, 'L1_MU11': 91, 'L1_MU20': 92, 'L1_MU4': 93, #'L1_2MU0' : 94, 'L1_2MU4': 95, 'L1_J20': 96, #'L1_J12' : 97, 'L1_J15': 98, 'L1_J30': 99, #'L1_J35' : 100, 'L1_J50': 102, 'L1_J18': 104, #'L1_J5' : 105, 'L1_BCM_AC_CA_UNPAIRED_ISO': 106, 'L1_BCM_Wide_EMPTY': 107, 'L1_BCM_Wide_UNPAIRED_ISO': 108, 'L1_L1_BCM_Wide_UNPAIRED_NONISO': 109, 'L1_LUCID_UNPAIRED_ISO': 113, #'L1_TAU8_FIRSTEMPTY' : 114, 'L1_TAU8_UNPAIRED_ISO': 115, 'L1_TAU8_UNPAIRED_NONISO': 116, 'L1_ZDC_A_C_UNPAIRED_ISO': 117, 'L1_MBTSA0': 120, 'L1_MBTSA1': 122, 'L1_FJ0': 123, 'L1_2MU6_UNPAIRED_ISO': 124, 'L1_2MU6_UNPAIRED_NONISO': 125, 'L1_BCM_Wide_UNPAIRED_NONISO': 126, 'L1_EM7_UNPAIRED_ISO': 127, 'L1_EM7_UNPAIRED_NONISO': 128, 'L1_J30_FIRSTEMPTY': 130, 'L1_MBTSA2': 131, 'L1_TE5': 132, 'L1_TE14000': 133, 'L1_TE20': 134, 'L1_TE50': 138, 'L1_TE100': 136, 'L1_TE200': 135, 'L1_MBTSA3': 137, 'L1_2J5': 139, 'L1_2J12': 140, 'L1_TE12000': 141, 'L1_TE10000': 142, 'L1_2MU6_EMPTY': 143, 'L1_2MU6_FIRSTEMPTY': 144, 'L1_ZDC_MBTS_1': 145, 'L1_ZDC_MBTS_2': 146, 'L1_ZDC_MBTS_1_1': 147, 'L1_ZDC_MBTS_2_2': 148, 'L1_MBTS_1_EMPTY': 149, 'L1_MBTS_1_1_EMPTY': 150, 'L1_MBTS_2_EMPTY': 151, #'L1_TAU8_EMPTY' : 152, 'L1_MBTSA4': 153, 'L1_MBTSA5': 154, 'L1_MBTSA6': 155, 'L1_MBTSA7': 156, 'L1_NIM_S8C2B23': 157, #DIRNIM #'L1_MU0_UNPAIRED_NONISO' : 159, #'L1_MU0_UNPAIRED_ISO' : 160, 'L1_MBTSA8': 161, #'L1_MU0_EMPTY' : 162, 'L1_MBTSA9': 163, 'L1_MBTSA10': 164, 'L1_MU4_UNPAIRED_NONISO': 165, 'L1_MU4_EMPTY': 166, 'L1_MU4_UNPAIRED_ISO': 167, 'L1_MBTSA11': 168, #'L1_J10_EMPTY' : 171, 'L1_J30_EMPTY': 172, 'L1_MBTSA12': 173, 'L1_MBTSA13': 174, 'L1_FJ0_EMPTY': 175, 'L1_MBTSA14': 176, #'L1_EM3_EMPTY' : 177, 'L1_MBTSA15': 178, 'L1_FJ0_UNPAIRED_ISO': 180, 'L1_FJ5_UNPAIRED_ISO': 181, 'L1_ZDC_UNPAIRED_ISO': 182, 'L1_ZDC_UNPAIRED_NONISO': 183, #'L1_J12_EMPTY' : 184, #'L1_J12_FIRSTEMPTY' : 185, #'L1_J12_UNPAIRED_ISO' : 186, #'L1_J12_UNPAIRED_NONISO' : 187, 'L1_ZDC_A_BGRP7': 188, 'L1_ZDC_AND': 189, 'L1_ZDC_A': 190, 'L1_ZDC_C': 191, 'L1_ZDC_A_C': 192, 'L1_ZDC': 193, 'L1_ZDC_C_BGRP7': 194, 'L1_ZDC_A_C_EMPTY': 196, 'L1_ZDC_EMPTY': 197, 'L1_FJ5': 198, 'L1_FJ10': 199, 'L1_MBTS_1_UNPAIRED_ISO': 200, 'L1_MBTS_1_UNPAIRED_NONISO': 201, 'L1_MBTS_1_1_UNPAIRED_ISO': 202, 'L1_FJ15': 203, 'L1_MBTS_2_UNPAIRED_ISO': 204, 'L1_MBTS_2_UNPAIRED_NONISO': 205, 'L1_LUCID_A_C_UNPAIRED_NONISO': 206, 'L1_LUCID_A_C_UNPAIRED_ISO': 208, 'L1_LUCID_A_UNPAIRED': 209, 'L1_LUCID_C_UNPAIRED': 210, 'L1_LUCID_A_C_UNPAIRED': 211, 'L1_LUCID_A': 212, 'L1_LUCID_C': 213, 'L1_LUCID_A_C': 214, 'L1_LUCID': 215, 'L1_FJ5_EMPTY': 218, 'L1_FJ0_C': 219, 'L1_MBTS_2': 222, 'L1_MBTS_2_2': 223, 'L1_MBTS_3_3': 224, 'L1_BCM_HT_BGRP0': 225, 'L1_MBTS_1': 226, 'L1_MBTS_1_1': 228, 'L1_MBTS_2_2_EMPTY': 229, 'L1_MBTS_3_3_EMPTY': 230, 'L1_MBTS_2_2_UNPAIRED_ISO': 231, 'L1_MBTS_3_3_UNPAIRED_ISO': 232, #'L1_J5_TE90' : 233, 'L1_2J5_TE90': 234, 'L1_ZDC_A_C_BGRP11': 235, 'L1_LUCID_A_EMPTY': 236, 'L1_LUCID_C_EMPTY': 237, 'L1_LUCID_A_C_EMPTY': 238, 'L1_FJ0_A': 239, 'L1_MBTS_1_1_BGRP11': 240, 'L1_BPTX0_BGRP0': 241, 'L1_BPTX1_BGRP0': 242, 'L1_MBTS_2_BGRP9': 243, 'L1_MBTS_1_1_BGRP9': 244, 'L1_LUCID_EMPTY': 245, 'L1_RD0_BGRP9': 246, 'L1_LHCF': 247, 'L1_ZDC_A_C_BGRP9': 248, 'L1_MBTS_2_BGRP11': 249, 'L1_ZB': 250, 'L1_BGRP1': 252, #new in Run 2 'L1_ZDC_A_C_VTE50_OVERLAY': 256, 'L1_TE50_OVERLAY': 257, 'L1_J12_VTE200': 258, 'L1_BCM_AC_ABORTGAPNOTCALIB': 259, 'L1_BCM_AC_CALIB': 260, 'L1_BCM_AC_UNPAIRED_ISO': 261, 'L1_BCM_AC_UNPAIRED_NONISO': 262, 'L1_BCM_CA_ABORTGAPNOTCALIB': 263, 'L1_BCM_CA_CALIB': 264, 'L1_BCM_CA_UNPAIRED_ISO': 265, 'L1_BCM_CA_UNPAIRED_NONISO': 266, 'L1_BCM_Wide_ABORTGAPNOTCALIB': 267, 'L1_BCM_Wide_CALIB': 268, 'L1_J12_ABORTGAPNOTCALIB': 269, 'L1_J12_UNPAIRED_ISO': 270, 'L1_J12_UNPAIRED_NONISO': 271, 'L1_J12_BGRP12': 493, 'L1_J30.31ETA49_UNPAIRED_ISO': 272, 'L1_J30.31ETA49_UNPAIRED_NONISO': 273, 'L1_J30.31ETA49_BGRP12': 494, 'L1_J50_ABORTGAPNOTCALIB': 274, 'L1_J50_UNPAIRED_ISO': 275, 'L1_J50_UNPAIRED_NONISO': 276, #'L1_TAU8': 277, 'L1_TAU12': 278, 'L1_TAU12IL': 279, 'L1_TAU12IM': 280, 'L1_TAU12IT': 281, 'L1_TAU20': 282, 'L1_TAU20IL': 283, 'L1_TAU20IL_2TAU12IL_J25_2J20_3J12': 284, 'L1_TAU20IM': 285, 'L1_TAU20IM_2J20_XE45': 286, 'L1_TAU20IM_2J20_XE50': 287, 'L1_TAU20IM_2TAU12IM': 288, 'L1_TAU20IM_2TAU12IM_J25_2J20_3J12': 289, 'L1_TAU20IM_2TAU12IM_XE35': 290, 'L1_TAU20IM_2TAU12IM_XE40': 291, 'L1_TAU20IT': 292, 'L1_TAU20_2J20_XE45': 293, 'L1_TAU20_2TAU12': 294, 'L1_TAU20_2TAU12_XE35': 295, 'L1_TAU25IT_2TAU12IT_2J25_3J12': 296, 'L1_TAU30': 297, 'L1_TAU40': 298, 'L1_TAU60': 299, 'L1_EM20VH_FIRSTEMPTY': 300, 'L1_EM20VHI': 301, 'L1_EM7_EMPTY': 302, 'L1_EM7_FIRSTEMPTY': 303, 'L1_J100': 304, #'L1_J100.31ETA49': 305, #'L1_J100.31ETA49_FIRSTEMPTY': 306, 'L1_J100_FIRSTEMPTY': 307, 'L1_J12': 308, 'L1_J12_EMPTY': 309, 'L1_J12_FIRSTEMPTY': 310, 'L1_J30.31ETA49': 311, 'L1_J30.31ETA49_EMPTY': 312, 'L1_J40_XE50': 313, 'L1_J75.31ETA49': 314, 'L1_J75_XE40': 315, 'L1_RD0_ABORTGAPNOTCALIB': 316, 'L1_TGC_BURST': 317, 'L1_XE35': 318, 'L1_XE50': 319, 'L1_EM10VH': 320, 'L1_EM15': 321, 'L1_EM15HI_2TAU12IM': 322, 'L1_EM15HI_2TAU12IM_J25_3J12': 323, 'L1_EM15HI_2TAU12IM_XE35': 324, 'L1_EM15HI_TAU40_2TAU15': 325, # restricted TE 'L1_TE500.0ETA49': 326, 'L1_TE1500.0ETA49': 327, 'L1_TE3000.0ETA49': 328, 'L1_TE3500.0ETA49': 329, 'L1_TE4500.0ETA49': 330, 'L1_TE6500.0ETA49': 331, 'L1_TE8000.0ETA49': 332, 'L1_TE9000.0ETA49': 333, #'L1_J5': 334, 'L1_TE5_VTE200': 335, # restricted TE for overlay 'L1_TE500.0ETA49_OVERLAY': 336, 'L1_TE1500.0ETA49_OVERLAY': 337, 'L1_TE3000.0ETA49_OVERLAY': 338, 'L1_TE3500.0ETA49_OVERLAY': 339, 'L1_TE4500.0ETA49_OVERLAY': 340, 'L1_TE6500.0ETA4_OVERLAY9': 341, 'L1_TE8000.0ETA49_OVERLAY': 342, 'L1_TE9000.0ETA49_OVERLAY': 343, 'L1_EM8': 344, 'L1_2EM7': 345, 'L1_CALREQ2': 511, 'L1_TRT_FILLED': 482, 'L1_TRT_EMPTY': 483, 'L1_ZDC_A_VZDC_C_VTE200': 484, 'L1_ZDC_C_VZDC_A_VTE200': 485, 'L1_ZDC_XOR': 486, 'L1_ZDC_XOR_VTE200': 487, 'L1_ZDC_XOR_TE5_VTE200': 488, 'L1_ZDC_XOR_TRT_VTE200': 489, 'L1_ZDC_VTE200': 490, 'L1_ZDC_A_C_VTE200': 491, 'L1_ZDC_A_C_TE5_VTE200': 492, } Lvl1Flags.prescales = {}
def getCableName(thrtype, mapping): from TriggerMenu.l1.Lvl1Flags import Lvl1Flags run1 = Lvl1Flags.CTPVersion() <= 3 if run1: type2cablename = { 'MUON': [(0, 6, 'MUCTPI')], 'EM': [(0, 8, 'EM1'), (8, 16, 'EM2')], 'TAU': [(0, 8, 'TAU1'), (8, 16, 'TAU2')], 'JET': [(0, 10, 'JET1'), (10, 25, 'JET2')], 'TE': [(0, 8, 'EN1')], 'XE': [(0, 8, 'EN1')], 'XS': [(0, 8, 'EN1')], 'MBTSSI': [(0, 16, 'NIM1'), (16, 32, 'NIM2')], 'MBTS': [(0, 1, 'NIM1'), (1, 2, 'NIM2')], 'LUCID': [(0, 6, 'CTPCAL')], 'ZDC': [(0, 3, 'CTPCAL')], 'CALREQ': [(0, 3, 'CTPCAL')], 'TOPO': [(0, 64, 'TOPO1'), (64, 128, 'TOPO2')], 'ALFA': [(0, 64, 'ALFA')], 'BCM': [(0, 3, 'CTPCAL')], 'BCMCMB': [(0, 3, 'CTPCAL')], 'NIM': [(0, 30, 'NIM1'), (30, 60, 'NIM2')], 'JF': [(0, 4, 'JET1')], 'JB': [(0, 4, 'JET1')], 'JE': [(0, 4, 'JET2')], } else: type2cablename = { 'MUON': [(0, 6, 'MUCTPI')], 'EM': [(0, 8, 'EM1'), (8, 16, 'EM2')], 'TAU': [(0, 8, 'TAU1'), (8, 16, 'TAU2')], 'JET': [(0, 10, 'JET1'), (10, 25, 'JET2')], 'TE': [(0, 8, 'EN1'), (8, 16, 'EN2')], 'XE': [(0, 8, 'EN1'), (8, 16, 'EN2')], 'XS': [(0, 8, 'EN1')], 'MBTSSI': [(0, 16, 'NIM1'), (16, 32, 'NIM2')], 'MBTS': [(0, 1, 'NIM1'), (1, 2, 'NIM2')], 'LUCID': [(0, 6, 'CTPCAL')], 'ZDC': [(0, 3, 'CTPCAL')], 'CALREQ': [(0, 3, 'CTPCAL')], 'TOPO': [(0, 64, 'TOPO1'), (64, 128, 'TOPO2')], 'ALFA': [(0, 64, 'ALFA')], 'BCM': [(0, 3, 'CTPCAL')], 'BCMCMB': [(0, 1, 'CTPCAL')], 'BPTX': [(0, 2, 'CTPCAL')], 'DBM': [(0, 8, 'CTPCAL')], 'NIM': [(0, 12, 'NIM1'), (12, 24, 'NIM2')], 'JF': [(0, 4, 'JET1')], 'JB': [(0, 4, 'JET1')], 'JE': [(0, 4, 'JET2')], } x = type2cablename[thrtype] for (minthr, maxthr, name) in x: #print "BETTA ",mapping, minthr, maxthr, name if mapping >= minthr and mapping < maxthr: return name raise RuntimeError("Threshold type %s has no cable for mapping '%i'" % (thrtype, mapping))
def defineMenu(): """ MC and Physics menu are identical """ import Menu_MC_pp_v7 from TriggerMenu.l1.Lvl1Flags import Lvl1Flags Menu_MC_pp_v7.defineMenu() Lvl1Flags.thresholds += [] Lvl1Flags.items += [ # for running high rate tests in secondary CTP partitions #'L1_RD2_BGRP14', 'L1_RD3_BGRP15', ] #Make sure these triggers don't get assigned random CTPIDs Lvl1Flags.CtpIdMap().update({ #'L1_RD2_BGRP14' : 463, 'L1_RD3_BGRP15': 510, }) #--------------------------------- # L1menu in MCppV5 is basis # BeamSplashes: adapt some thresholds and items #--------------------------------- Lvl1Flags.ThresholdMap = { # 'EM7' : 'EM3HI', # 'EM8VH' : 'EM7', # 'EM8I' : 'EM8VH', # 'EM10' : 'EM8I', # 'EM10VH' : 'EM10VH', # 'EM12' : 'EM12', # 'EM13VH' : 'EM15', # 'EM15' : 'EM15VH', # 'EM15VH' : 'EM15I', # 'EM15I' : 'EM15HI', # 'EM15HI' : 'EM18VH', # 'EM18VH' : 'EM20A', # 'EM20VH' : 'EM20C', # 'EM20VHI' : 'EM20VH', # 'EM22VHI' : 'EM20VHI', # 'J75' : 'J75A', # 'J85' : 'J75C', # 'J100' : 'J85', # 'J120' : 'J100', # # 'HA20' : 'HA20A', # 'HA20IL' : 'HA20C', # 'HA20IM' : 'HA20', # 'HA20IT' : 'HA20IL', # 'HA25' : 'HA20IM', # 'HA25IT' : 'HA20IT', # 'HA30' : 'HA25', # 'HA40' : 'HA25IT', # 'HA60' : 'HA40', } Lvl1Flags.ItemMap = { # 'L1_EM22VHI' : 'L1_EM20A' , #eta [1.6,2.]. # 'L1_EM13VH' : 'L1_EM20C', #eta[-2,-1.6] # 'L1_J75' : 'L1_J75A', #[1.6,2.4] # 'L1_J120' : 'L1_J75C', #[-2.4,-1.6] # 'L1_EM10' : 'L1_EM3HI', # 'L1_TAU30' : 'L1_TAU20A', # 'L1_TAU60' : 'L1_TAU20C', # 'L1_2EM13VH' : '', # 'L1_3J75' : '', # 'L1_J75_3J20' : '', # 'L1_J75_XE40' :'', # 'L1_MU6_J75': '', # MC-only L1 items, candidates to be remapped # 'L1_J40.0ETA25_2J30_J20.31ETA49' : # 'L1_J40.0ETA25_XE50' : # 'L1_KF-XE50' : # 'L1_2EM8I' : # 'L1_MU4_UNPAIRED_NONISO' : # 'L1_J75_3J20' : # 'L1_2EM8I_J75' : # 'L1_EM12_W-MT25_W-15DPHI-JXE-0_W-15DPHI-EMXE_W-90RO2-XEHT-0' : # 'L1_DR25-TAU20ITAU12I-J25' : # 'L1_EM7_MU11' : # 'L1_EM12_W-MT25_W-15DPHI-JXE-0_W-15DPHI-EMXE' : # 'L1_EM12_W-MT25_W-15DPHI-JXE-0_W-15DPHI-EMXE_XS20' : # 'L1_EM15_W-MT35_W-250RO2-XEHT-0_W-15DPHI-JXE-0_W-15DPHI-EM15XE': # 'L1_2MU4_J20_XE40_DPHI-J20s2XE30' : # 'L1_J15.0ETA25_2J15.31ETA49' : # 'L1_DR25-TAU20ITAU12I' : # 'L1_EM7_UNPAIRED_NONISO' : # 'L1_DPHI-AJ20s2XE50' : # 'L1_2EM8I_J50' : # 'L1_2MU4_J20_XE50_DPHI-J20s2XE30' : # 'L1_TAU20IM_FTK' : # 'L1_TAU20IM_2TAU12IM_J25_2J20_3J12_FTK' : # 'L1_DR-TAU20ITAU12I-J25_FTK' : # 'L1_TAU8_UNPAIRED_NONISO' : } #---------------------------------------------- def remapThresholds(): threshToRemove = [] for index, thresholdName in enumerate(Lvl1Flags.thresholds()): if thresholdName in Lvl1Flags.ThresholdMap(): if (Lvl1Flags.ThresholdMap()[thresholdName] != ''): Lvl1Flags.thresholds()[index] = Lvl1Flags.ThresholdMap( )[thresholdName] else: threshToRemove.append(index) for t in reversed(threshToRemove): del Lvl1Flags.thresholds()[t] #---------------------------------------------- remapThresholds() #---------------------------------------------- def remapItems(): itemsToRemove = [] for itemIndex, itemName in enumerate(Lvl1Flags.items()): if (itemName in Lvl1Flags.ItemMap()): if (Lvl1Flags.ItemMap()[itemName] != ''): Lvl1Flags.items()[itemIndex] = Lvl1Flags.ItemMap( )[itemName] else: itemsToRemove.append(itemIndex) for i in reversed(itemsToRemove): del Lvl1Flags.items()[i] #---------------------------------------------- remapItems()
def defineMenu(): from TriggerMenu.l1.Lvl1Flags import Lvl1Flags Lvl1Flags.CTPVersion = 4 # new CTP Lvl1Flags.BunchGroupPartitioning = [ 1, 11, 14 ] # partition 1: 1-10, partition 2: 11-13, partition 3: 14-15 (note that BGRP0 is used by all items) Lvl1Flags.BunchGroupNames = [ 'BCRVeto', 'Filled', 'Calib', 'Empty', 'UnpairedBeam1', 'UnpairedBeam2', 'FirstEmpty', 'InTrain' ] Lvl1Flags.BunchGroupNames += ['NotUsed'] * len(Lvl1Flags.BunchGroupNames()) Lvl1Flags.MenuPartitioning = [ 0, 472, 492 ] # partition 1: ctpid 0-471, partition 2: ctpid 472-491, partition 3: ctpid 492-511 Lvl1Flags.RemapThresholdsAsListed = True Lvl1Flags.thresholds = [ #------------------------------------ #------------------------------------ # !!!!!!!IMPORTANT!!!!!!!!! # Please make sure to use the right # order to get the mapping right!!! #------------------------------------ #------------------------------------ 'MU4', 'MU6', 'MU10', 'MU11', 'MU15', 'MU20', 'EM3', 'EM6', 'EM10VH', 'EM12', 'EM14VH', 'EM16V', 'EM16VH', 'EM18VH', 'EM30', 'HA8', 'HA11', 'HA11I', 'HA15', 'HA15I', 'HA20', 'HA40', 'J10', 'J15', 'J20', 'J30', 'J50', 'J75', 'J100', 'J350', 'JE140', 'JE200', 'JE350', 'JE500', 'JB30', 'JB50', 'JB75', 'JB100', 'JF30', 'JF50', 'JF75', 'JF100', 'TE20', 'TE300', 'TE500', 'TE700', 'TE800', 'TE1000', 'TE1200', 'TE1400', # --> the last three are left in as a forced threshold. 'XS25', 'XS30', 'XS35', 'XS40', 'XS45', 'XS50', 'XS60', 'XS65', 'XE20', 'XE25', 'XE30', 'XE35', 'XE40', 'XE50', 'XE60', 'XE70', 'MBTS_A', 'MBTS_C', 'BPTX0', 'BPTX1', 'LUCID_A', 'LUCID_C', 'BCM_AtoC', 'BCM_CtoA', 'BCM_Wide', 'BCM_Comb', 'ZDC_A', 'ZDC_C', 'ZDC_AND', 'NIMDIR5', 'NIMDIR25', 'NIMDIR26', #CALREQ 'NIM28', 'NIM29', 'NIM30', 'NIM_MUB', 'NIM_MUE', #ZB 'ZB_EM12', ### The following are added in as forced thresholds (MBTSSI). 'MBTS_A0', 'MBTS_A1', 'MBTS_A2', 'MBTS_A3', 'MBTS_A4', 'MBTS_A5', 'MBTS_A6', 'MBTS_A7', 'MBTS_A8', 'MBTS_A9', 'MBTS_A10', 'MBTS_A11', 'MBTS_A12', 'MBTS_A13', 'MBTS_A14', 'MBTS_A15', 'MBTS_C0', 'MBTS_C1', 'MBTS_C2', 'MBTS_C3', 'MBTS_C4', 'MBTS_C5', 'MBTS_C6', 'MBTS_C7', 'MBTS_C8', 'MBTS_C9', 'MBTS_C10', 'MBTS_C11', 'MBTS_C12', 'MBTS_C13', 'MBTS_C14', 'MBTS_C15', #### Forced for ALFA 'NIM_B7R1L', 'NIM_B7R1U', 'NIM_B7L1L', 'NIM_B7L1U', 'NIM_A7R1L', 'NIM_A7R1U', 'NIM_A7L1L', 'NIM_A7L1U', 'NIM_B7R1L_OD', 'NIM_B7R1U_OD', 'NIM_B7L1L_OD', 'NIM_B7L1U_OD', 'NIM_A7R1L_OD', 'NIM_A7R1U_OD', 'NIM_A7L1L_OD', 'NIM_A7L1U_OD', ### For L1_ALFA 'NIM_ALFA_LOG', 'NIM_ALFA_LOG_OD' ] Lvl1Flags.items = [ #EM thresholds 'L1_EM3', 'L1_EM6', 'L1_EM12', 'L1_EM10VH', 'L1_EM14VH', 'L1_EM16VH', 'L1_EM18VH', 'L1_EM30', 'L1_EM30_BGRP7', #multi EM thresholds 'L1_2EM3', 'L1_2EM6', #'L1_2EM8', 'L1_2EM10VH', 'L1_2EM12', 'L1_2EM3_EM6', 'L1_2EM6_EM16VH', #'L1_2EM12_EM16V', 'L1_3EM6', 'L1_3EM6_EM14VH', #Jet thresholds 'L1_J10', 'L1_J15', 'L1_J30', 'L1_J50', 'L1_J75', 'L1_J100', 'L1_J350', #multi jets 'L1_3J10', 'L1_3J15', 'L1_3J50', 'L1_3J75', 'L1_4J10', 'L1_4J15', 'L1_4J20', 'L1_4J30', 'L1_5J15', 'L1_6J10', #forwards jets 'L1_FJ30', 'L1_FJ75', 'L1_2FJ30', 'L1_2FJ50', #XS 'L1_XS30', 'L1_XS45', 'L1_XS50', 'L1_XS60', 'L1_XS65', #XE 'L1_XE20', 'L1_XE30', 'L1_XE40', 'L1_XE50', 'L1_XE60', 'L1_XE70', #JE 'L1_JE140', 'L1_JE350', 'L1_JE200', 'L1_JE500', #TE 'L1_TE20', 'L1_TE300', 'L1_TE500', 'L1_TE700', 'L1_TE800', #EMPTY, FIRSTEMPTY, UNPAIRED etc 'L1_TAU8_EMPTY', 'L1_MU11_EMPTY', 'L1_J10_EMPTY', 'L1_J10_FIRSTEMPTY', 'L1_J10_UNPAIRED_ISO', 'L1_J10_UNPAIRED_NONISO', 'L1_J30_EMPTY', 'L1_J30_FIRSTEMPTY', 'L1_J30_UNPAIRED_ISO', 'L1_J30_UNPAIRED_NONISO', 'L1_FJ30_EMPTY', 'L1_FJ30_FIRSTEMPTY', 'L1_FJ30_UNPAIRED_ISO', 'L1_EM3_EMPTY', 'L1_EM3_FIRSTEMPTY', 'L1_EM3_UNPAIRED_ISO', 'L1_EM3_UNPAIRED_NONISO', 'L1_EM6_EMPTY', #ALFA 'L1_ALFA_EMPTY', 'L1_ALFA_EMPTY_OD', 'L1_ALFA_BGRP7', 'L1_ALFA_BGRP7_OD', #"old" ALFA ITEMS 'L1_ALFA_ELAST1', 'L1_ALFA_ELAST2', 'L1_ALFA_ELAST11', 'L1_ALFA_ELAST12', 'L1_ALFA_ELAST13', 'L1_ALFA_ELAST14', 'L1_ALFA_ELAST15', 'L1_ALFA_ELAST16', 'L1_ALFA_ELAST17', 'L1_ALFA_ELAST18', 'L1_ALFA_SDIFF1', 'L1_ALFA_SDIFF2', 'L1_ALFA_SDIFF3', 'L1_ALFA_SDIFF4', 'L1_ALFA_SDIFF5', 'L1_ALFA_SDIFF6', 'L1_ALFA_SDIFF7', 'L1_ALFA_SDIFF8', 'L1_ALFA_SHOW1', 'L1_ALFA_SHOW2', 'L1_ALFA_SHOW3', 'L1_ALFA_SHOW4', 'L1_ALFA_SYST1', 'L1_ALFA_SYST2', 'L1_ALFA_SYST3', 'L1_ALFA_SYST4', 'L1_ALFA_SYST9', 'L1_ALFA_SYST10', 'L1_ALFA_SYST11', 'L1_ALFA_SYST12', 'L1_ALFA_SYST17', 'L1_ALFA_SYST18', 'L1_ALFA_SHOWSYST1', 'L1_ALFA_SHOWSYST2', 'L1_ALFA_SHOWSYST3', 'L1_ALFA_SHOWSYST4', 'L1_ALFA_SHOWSYST5', 'L1_ALFA_ANY', 'L1_ALFA_ANY_EMPTY', 'L1_ALFA_ANY_FIRSTEMPTY', 'L1_ALFA_ANY_UNPAIRED_ISO', 'L1_ALFA_ANY_UNPAIRED_NONISO', #new ALFA itmes 'L1_ALFA_A7L1U_OD', 'L1_ALFA_A7L1L_OD', 'L1_ALFA_A7R1U_OD', 'L1_ALFA_A7R1L_OD', 'L1_ALFA_B7L1U_OD', 'L1_ALFA_B7L1L_OD', 'L1_ALFA_B7R1U_OD', 'L1_ALFA_B7R1L_OD', 'L1_ALFA_A7L1_OD', 'L1_ALFA_A7R1_OD', 'L1_ALFA_B7L1_OD', 'L1_ALFA_B7R1_OD', 'L1_ALFA_B7L1U', 'L1_ALFA_B7L1L', 'L1_ALFA_A7L1U', 'L1_ALFA_A7L1L', 'L1_ALFA_A7R1U', 'L1_ALFA_A7R1L', 'L1_ALFA_B7R1U', 'L1_ALFA_B7R1L', 'L1_ALFA_B1_EMPTY', 'L1_ALFA_B2_EMPTY', 'L1_MBTS_2_A_ALFA_C', 'L1_MBTS_2_C_ALFA_A', 'L1_MBTS_2_ALFA', 'L1_MBTS_1_A_ALFA_C', 'L1_MBTS_1_C_ALFA_A', #'L1_MBTS_1_ALFA', 'L1_MBTS_2_ALFA_UNPAIRED_ISO', 'L1_LUCID_A_ALFA_C', 'L1_LUCID_C_ALFA_A', 'L1_LUCID_ALFA', 'L1_ZDC_A_ALFA_C', 'L1_ZDC_C_ALFA_A', 'L1_ZDC_ALFA', #new combined alfa item 'L1_EM3_ALFA_ANY', 'L1_EM3_ALFA_MBTS_C', 'L1_EM3_ALFA_MBTS_A', 'L1_EM3_ALFA_ANY_UNPAIRED_ISO', 'L1_EM3_ALFA_MBTS_C_UNPAIRED_ISO', 'L1_EM3_ALFA_MBTS_A_UNPAIRED_ISO', #BGRP, L1A_Mon 'L1_BPTX0_BGRP0', #BPTX, BGRP 'L1_BPTX1_BGRP0', 'L1_L1A_Mon', 'L1_BGRP1_ALFA_BGT', 'L1_BGRP4_ALFA_BGT', 'L1_BGRP7_ALFA_BGT', 'L1_BGRP7', #ZDC 'L1_ZDC', 'L1_ZDC_EMPTY', 'L1_ZDC_A_C', 'L1_ZDC_A_C_EMPTY', #RD0, RD1 'L1_RD0_EMPTY', 'L1_RD0_FILLED', 'L1_RD0_FIRSTEMPTY', 'L1_RD0_UNPAIRED_ISO', 'L1_RD1_EMPTY', 'L1_RD1_FILLED', #TRT, ZB 'L1_TRT', 'L1_ZB', #LUCID 'L1_LUCID', 'L1_LUCID_EMPTY', 'L1_LUCID_UNPAIRED_ISO', 'L1_LUCID_COMM', 'L1_LUCID_COMM_EMPTY', 'L1_LUCID_COMM_UNPAIRED_ISO', 'L1_LUCID_BGRP7', 'L1_LUCID_A_C', 'L1_LUCID_A_C_EMPTY', 'L1_LUCID_A_C_UNPAIRED_ISO', 'L1_LUCID_A_C_UNPAIRED_NONISO', #MBTS 'L1_MBTS_1', 'L1_MBTS_2', 'L1_MBTS_4_4', 'L1_MBTS_2_UNPAIRED_ISO', 'L1_MBTS_1_UNPAIRED_ISO', 'L1_MBTS_2_BGRP7', #BCM 'L1_BCM_Wide_EMPTY', 'L1_BCM_Wide_UNPAIRED_ISO', 'L1_BCM_Wide_UNPAIRED_NONISO', 'L1_BCM_Wide_BGRP0', 'L1_BCM_HT_BGRP0', 'L1_BCM_AC_CA_BGRP0', 'L1_BCM_AC_CA_UNPAIRED_ISO', 'L1_CALREQ0', 'L1_CALREQ1', 'L1_CALREQ2', #UNPAIRED_ISO ADDITIONS: 'L1_LUCID_A_ALFA_C_UNPAIRED_ISO', 'L1_LUCID_C_ALFA_A_UNPAIRED_ISO', 'L1_MBTS_2_C_ALFA_A_UNPAIRED_ISO', 'L1_MBTS_2_A_ALFA_C_UNPAIRED_ISO', 'L1_MBTS_1_C_ALFA_A_UNPAIRED_ISO', 'L1_MBTS_1_A_ALFA_C_UNPAIRED_ISO', ] Lvl1Flags.CtpIdMap = {}