Exemplo n.º 1
0
    Lvl1InternalTrigger('BGRP1'))

thr = l1menu.registerThr('EM3', 'EM').addThrValue(3)
LVL1MenuItem('L1_EM3').setLogic(ThrCondition(thr) & bgrp).setTriggerType(
    TT.calo)

thr = l1menu.registerThr('EM25i', 'EM').addThrValue(25)
LVL1MenuItem('L1_EM25i').setLogic(ThrCondition(thr) & bgrp).setTriggerType(
    TT.calo)

from TriggerMenu.menu.TriggerPythonConfig import TriggerPythonConfig
from TriggerMenu.menu.HLTObjects import HLTChain
menu = TriggerPythonConfig('pureSteering_menu.xml')

from TrigSteeringTest.TrigSteeringTestConf import PESA__dummyAlgo, PESA__dummyHypo, PESA__newDummyAlgo2To1, PESA__newDummyAlgoAllTEs, PESA__dummyAlgoHLTErrorCode, PESA__dummyMonitoredFex, PESA__dummyAlgoForCalibration
Egamma = PESA__dummyAlgo('Egamma_L2')  # create configurable instance
Egamma2 = PESA__dummyAlgo('Egamma2_L2')  # create configurable another instance
EgammaAdv3 = PESA__dummyAlgo("EgammaAdv3")
EgammaAdv_L2 = PESA__dummyAlgo("EgammaAdv_L2")
menu.addSequence("EM15i", [Egamma, Egamma2, EgammaAdv3],
                 "em15i")  # use bot here, mixing with old fassioned way
menu.addSequence("em15i", EgammaAdv_L2,
                 "em15i'")  # create configurable on the fly

# chains
# passage based on EM3
chain = HLTChain(chain_name="L2_Ored",
                 chain_counter="100",
                 lower_chain_name="L1_MU6,L1_EM25i",
                 level="HLT",
                 prescale="1",
Exemplo n.º 2
0
thr = l1menu.registerThr('EM25i','EM').addThrValue(25)
LVL1MenuItem('L1_EM25i').setLogic( ThrCondition(thr) & bgrp ).setTriggerType( TT.calo )



from TriggerMenu.menu.TriggerPythonConfig import TriggerPythonConfig
from TriggerMenu.menu.HLTObjects import HLTChain

menu = TriggerPythonConfig('pureSteering_menu.xml')

from TrigSteeringTest.TrigSteeringTestConf import PESA__dummyAlgo, PESA__dummyHypo, PESA__newDummyAlgo2To1, PESA__newDummyAlgoAllTEs, PESA__dummyAlgoHLTErrorCode, PESA__dummyMonitoredFex, PESA__dummyAlgoForCalibration

# L2
# examples below show all the posibilities of configuring Sequences
Egamma = PESA__dummyAlgo('Egamma_L2')                                     # create configurable instance
Egamma2 = PESA__dummyAlgo('Egamma2_L2')                                   # create configurable another instance
EgammaAdv3 = PESA__dummyAlgo("EgammaAdv3")
EgammaAdv_L2 = PESA__dummyAlgo("EgammaAdv_L2")
menu.addSequence("EM15i" , [ Egamma, Egamma2, EgammaAdv3 ] , "L2_em15i" )  # use bot here, mixing with old fassioned way
menu.addSequence("L2_em15i" , EgammaAdv_L2, "L2_em15i'" )    # create configurable on the fly

defalgo = PESA__dummyAlgo('Em25')                                               # no arg given ...default name

menu.addSequence("EM25i" , defalgo, "L2_em25i" )

EgammaAdv_g2 = PESA__dummyAlgo("EgammaAdv_g2")
menu.addSequence("L2_em25i" ,EgammaAdv_g2 ,"L2_em25i'" )


Exemplo n.º 3
0
LVL1MenuItem('L1_EM3'       ).setLogic( ThrCondition(EM3) & bgrp ).setTriggerType( TT.calo )

MU4 = l1menu.registerThr('MU4','MUON').addThrValue(4)
LVL1MenuItem('L1_MU4'       ).setLogic( ThrCondition(MU4) & bgrp ).setTriggerType( TT.muon )

# Generate and write L1 menu
l1menu.generateMenu()        
l1menu.writeXML()


from TriggerMenu.menu.TriggerPythonConfig import TriggerPythonConfig
from TriggerMenu.menu.HLTObjects import HLTChain
hltmenu = TriggerPythonConfig('hltmenu.xml')

from TrigSteeringTest.TrigSteeringTestConf import PESA__dummyAlgo
defalgo = PESA__dummyAlgo('Em3')
hltmenu.addSequence("EM3" , defalgo, "em3" )

chain = HLTChain( chain_name="HLT_e3", chain_counter="1", lower_chain_name="EM3", level = "HLT", prescale="1", pass_through="1")
chain.addHLTSignature( "em3" ).addHLTSignature( "em3" )
chain.addTriggerTypeBit('4')
chain.addStreamTag('electrons', prescale='1', obeyLB="yes")
chain.addStreamTag('IDCalibration', prescale='1', obeyLB="no", type="calibration")
chain.addGroup("electrons")
hltmenu.addHLTChain(chain)

hltmenu.writeConfigFiles();

import sys
sys.exit(0)
Exemplo n.º 4
0
item = LVL1MenuItem('J50+XE60', prescale='1', ctpid='2')
item.addAndedCondition(name='J50', multi='1')
item.addAndedCondition(name='XE60', multi='1')
menu.addLVL1Item(item)

menu.addItem('XE30', prescale='0', ctpid='23')
menu.addEtMissThreshold('XE30', value='20')

menu.addItem('XE60', prescale='0', ctpid='23')
menu.addEtMissThreshold('XE60', value='50')

from TrigSteeringTest.TrigSteeringTestConf import PESA__dummyAlgo, PESA__newDummyAlgo2To1, PESA__newDummyAlgoAllTEs

# L2
# examples below show all the posibilities of configuring Sequences
Egamma = PESA__dummyAlgo('Egamma_L2')  # create configurable instance
Egamma2 = PESA__dummyAlgo('Egamma2_L2')  # create configurable another instance

menu.addSequence("EM15i", [Egamma, Egamma2, "PESA::dummyAlgo/EgammaAdv3"],
                 "em15i")  # use bot here, mixing with old fassioned way
menu.addSequence("em15i", PESA__dummyAlgo("EgammaAdv_L2"),
                 "em15i'")  # create configurable on the fly

defalgo = PESA__dummyAlgo('Em25')  # no arg given ...default name
menu.addSequence("EM25i", defalgo, "em25i")
menu.addSequence("em25i", "PESA::dummyAlgo/EgammaAdv/g10",
                 "em25i'")  # ols stryle again; with parameter

Muon = PESA__dummyAlgo('Muon')
Muon2 = PESA__dummyAlgo('Muon2')
menu.addSequence("MU20", [Muon, Muon2], "mu20")
Exemplo n.º 5
0
# L1 menu
include('TrigSteering/pureSteering_l1menu.py')

# HLT menu

from TriggerMenu.menu.TriggerPythonConfig import TriggerPythonConfig
from TriggerMenu.menu.HLTObjects import HLTChain

from TrigSteeringTest.TrigSteeringTestConf import PESA__dummyAlgo, PESA__dummyHypo, PESA__newDummyAlgo2To1, PESA__newDummyAlgoAllTEs, PESA__dummyAlgoHLTErrorCode, PESA__dummyMonitoredFex, PESA__dummyAlgoForCalibration, dummyFexWithRobReqPrep

menu = TriggerPythonConfig('pureSteering_menu.xml')

# L2
# examples below show all the posibilities of configuring Sequences
Egamma = PESA__dummyAlgo('Egamma_L2')  # create configurable instance
Egamma2 = PESA__dummyAlgo('Egamma2_L2')  # create configurable another instance
EgammaAdv3 = PESA__dummyAlgo("EgammaAdv3")
EgammaAdv_L2 = PESA__dummyAlgo("EgammaAdv_L2")
menu.addSequence("EM15i", [Egamma, Egamma2, EgammaAdv3],
                 "em15i")  # use bot here, mixing with old fassioned way
menu.addSequence("em15i", EgammaAdv_L2,
                 "em15i'")  # create configurable on the fly

defalgo = PESA__dummyAlgo('Em25')  # no arg given ...default name

menu.addSequence("EM25i", defalgo, "em25i")

EgammaAdv_g2 = PESA__dummyAlgo("EgammaAdv_g2")
menu.addSequence("em25i", EgammaAdv_g2, "em25i'")

Muon = PESA__dummyAlgo('Muon')
Exemplo n.º 6
0
# L1 menu
include('TrigSteering/pureSteering_l1menu.py')

from TriggerMenu.menu.TriggerPythonConfig import TriggerPythonConfig
from TriggerMenu.menu.HLTObjects import HLTChain

menu = TriggerPythonConfig("pureSteering_menu.xml")

defaultOutputLevel = VERBOSE

from TrigSteeringTest.TrigSteeringTestConf import PESA__dummyAlgo, PESA__dummyHypo, PESA__dummyAlgoHLTErrorCode

# L2
# examples below show all the posibilities of configuring Sequences
Fex1 = PESA__dummyAlgo('Fex1')                                     
Fex2 = PESA__dummyAlgo('Fex2')
eg1 =  PESA__dummyAlgoHLTErrorCode('eg1')
eg1.HLTErrorCode = "ABORT_CHAIN ALGO_ERROR  MISSING_ROD"
eg1.OutputLevel=defaultOutputLevel

eg2 =  PESA__dummyAlgoHLTErrorCode('eg2')
eg2.HLTErrorCode = "ABORT_CHAIN  ALGO_ERROR MISSING_ROD"
eg2.ErrorCodeMap = { "ABORT_CHAIN  ALGO_ERROR MISSING_ROD" : "CONTINUE UNKNOWN MISSING_ROD" }
eg2.OutputLevel=defaultOutputLevel

eg3 =  PESA__dummyAlgoHLTErrorCode('eg3')
eg3.HLTErrorCode = "ABORT_CHAIN  ALGO_ERROR CORRUPTED_ROD"
eg3.ErrorCodeMap = { "ABORT_CHAIN ALGO_ERROR  MISSING_ROD" : "CONTINUE UNKNOWN MISSING_ROD",  "ABORT_CHAIN  ALGO_ERROR NAV_ERROR" : "CONTINUE UNKNOWN NAV_ERROR"}
eg3.OutputLevel=defaultOutputLevel
Exemplo n.º 7
0
# L1 menu
include('TrigSteering/pureSteering_l1menu.py')

from TriggerMenu.menu.TriggerPythonConfig import TriggerPythonConfig
from TriggerMenu.menu.HLTObjects import HLTChain

menu = TriggerPythonConfig('pureSteering_menu.xml')

from TrigSteeringTest.TrigSteeringTestConf import PESA__dummyAlgo, PESA__dummyHypo, PESA__newDummyAlgo2To1, PESA__newDummyAlgoAllTEs, PESA__dummyAlgoHLTErrorCode, PESA__dummyMonitoredFex, PESA__dummyAlgoForCalibration

# L2
# examples below show all the posibilities of configuring Sequences
defalgo = PESA__dummyAlgo('Em25')  # no arg given ...default name

menu.addSequence("EM25i", defalgo, "em25i")

EgammaAdv_g2 = PESA__dummyAlgo("EgammaAdv_g2")
menu.addSequence("em25i", EgammaAdv_g2, "em25i'")
EgammaAdv_g3 = PESA__dummyAlgo("EgammaAdv_g3")
EverRecjectingHypo = PESA__dummyHypo("g25fail")
EverRecjectingHypo.PreScale = 1000000
menu.addSequence("em25i", [EgammaAdv_g3, EverRecjectingHypo], "L2_e25fail")

# EF
EFeg1 = PESA__dummyAlgo("EFeg1")
EFeg2 = PESA__dummyAlgo("EFeg2")
menu.addSequence("em25i'", EFeg1, "EF_e25i")
menu.addSequence("EF_e25i", EFeg2, "EF_e25i'")
EverRecjectingEFHypo = PESA__dummyHypo("efg25fail")
EverRecjectingEFHypo.PreScale = 1000000
menu.addSequence("EF_e25i", [EFeg2, EverRecjectingEFHypo], "EF_e25fail")