10 if flags.Trigger.enableL1MuonPhase1
and not flags.Trigger.enableL1CaloLegacy:
12 _log.debug(
'Not adding RoIBResultToxAOD because no Run-2 L1 system is enabled by flags')
16 alg = CompFactory.RoIBResultToxAOD(
'RoIBResultToxAOD')
17 alg.DoMuon = flags.Detector.EnableMuon
and not flags.Trigger.enableL1MuonPhase1
18 alg.DoCalo = flags.Detector.EnableCalo
and flags.Trigger.enableL1CaloLegacy
20 if flags.Input.Format
is Format.POOL:
21 if str(alg.xAODKeyMuon)
in flags.Input.Collections:
22 _log.debug(
'L1Muon xAOD already in the input file, setting RoIBResultToxAOD.DoMuon=False')
24 allCaloOutputs = [k.Path
for k
in [alg.xAODKeyEmTau, alg.xAODKeyEsum, alg.xAODKeyJetEt, alg.xAODKeyJet]]
25 if all([k
in flags.Input.Collections
for k
in allCaloOutputs]):
26 _log.debug(
'L1Calo xAOD already in the input file, setting RoIBResultToxAOD.DoCalo=False')
29 if not alg.DoMuon
and not alg.DoCalo:
30 _log.debug(
'Not adding RoIBResultToxAOD because both DoMuon and DoCalo properties are False')
33 if flags.Input.Format
is Format.BS:
34 from TrigT1CaloByteStream.LVL1CaloRun2ByteStreamConfig
import LVL1CaloRun2ReadBSCfg
41 (alg.xAODKeyMuon.Type, alg.xAODKeyMuon.Path)
43 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
46 from MuonConfig.MuonCablingConfig
import RPCCablingConfigCfg
49 from MuonConfig.MuonCablingConfig
import TGCCablingConfigCfg
54 (alg.xAODKeyEmTau.Type, alg.xAODKeyEmTau.Path),
55 (alg.xAODKeyEsum.Type, alg.xAODKeyEsum.Path),
56 (alg.xAODKeyJetEt.Type, alg.xAODKeyJetEt.Path),
57 (alg.xAODKeyJet.Type, alg.xAODKeyJet.Path)
59 from TrigConfigSvc.TrigConfigSvcCfg
import L1ConfigSvcCfg
64 return acc, outputList