1 from __future__
import print_function
6 import FWCore.ParameterSet.Config
as cms
13 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtPrescaleFactorsAlgoTrigConfig_cff")
14 process.es_prefer_l1GtPrescaleFactorsAlgoTrig = cms.ESPrefer(
15 "L1GtPrescaleFactorsAlgoTrigTrivialProducer",
"l1GtPrescaleFactorsAlgoTrig")
26 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtPrescaleFactorsTechTrigConfig_cff")
27 process.es_prefer_l1GtPrescaleFactorsTechTrig = cms.ESPrefer(
28 "L1GtPrescaleFactorsTechTrigTrivialProducer",
"l1GtPrescaleFactorsTechTrig")
36 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff")
37 process.es_prefer_l1GtTriggerMaskAlgoTrig = cms.ESPrefer(
38 "L1GtTriggerMaskAlgoTrigTrivialProducer",
"l1GtTriggerMaskAlgoTrig")
46 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff")
47 process.es_prefer_l1GtTriggerMaskTechTrig = cms.ESPrefer(
48 "L1GtTriggerMaskTechTrigTrivialProducer",
"l1GtTriggerMaskTechTrig")
56 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskVetoAlgoTrigConfig_cff")
57 process.es_prefer_l1GtTriggerMaskVetoAlgoTrig = cms.ESPrefer(
58 "L1GtTriggerMaskVetoAlgoTrigTrivialProducer",
"l1GtTriggerMaskVetoAlgoTrig")
66 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskVetoTechTrigConfig_cff")
67 process.es_prefer_l1GtTriggerMaskVetoTechTrig = cms.ESPrefer(
68 "L1GtTriggerMaskVetoTechTrigTrivialProducer",
"l1GtTriggerMaskVetoTechTrig")
94 l1MenuSource=
'xmlFile'
97 if l1MenuSource ==
'sqlFile' :
99 useSqlFile =
'/afs/cern.ch/user/g/ghete/public/L1Menu/L1Menu_Collisions2015_25ns_v2/sqlFile/L1Menu_Collisions2015_25ns_v2_mc.db'
100 menuDbTag =
'L1GtTriggerMenu_L1Menu_Collisions2015_25ns_v2_mc'
101 elif l1MenuSource ==
'xmlFile' :
103 luminosityDirectory =
"startup"
104 useXmlFile =
'L1Menu_Collisions2015_25ns_v2_L1T_Scales_20141121_Imp0_0x1030.xml'
111 if l1MenuSource ==
'xmlFile' :
112 process.load(
'L1TriggerConfig.L1GtConfigProducers.l1GtTriggerMenuXml_cfi')
113 process.l1GtTriggerMenuXml.TriggerMenuLuminosity = luminosityDirectory
114 process.l1GtTriggerMenuXml.DefXmlFile = useXmlFile
116 process.load(
'L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMenuConfig_cff')
117 process.es_prefer_l1GtParameters = cms.ESPrefer(
'L1GtTriggerMenuXmlProducer',
'l1GtTriggerMenuXml')
119 elif l1MenuSource ==
'sqlFile' :
120 if useSqlFile !=
'' :
122 process.l1conddb = cms.ESSource(
"PoolDBESSource",
124 connect = cms.string(
'sqlite_file:' + useSqlFile),
125 toGet = cms.VPSet(cms.PSet(
126 record = cms.string(
'L1GtTriggerMenuRcd'),
127 tag = cms.string(menuDbTag))),
128 BlobStreamerName = cms.untracked.string(
'TBufferBlobStreamingService')
130 process.es_prefer_l1conddb = cms.ESPrefer(
"PoolDBESSource",
"l1conddb")
133 print(
' Error: no SQL file is given; please provide a valid SQL file for option sqlFile')
161 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
163 process.CaloTPG_SimL1Emulator = cms.Sequence(
164 process.CaloTriggerPrimitives +
165 process.SimL1Emulator )
167 for path
in six.itervalues(process._Process__paths):
168 path.replace(process.SimL1Emulator, process.CaloTPG_SimL1Emulator)
171 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis'
172 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
173 cms.InputTag(
'hcalDigis'),
174 cms.InputTag(
'hcalDigis')
177 process.simDtTriggerPrimitiveDigis.digiTag =
'muonDTDigis'
178 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi' )
179 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
180 process.simRpcTriggerDigis.label =
'muonRPCDigis'
181 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis'
197 import L1TriggerOffline.L1Analyzer.bscTrigger_cfi
198 process.simBscDigis = L1TriggerOffline.L1Analyzer.bscTrigger_cfi.bscTrigger.clone()
201 import L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi
202 process.simRpcTechTrigDigis = L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi.rpcTechnicalTrigger.clone()
204 process.simRpcTriggerDigis.label =
'muonRPCDigis'
205 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis'
209 process.simHcalTechTrigDigis = SimCalorimetry.HcalTrigPrimProducers.hcalTTPRecord_cfi.simHcalTTPRecord.clone()
215 process.simGtDigis.GctInputTag =
'gctDigis'
219 process.simGtDigis.GmtInputTag =
'gtDigis'
222 process.simGtDigis.TechnicalTriggersInputTags = cms.VInputTag(
223 cms.InputTag(
'simBscDigis' ),
224 cms.InputTag(
'simRpcTechTrigDigis' ),
225 cms.InputTag(
'simHcalTechTrigDigis' )
228 process.SimL1TechnicalTriggers = cms.Sequence(
229 process.simBscDigis +
230 process.simRpcTechTrigDigis +
231 process.simHcalTechTrigDigis
235 SimL1Emulator = cms.Sequence(
236 process.SimL1TechnicalTriggers +
240 for iterable
in six.itervalues(process.sequences):
241 iterable.replace( process.SimL1Emulator, SimL1Emulator)
242 for iterable
in six.itervalues(process.paths):
243 iterable.replace( process.SimL1Emulator, SimL1Emulator)
244 for iterable
in six.itervalues(process.endpaths):
245 iterable.replace( process.SimL1Emulator, SimL1Emulator)
246 process.SimL1Emulator = SimL1Emulator
258 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
259 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis'
260 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
261 cms.InputTag(
'hcalDigis'),
262 cms.InputTag(
'hcalDigis')
267 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis'
268 process.simGtDigis.GmtInputTag =
'gtDigis'
271 SimL1Emulator = cms.Sequence(
272 process.CaloTriggerPrimitives +
273 process.simRctDigis +
274 process.simGctDigis +
275 process.SimL1TechnicalTriggers +
279 for iterable
in six.itervalues(process.sequences):
280 iterable.replace( process.SimL1Emulator, SimL1Emulator)
281 for iterable
in six.itervalues(process.paths):
282 iterable.replace( process.SimL1Emulator, SimL1Emulator)
283 for iterable
in six.itervalues(process.endpaths):
284 iterable.replace( process.SimL1Emulator, SimL1Emulator)
285 process.SimL1Emulator = SimL1Emulator
293 process.load(
"L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi")
303 process.l1GtTrigReport.L1GtRecordInputTag =
"gtDigis"
305 process.l1GtTrigReport.PrintVerbosity = 10
306 process.l1GtTrigReport.PrintOutput = 0