1 import FWCore.ParameterSet.Config
as cms
3 from Configuration.StandardSequences.Eras
import eras
9 if not eras.stage2L1Trigger.isChosen():
19 subsys.append(
'CSCTF1')
23 subsys.append(
'CSCTF2')
26 subsys.append(
'CSCTF1')
27 subsys.append(
'CSCTF2')
29 if 'CSCTF2' in subsys:
36 if eras.stage1L1Trigger.isChosen():
42 subsys.append(
'S1CALOL2')
43 if 'S1CALOL2' in subsys:
46 subsys.append(
'CSCTF1')
50 subsys.append(
'CSCTF2')
53 subsys.append(
'CSCTF1')
54 subsys.append(
'CSCTF2')
56 if 'CSCTF2' in subsys:
63 if eras.stage2L1Trigger.isChosen():
65 subsys.append(
'CALOL1')
67 subsys.append(
'CALOL1')
68 if 'CALOL1' in subsys:
69 subsys.append(
'CALOL2')
70 if 'CALOL2' in subsys:
106 process.simEcalTriggerPrimitiveDigis.inputLabel = cms.InputTag(
'ecalDigis' )
109 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.InputTag(
'hcalDigis' )
112 if 'ECAL' not in subsys:
113 process.simRctDigis.ecalDigis = cms.VInputTag( cms.InputTag(
'ecalDigis:ECALTriggerPrimitives' ) )
114 if 'HCAL' not in subsys:
115 process.simRctDigis.ecalDigis = cms.VInputTag( cms.InputTag(
'hcalDigis' ) )
117 if (
'GCT' in subsys)
and (
'RCT' not in subsys):
118 process.simGctDigis.inputLabel =
'gctDigis'
121 process.simDtTriggerPrimitiveDigis.digiTag =
'muonDTDigis'
124 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi' )
125 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
128 if 'DT' not in subsys:
129 process.simDttfDigis.DTDigi_Source =
'dtTriggerPrimitiveDigis'
130 if 'CSCTF1' not in subsys:
131 process.simDttfDigis.CSCStub_Source =
'csctfDigis'
133 if 'CSCTF1' in subsys:
134 if 'CSC' not in subsys:
135 process.simCsctfTrackDigis.SectorReceiverInput = cms.untracked.InputTag(
'cscTriggerPrimitiveDigis',
'MPCSORTED' )
136 if 'DT' not in subsys:
137 process.simCsctfTrackDigis.DTproducer =
'dtTriggerPrimitiveDigis'
139 if 'CSCTF2' in subsys
and 'CSCTF1' not in subsys:
140 process.simCsctfDigis.CSCTrackProducer =
'csctfDigis'
142 if 'RPCTF' in subsys:
143 process.simRpcTriggerDigis.label =
'muonRPCDigis'
146 if 'DTTF' not in subsys:
147 process.simGmtDigis.DTCandidates = cms.InputTag(
'dttfDigis',
'DT' )
148 if 'CSCTF2' not in subsys:
149 process.simGmtDigis.CSCCandidates = cms.InputTag(
'csctfDigis',
'CSC' )
150 if 'RPCTF' not in subsys:
151 process.simGmtDigis.RPCbCandidates = cms.InputTag(
'rpcTriggerDigis',
'RPCb' )
152 process.simGmtDigis.RPCfCandidates = cms.InputTag(
'rpcTriggerDigis',
'RPCf' )
154 if 'S1CALOL2' in subsys:
155 if 'RCT' not in subsys:
156 process.simRctUpgradeFormatDigis.regionTag = cms.InputTag(
"caloStage1Digis")
157 process.simRctUpgradeFormatDigis.emTag = cms.InputTag(
"caloStage1Digis")
159 if 'CALOL1' in subsys:
160 if 'ECAL' not in subsys:
161 process.ecalToken = cms.InputTag(
"ecalDigis:EcalTriggerPrimitiveDigis")
162 if 'HCAL' not in subsys:
163 process.hcalToken = cms.InputTag(
"hcalDigis")
165 if 'CALOL2' in subsys:
166 if 'CALOL1' not in subsys:
167 process.simCaloStage2Digis.towerToken = cms.InputTag(
"caloStage2Digis",
"CaloTower")
172 if not eras.stage2L1Trigger.isChosen():
177 if 'RCT' not in subsys:
178 SimL1Emulator_object.remove(simRctDigis)
179 if 'GCT' not in subsys:
180 SimL1Emulator_object.remove(simGctDigis)
181 if 'CSC' not in subsys:
182 SimL1Emulator_object.remove(simCscTriggerPrimitiveDigis)
183 if 'DT' not in subsys:
184 SimL1Emulator_object.remove(simDtTriggerPrimitiveDigis)
185 if 'CSCTF1' not in subsys:
186 SimL1Emulator_object.remove(simCsctfTrackDigis)
187 if 'CSCTF2' not in subsys:
188 SimL1Emulator_object.remove(simCsctfDigis)
189 if 'DTTF' not in subsys:
190 SimL1Emulator_object.remove(simDttfDigis)
191 if 'RPCTF' not in subsys:
192 SimL1Emulator_object.remove(simRpcTriggerDigis)
193 if 'GMT' not in subsys:
194 SimL1Emulator_object.remove(simGmtDigis)
195 if 'GT' not in subsys:
196 SimL1Emulator_object.remove(simGtDigis)
198 if eras.stage1L1Trigger.isChosen():
199 if 'S1CALOL2' not in subsys:
200 SimL1Emulator_object.remove(simRctUpgradeFormatDigis)
201 SimL1Emulator_object.remove(simCaloStage1Digis)
202 SimL1Emulator_object.remove(simCaloStage1FinalDigis)
203 SimL1Emulator_object.remove(simCaloStage1LegacyFormatDigis)
205 if eras.stage1L1Trigger.isChosen():
206 if 'CALOL1' not in subsys:
207 SimL1Emulator_object.remove(simCaloStage2Layer1Digis)
208 if 'CALOL2' not in subsys:
209 SimL1Emulator_object.remove(simCaloStage2Digis)
222 test = [
'ECAL',
'DTTF']
223 print "Subsys in : ", test
225 test = [
'ECAL',
'BMTF']
226 print "Subsys in : ", test
def modifySimL1EmulatorForReEmulation
def getSubsystemsToEmulate
def customise_ReEmulateL1