11 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtPrescaleFactorsAlgoTrigConfig_cff")
12 process.es_prefer_l1GtPrescaleFactorsAlgoTrig = cms.ESPrefer(
13 "L1GtPrescaleFactorsAlgoTrigTrivialProducer",
"l1GtPrescaleFactorsAlgoTrig")
24 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtPrescaleFactorsTechTrigConfig_cff")
25 process.es_prefer_l1GtPrescaleFactorsTechTrig = cms.ESPrefer(
26 "L1GtPrescaleFactorsTechTrigTrivialProducer",
"l1GtPrescaleFactorsTechTrig")
34 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff")
35 process.es_prefer_l1GtTriggerMaskAlgoTrig = cms.ESPrefer(
36 "L1GtTriggerMaskAlgoTrigTrivialProducer",
"l1GtTriggerMaskAlgoTrig")
44 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff")
45 process.es_prefer_l1GtTriggerMaskTechTrig = cms.ESPrefer(
46 "L1GtTriggerMaskTechTrigTrivialProducer",
"l1GtTriggerMaskTechTrig")
54 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskVetoAlgoTrigConfig_cff")
55 process.es_prefer_l1GtTriggerMaskVetoAlgoTrig = cms.ESPrefer(
56 "L1GtTriggerMaskVetoAlgoTrigTrivialProducer",
"l1GtTriggerMaskVetoAlgoTrig")
64 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskVetoTechTrigConfig_cff")
65 process.es_prefer_l1GtTriggerMaskVetoTechTrig = cms.ESPrefer(
66 "L1GtTriggerMaskVetoTechTrigTrivialProducer",
"l1GtTriggerMaskVetoTechTrig")
92 l1MenuSource=
'xmlFile'
95 if l1MenuSource ==
'sqlFile' :
97 useSqlFile =
'/afs/cern.ch/user/g/ghete/public/L1Menu/L1Menu_Collisions2015_25ns_v1/sqlFile/L1Menu_Collisions2015_25ns_v1_mc.db'
98 menuDbTag =
'L1GtTriggerMenu_L1Menu_Collisions2015_25ns_v1_mc'
99 elif l1MenuSource ==
'xmlFile' :
101 luminosityDirectory =
"startup"
102 useXmlFile =
'L1Menu_Collisions2015_25ns_v1_L1T_Scales_20101224_Imp0_0x102f.xml'
109 if l1MenuSource ==
'xmlFile' :
110 process.load(
'L1TriggerConfig.L1GtConfigProducers.l1GtTriggerMenuXml_cfi')
111 process.l1GtTriggerMenuXml.TriggerMenuLuminosity = luminosityDirectory
112 process.l1GtTriggerMenuXml.DefXmlFile = useXmlFile
114 process.load(
'L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMenuConfig_cff')
115 process.es_prefer_l1GtParameters = cms.ESPrefer(
'L1GtTriggerMenuXmlProducer',
'l1GtTriggerMenuXml')
117 elif l1MenuSource ==
'sqlFile' :
118 if useSqlFile !=
'' :
120 process.l1conddb = cms.ESSource(
"PoolDBESSource",
122 connect = cms.string(
'sqlite_file:' + useSqlFile),
123 toGet = cms.VPSet(cms.PSet(
124 record = cms.string(
'L1GtTriggerMenuRcd'),
125 tag = cms.string(menuDbTag))),
126 BlobStreamerName = cms.untracked.string(
'TBufferBlobStreamingService')
128 process.es_prefer_l1conddb = cms.ESPrefer(
"PoolDBESSource",
"l1conddb")
131 print ' Error: no SQL file is given; please provide a valid SQL file for option sqlFile'
141 luminosityDirectory =
"startup"
142 useXmlFile =
'L1Menu_CollisionsHeavyIons2011_v0_nobsc_notau_centrality_q2_singletrack.v1.xml'
144 print ' Retrieve L1 trigger menu only from XML file '
145 print ' ', useXmlFile
148 process.load(
'L1TriggerConfig.L1GtConfigProducers.l1GtTriggerMenuXml_cfi')
149 process.l1GtTriggerMenuXml.TriggerMenuLuminosity = luminosityDirectory
150 process.l1GtTriggerMenuXml.DefXmlFile = useXmlFile
152 process.load(
'L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMenuConfig_cff')
153 process.es_prefer_l1GtParameters = cms.ESPrefer(
'L1GtTriggerMenuXmlProducer',
'l1GtTriggerMenuXml')
181 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
183 process.CaloTPG_SimL1Emulator = cms.Sequence(
184 process.CaloTriggerPrimitives +
185 process.SimL1Emulator )
187 for path
in process._Process__paths.itervalues():
188 path.replace(process.SimL1Emulator, process.CaloTPG_SimL1Emulator)
191 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis'
192 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
193 cms.InputTag(
'hcalDigis'),
194 cms.InputTag(
'hcalDigis')
197 process.simDtTriggerPrimitiveDigis.digiTag =
'muonDTDigis'
198 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi' )
199 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
200 process.simRpcTriggerDigis.label =
'muonRPCDigis'
201 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis'
217 import L1TriggerOffline.L1Analyzer.bscTrigger_cfi
218 process.simBscDigis = L1TriggerOffline.L1Analyzer.bscTrigger_cfi.bscTrigger.clone()
221 import L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi
222 process.simRpcTechTrigDigis = L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi.rpcTechnicalTrigger.clone()
224 process.simRpcTriggerDigis.label =
'muonRPCDigis'
225 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis'
229 process.simHcalTechTrigDigis = SimCalorimetry.HcalTrigPrimProducers.hcalTTPRecord_cfi.simHcalTTPRecord.clone()
235 process.simGtDigis.GctInputTag =
'gctDigis'
239 process.simGtDigis.GmtInputTag =
'gtDigis'
242 process.simGtDigis.TechnicalTriggersInputTags = cms.VInputTag(
243 cms.InputTag(
'simBscDigis' ),
244 cms.InputTag(
'simRpcTechTrigDigis' ),
245 cms.InputTag(
'simHcalTechTrigDigis' )
248 process.SimL1TechnicalTriggers = cms.Sequence(
249 process.simBscDigis +
250 process.simRpcTechTrigDigis +
251 process.simHcalTechTrigDigis
255 SimL1Emulator = cms.Sequence(
256 process.SimL1TechnicalTriggers +
260 for iterable
in process.sequences.itervalues():
261 iterable.replace( process.SimL1Emulator, SimL1Emulator)
262 for iterable
in process.paths.itervalues():
263 iterable.replace( process.SimL1Emulator, SimL1Emulator)
264 for iterable
in process.endpaths.itervalues():
265 iterable.replace( process.SimL1Emulator, SimL1Emulator)
266 process.SimL1Emulator = SimL1Emulator
278 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
279 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis'
280 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
281 cms.InputTag(
'hcalDigis'),
282 cms.InputTag(
'hcalDigis')
287 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis'
288 process.simGtDigis.GmtInputTag =
'gtDigis'
291 SimL1Emulator = cms.Sequence(
292 process.CaloTriggerPrimitives +
293 process.simRctDigis +
294 process.simGctDigis +
295 process.SimL1TechnicalTriggers +
299 for iterable
in process.sequences.itervalues():
300 iterable.replace( process.SimL1Emulator, SimL1Emulator)
301 for iterable
in process.paths.itervalues():
302 iterable.replace( process.SimL1Emulator, SimL1Emulator)
303 for iterable
in process.endpaths.itervalues():
304 iterable.replace( process.SimL1Emulator, SimL1Emulator)
305 process.SimL1Emulator = SimL1Emulator
313 process.load(
"L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi")
323 process.l1GtTrigReport.L1GtRecordInputTag =
"gtDigis"
325 process.l1GtTrigReport.PrintVerbosity = 10
326 process.l1GtTrigReport.PrintOutput = 0
def customiseResetPrescalesAndMasks
def customiseResetMasksAlgoTriggers
def customiseL1EmulatorFromRaw
def customiseUnprescaleTechTriggers
def customiseUnprescaleAlgoTriggers
def customiseResetVetoMasksAlgoTriggers
def customiseOutputCommands
def customiseL1CaloAndGtEmulatorsFromRaw
def customiseL1GtEmulatorFromRaw
def customiseResetMasksTechTriggers
def customiseL1TriggerReport
def customiseResetVetoMasksTechTriggers