Commit 314a7ff2 authored by Javier Montejo's avatar Javier Montejo
Browse files

Added triggers for NCB: ATR-17056


Former-commit-id: dfe7eea2
parent 0c231645
......@@ -54,6 +54,8 @@ class ItemDef:
bgrp9cond = BGRP0 & BGRP9 # noqa: F821
bgrp11cond = BGRP0 & BGRP11 # noqa: F821
bgrp12cond = BGRP0 & BGRP12 # noqa: F821
bgrp13cond = BGRP0 & BGRP13 #UNPAIREDB1 # noqa: F821
bgrp14cond = BGRP0 & BGRP14 #UNPAIREDB2 # noqa: F821
alfacalib = BGRP0 & BGRP10 # noqa: F821
abortgap = BGRP0 & BGRP8 # noqa: F821
......@@ -521,6 +523,7 @@ class ItemDef:
LVL1MenuItem('L1_J12_EMPTY').setLogic( J12 & cosmiccond ).setTriggerType(TT.calo) # noqa: F821
LVL1MenuItem('L1_J12_FIRSTEMPTY').setLogic( J12 & firstempty ).setTriggerType(TT.calo) # noqa: F821
LVL1MenuItem('L1_J12_ABORTGAPNOTCALIB').setLogic( J12 & abortgap ).setTriggerType(TT.calo) # noqa: F821
LVL1MenuItem('L1_J12_UNPAIREDB1').setLogic( J12 & bgrp13cond ).setTriggerType(TT.calo) # noqa: F821
LVL1MenuItem('L1_J50_UNPAIRED_ISO' ).setLogic( J50 & unpaired_isocond ).setTriggerType(TT.calo) # noqa: F821
LVL1MenuItem('L1_J50_UNPAIRED_NONISO').setLogic( J50 & unpaired_nonisocond).setTriggerType(TT.calo) # noqa: F821
......@@ -1026,6 +1029,8 @@ class ItemDef:
LVL1MenuItem('L1_BCM_CA_CALIB' ).setLogic( BCM_CtoA & calibcond).setTriggerType(TT.minb) # noqa: F821
LVL1MenuItem('L1_BCM_Wide_CALIB' ).setLogic( BCM_Wide & calibcond).setTriggerType(TT.minb) # noqa: F821
LVL1MenuItem('L1_BCM_AC_UNPAIREDB1' ).setLogic( BCM_AtoC & bgrp13cond).setTriggerType(TT.minb) # noqa: F821
# RANDOM
......@@ -1763,6 +1768,9 @@ class ItemDef:
LVL1MenuItem.currentPartition = 2
LVL1MenuItem('L1_RD2_BGRP14' ).setLogic( RNDM2 & BGRP0 & BGRP14 ).setTriggerType(TT.rand) # noqa: F821
#UNPAIREDB2 is BGRP14, needs to go in partition 2
LVL1MenuItem('L1_BCM_CA_UNPAIREDB2' ).setLogic( BCM_CtoA & bgrp14cond).setTriggerType(TT.minb) # noqa: F821
LVL1MenuItem('L1_J12_UNPAIREDB2').setLogic( J12 & bgrp14cond).setTriggerType(TT.calo) # noqa: F821
# Partition 3
......
......@@ -12,6 +12,7 @@ def print_available():
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 defineMenu():
"""
......@@ -483,6 +484,7 @@ def defineMenu():
"L1_J20.28ETA31",
#'L1_J40.0ETA25',
"L1_J12_EMPTY","L1_J12_FIRSTEMPTY", "L1_J12_UNPAIRED_ISO", "L1_J12_UNPAIRED_NONISO", "L1_J12_ABORTGAPNOTCALIB",
"L1_J12_UNPAIREDB1", "L1_J12_UNPAIREDB2",
"L1_J15.31ETA49_UNPAIRED_ISO",
"L1_J30_EMPTY", "L1_J30_FIRSTEMPTY", "L1_J30.31ETA49_EMPTY", "L1_J30.31ETA49_UNPAIRED_ISO",
"L1_J30.31ETA49_UNPAIRED_NONISO",
......@@ -615,6 +617,7 @@ def defineMenu():
# BCM
'L1_BCM_Wide_BGRP0','L1_BCM_AC_CA_BGRP0', 'L1_BCM_Wide_EMPTY','L1_BCM_Wide_UNPAIRED_ISO','L1_BCM_Wide_UNPAIRED_NONISO', 'L1_BCM_AC_CA_UNPAIRED_ISO',
'L1_BCM_AC_UNPAIRED_ISO','L1_BCM_CA_UNPAIRED_ISO',
'L1_BCM_AC_UNPAIREDB1','L1_BCM_CA_UNPAIREDB2',
'L1_BCM_AC_UNPAIRED_NONISO','L1_BCM_CA_UNPAIRED_NONISO',
'L1_BCM_AC_ABORTGAPNOTCALIB', 'L1_BCM_CA_ABORTGAPNOTCALIB','L1_BCM_Wide_ABORTGAPNOTCALIB',
'L1_BCM_AC_CALIB', 'L1_BCM_CA_CALIB','L1_BCM_Wide_CALIB',
......@@ -1035,6 +1038,8 @@ def defineMenu():
'L1_J12_FIRSTEMPTY' : 112,
'L1_J12_UNPAIRED_ISO' : 113,
'L1_J12_UNPAIRED_NONISO' : 114,
'L1_J12_UNPAIREDB1' : 443,
'L1_J12_UNPAIREDB2' : 476,
'L1_J12_ABORTGAPNOTCALIB' : 115,
'L1_J15.31ETA49_UNPAIRED_ISO' : 75,
'L1_J30_EMPTY' : 116,
......@@ -1094,6 +1099,7 @@ def defineMenu():
'L1_BCM_Wide_UNPAIRED_NONISO' : 161,
'L1_BCM_AC_CA_UNPAIRED_ISO' : 162,
'L1_BCM_AC_UNPAIRED_ISO' : 163,
'L1_BCM_AC_UNPAIREDB1' : 447,
'L1_MBTS_1_EMPTY' : 164,
'L1_MBTS_1_UNPAIRED_ISO' : 165,
'L1_MBTS_2_EMPTY' : 166,
......@@ -1240,6 +1246,7 @@ def defineMenu():
'L1_BCM_CA_UNPAIRED_ISO' : 229,
'L1_BCM_CA_UNPAIREDB2' : 475,
'L1_BCM_AC_UNPAIRED_NONISO' : 230,
'L1_BCM_CA_UNPAIRED_NONISO' : 231,
'L1_BCM_AC_ABORTGAPNOTCALIB' : 232,
......
......@@ -54,6 +54,9 @@ def Lvl1ItemByTriggerType(l1object, triggertypebit, triggertypebitmask):
def getL1BackgroundSeed(menul1items):
l1background_seeds = 'L1_BCM_AC_CA_BGRP0,L1_BCM_Wide_EMPTY,L1_BCM_Wide_UNPAIRED_ISO,L1_BCM_Wide_UNPAIRED_NONISO,L1_J30.31ETA49_UNPAIRED_ISO,L1_J12_UNPAIRED_ISO,L1_J12_UNPAIRED_NONISO,L1_J12_ABORTGAPNOTCALIB,L1_BCM_AC_UNPAIRED_ISO,L1_BCM_CA_UNPAIRED_ISO,L1_BCM_AC_UNPAIRED_NONISO,L1_BCM_CA_UNPAIRED_NONISO,L1_J30.31ETA49_UNPAIRED_NONISO,L1_BCM_AC_ABORTGAPNOTCALIB,L1_BCM_CA_ABORTGAPNOTCALIB,L1_BCM_Wide_ABORTGAPNOTCALIB,L1_BCM_AC_CALIB,L1_BCM_CA_CALIB,L1_BCM_Wide_CALIB,L1_J50_UNPAIRED_ISO,L1_J50_UNPAIRED_NONISO,L1_J50_ABORTGAPNOTCALIB'
if 'pp_v7' in TriggerFlags.triggerMenuSetup():
l1background_seeds += ',L1_BCM_AC_UNPAIREDB1,L1_BCM_CA_UNPAIREDB2,L1_J12_UNPAIREDB1,L1_J12_UNPAIREDB2'
if TriggerFlags.triggerMenuSetup() == 'LS1_v1':
l1background_seeds = 'L1_BCM_AC_CA_BGRP0,L1_BCM_AC_CA_UNPAIRED_ISO,L1_BCM_Wide_EMPTY,L1_BCM_Wide_UNPAIRED_ISO,L1_BCM_Wide_UNPAIRED_NONISO,L1_EM3_UNPAIRED_ISO,L1_FJ30_UNPAIRED_ISO,L1_J10_UNPAIRED_ISO,L1_J10_UNPAIRED_NONISO,L1_LUCID_A_C_EMPTY,L1_LUCID_A_C_UNPAIRED_ISO,L1_LUCID_A_C_UNPAIRED_NONISO,L1_LUCID_EMPTY,L1_LUCID_UNPAIRED_ISO,L1_MU4_UNPAIRED_ISO,L1_LUCID_COMM_UNPAIRED_ISO,L1_LUCID_COMM_EMPTY'
......@@ -435,7 +438,7 @@ def getInputTEfromL1Item(l1item):
'L1_TAU8_FIRSTEMPTY': ['HA8'],
'L1_TAU8_UNPAIRED_ISO': ['HA8'],
'L1_TAU8_UNPAIRED_NONISO': ['HA8'],
'L1_TAU12_EMPTY': ['HA12'],
'L1_TAU12_EMPTY': ['HA12'],
'L1_TAU12_FIRSTEMPTY': ['HA12'],
'L1_TAU12_UNPAIRED_ISO': ['HA12'],
'L1_RD0_FIRSTEMPTY': [''],
......
......@@ -3,7 +3,7 @@
<LVL1Config name="MC_pp_v7" ctpVersion="4" l1Version="1">
<!--File is generated by TriggerMenu-->
<!--No. L1 thresholds defined: 287-->
<!--No. L1 items defined: 476-->
<!--No. L1 items defined: 480-->
<TriggerMenu name="MC_pp_v7" phase="lumi">
<TriggerItem ctpid="0" partition="1" name="L1_EM3" complex_deadtime="0" definition="(EM3[x1]&amp;BGRP0&amp;BGRP1)" trigger_type="10000100" monitor="LF:000|HF:000">
<AND>
......@@ -3414,6 +3414,13 @@
<InternalTrigger name="BGRP1"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="443" partition="1" name="L1_J12_UNPAIREDB1" complex_deadtime="0" definition="(J12[x1]&amp;BGRP0&amp;BGRP13)" trigger_type="10000100" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="1" name="J12_x1" triggerthreshold="J12"/>
<InternalTrigger name="BGRP0"/>
<InternalTrigger name="BGRP13"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="444" partition="1" name="L1_AFP_A_AND_C_SPECTOF_J50" complex_deadtime="0" definition="(AFP_FSA_TOF[x1]&amp;AFP_FSC_TOF[x1]&amp;J50[x1]&amp;BGRP0&amp;BGRP1)" trigger_type="10000000" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="1" name="AFP_FSA_TOF_x1" triggerthreshold="AFP_FSA_TOF"/>
......@@ -3432,6 +3439,13 @@
<InternalTrigger name="BGRP1"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="447" partition="1" name="L1_BCM_AC_UNPAIREDB1" complex_deadtime="0" definition="(BCM_AtoC[x1]&amp;BGRP0&amp;BGRP13)" trigger_type="10100000" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="1" name="BCM_AtoC_x1" triggerthreshold="BCM_AtoC"/>
<InternalTrigger name="BGRP0"/>
<InternalTrigger name="BGRP13"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="448" partition="1" name="L1_AFP_A_AND_C" complex_deadtime="0" definition="(AFP_NSA[x1]&amp;AFP_FSA_SIT[x1]&amp;AFP_NSC[x1]&amp;AFP_FSC_SIT[x1]&amp;BGRP0&amp;BGRP1)" trigger_type="10000000" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="1" name="AFP_NSA_x1" triggerthreshold="AFP_NSA"/>
......@@ -3631,6 +3645,20 @@
<InternalTrigger name="BGRP1"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="475" partition="2" name="L1_BCM_CA_UNPAIREDB2" complex_deadtime="0" definition="(BCM_CtoA[x1]&amp;BGRP0&amp;BGRP14)" trigger_type="0000" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="1" name="BCM_CtoA_x1" triggerthreshold="BCM_CtoA"/>
<InternalTrigger name="BGRP0"/>
<InternalTrigger name="BGRP14"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="476" partition="2" name="L1_J12_UNPAIREDB2" complex_deadtime="0" definition="(J12[x1]&amp;BGRP0&amp;BGRP14)" trigger_type="0100" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="1" name="J12_x1" triggerthreshold="J12"/>
<InternalTrigger name="BGRP0"/>
<InternalTrigger name="BGRP14"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="479" partition="1" name="L1_2TAU20IM_J25_3J20" complex_deadtime="0" definition="(HA20IM[x2]&amp;J25[x1]&amp;J20[x3]&amp;BGRP0&amp;BGRP1)" trigger_type="10000100" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="2" name="HA20IM_x2" triggerthreshold="HA20IM"/>
......@@ -4307,11 +4335,11 @@
<Prescale ctpid="440" cut="000001" value="1"/>
<Prescale ctpid="441" cut="000001" value="1"/>
<Prescale ctpid="442" cut="000001" value="1"/>
<Prescale ctpid="443" cut="-000001" value="-1"/>
<Prescale ctpid="443" cut="000001" value="1"/>
<Prescale ctpid="444" cut="000001" value="1"/>
<Prescale ctpid="445" cut="-000001" value="-1"/>
<Prescale ctpid="446" cut="000001" value="1"/>
<Prescale ctpid="447" cut="-000001" value="-1"/>
<Prescale ctpid="447" cut="000001" value="1"/>
<Prescale ctpid="448" cut="000001" value="1"/>
<Prescale ctpid="449" cut="000001" value="1"/>
<Prescale ctpid="450" cut="000001" value="1"/>
......@@ -4339,8 +4367,8 @@
<Prescale ctpid="472" cut="000001" value="1"/>
<Prescale ctpid="473" cut="000001" value="1"/>
<Prescale ctpid="474" cut="000001" value="1"/>
<Prescale ctpid="475" cut="-000001" value="-1"/>
<Prescale ctpid="476" cut="-000001" value="-1"/>
<Prescale ctpid="475" cut="000001" value="1"/>
<Prescale ctpid="476" cut="000001" value="1"/>
<Prescale ctpid="477" cut="-000001" value="-1"/>
<Prescale ctpid="478" cut="-000001" value="-1"/>
<Prescale ctpid="479" cut="000001" value="1"/>
......
......@@ -3,7 +3,7 @@
<LVL1Config name="Physics_pp_v7" ctpVersion="4" l1Version="1">
<!--File is generated by TriggerMenu-->
<!--No. L1 thresholds defined: 287-->
<!--No. L1 items defined: 478-->
<!--No. L1 items defined: 482-->
<TriggerMenu name="Physics_pp_v7" phase="lumi">
<TriggerItem ctpid="0" partition="1" name="L1_EM3" complex_deadtime="0" definition="(EM3[x1]&amp;BGRP0&amp;BGRP1)" trigger_type="10000100" monitor="LF:000|HF:000">
<AND>
......@@ -3414,6 +3414,13 @@
<InternalTrigger name="BGRP1"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="443" partition="1" name="L1_J12_UNPAIREDB1" complex_deadtime="0" definition="(J12[x1]&amp;BGRP0&amp;BGRP13)" trigger_type="10000100" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="1" name="J12_x1" triggerthreshold="J12"/>
<InternalTrigger name="BGRP0"/>
<InternalTrigger name="BGRP13"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="444" partition="1" name="L1_AFP_A_AND_C_SPECTOF_J50" complex_deadtime="0" definition="(AFP_FSA_TOF[x1]&amp;AFP_FSC_TOF[x1]&amp;J50[x1]&amp;BGRP0&amp;BGRP1)" trigger_type="10000000" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="1" name="AFP_FSA_TOF_x1" triggerthreshold="AFP_FSA_TOF"/>
......@@ -3432,6 +3439,13 @@
<InternalTrigger name="BGRP1"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="447" partition="1" name="L1_BCM_AC_UNPAIREDB1" complex_deadtime="0" definition="(BCM_AtoC[x1]&amp;BGRP0&amp;BGRP13)" trigger_type="10100000" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="1" name="BCM_AtoC_x1" triggerthreshold="BCM_AtoC"/>
<InternalTrigger name="BGRP0"/>
<InternalTrigger name="BGRP13"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="448" partition="1" name="L1_AFP_A_AND_C" complex_deadtime="0" definition="(AFP_NSA[x1]&amp;AFP_FSA_SIT[x1]&amp;AFP_NSC[x1]&amp;AFP_FSC_SIT[x1]&amp;BGRP0&amp;BGRP1)" trigger_type="10000000" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="1" name="AFP_NSA_x1" triggerthreshold="AFP_NSA"/>
......@@ -3645,6 +3659,20 @@
<InternalTrigger name="BGRP1"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="475" partition="2" name="L1_BCM_CA_UNPAIREDB2" complex_deadtime="0" definition="(BCM_CtoA[x1]&amp;BGRP0&amp;BGRP14)" trigger_type="0000" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="1" name="BCM_CtoA_x1" triggerthreshold="BCM_CtoA"/>
<InternalTrigger name="BGRP0"/>
<InternalTrigger name="BGRP14"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="476" partition="2" name="L1_J12_UNPAIREDB2" complex_deadtime="0" definition="(J12[x1]&amp;BGRP0&amp;BGRP14)" trigger_type="0100" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="1" name="J12_x1" triggerthreshold="J12"/>
<InternalTrigger name="BGRP0"/>
<InternalTrigger name="BGRP14"/>
</AND>
</TriggerItem>
<TriggerItem ctpid="479" partition="1" name="L1_2TAU20IM_J25_3J20" complex_deadtime="0" definition="(HA20IM[x2]&amp;J25[x1]&amp;J20[x3]&amp;BGRP0&amp;BGRP1)" trigger_type="10000100" monitor="LF:000|HF:000">
<AND>
<TriggerCondition multi="2" name="HA20IM_x2" triggerthreshold="HA20IM"/>
......@@ -4321,11 +4349,11 @@
<Prescale ctpid="440" cut="000001" value="1"/>
<Prescale ctpid="441" cut="000001" value="1"/>
<Prescale ctpid="442" cut="000001" value="1"/>
<Prescale ctpid="443" cut="-000001" value="-1"/>
<Prescale ctpid="443" cut="000001" value="1"/>
<Prescale ctpid="444" cut="000001" value="1"/>
<Prescale ctpid="445" cut="-000001" value="-1"/>
<Prescale ctpid="446" cut="000001" value="1"/>
<Prescale ctpid="447" cut="-000001" value="-1"/>
<Prescale ctpid="447" cut="000001" value="1"/>
<Prescale ctpid="448" cut="000001" value="1"/>
<Prescale ctpid="449" cut="000001" value="1"/>
<Prescale ctpid="450" cut="000001" value="1"/>
......@@ -4353,8 +4381,8 @@
<Prescale ctpid="472" cut="000001" value="1"/>
<Prescale ctpid="473" cut="000001" value="1"/>
<Prescale ctpid="474" cut="000001" value="1"/>
<Prescale ctpid="475" cut="-000001" value="-1"/>
<Prescale ctpid="476" cut="-000001" value="-1"/>
<Prescale ctpid="475" cut="000001" value="1"/>
<Prescale ctpid="476" cut="000001" value="1"/>
<Prescale ctpid="477" cut="-000001" value="-1"/>
<Prescale ctpid="478" cut="-000001" value="-1"/>
<Prescale ctpid="479" cut="000001" value="1"/>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment