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_CollisionsHeavyIons2013_v0/sqlFile/L1Menu_CollisionsHeavyIons2013_v0_mc.db'
98 menuDbTag =
'L1GtTriggerMenu_L1Menu_CollisionsHeavyIons2013_v0_mc'
99 elif l1MenuSource ==
'xmlFile' :
101 luminosityDirectory =
"startup"
102 useXmlFile =
'L1Menu_CollisionsHeavyIons2013_v0_L1T_Scales_20101224_Imp0_0x102c.xml'
105 print ' Using default L1 trigger menu from Global Tag '
109 if l1MenuSource ==
'xmlFile' :
110 print ' Retrieve L1 trigger menu only from XML file '
111 print ' ', useXmlFile
114 process.load(
'L1TriggerConfig.L1GtConfigProducers.l1GtTriggerMenuXml_cfi')
115 process.l1GtTriggerMenuXml.TriggerMenuLuminosity = luminosityDirectory
116 process.l1GtTriggerMenuXml.DefXmlFile = useXmlFile
118 process.load(
'L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMenuConfig_cff')
119 process.es_prefer_l1GtParameters = cms.ESPrefer(
'L1GtTriggerMenuXmlProducer',
'l1GtTriggerMenuXml')
123 elif l1MenuSource ==
'sqlFile' :
124 if useSqlFile !=
'' :
125 print ' Retrieve L1 trigger menu only from SQLlite file '
126 print ' ', useSqlFile
130 process.l1conddb = cms.ESSource(
"PoolDBESSource",
132 connect = cms.string(
'sqlite_file:' + useSqlFile),
133 toGet = cms.VPSet(cms.PSet(
134 record = cms.string(
'L1GtTriggerMenuRcd'),
135 tag = cms.string(menuDbTag))),
136 BlobStreamerName = cms.untracked.string(
'TBufferBlobStreamingService')
138 process.es_prefer_l1conddb = cms.ESPrefer(
"PoolDBESSource",
"l1conddb")
141 print ' Error: no SQL file is given; please provide a valid SQL file for option sqlFile'
173 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
175 process.CaloTPG_SimL1Emulator = cms.Sequence(
176 process.CaloTriggerPrimitives +
177 process.SimL1Emulator )
179 for path
in process._Process__paths.itervalues():
180 path.replace(process.SimL1Emulator, process.CaloTPG_SimL1Emulator)
183 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis'
184 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
185 cms.InputTag(
'hcalDigis'),
186 cms.InputTag(
'hcalDigis')
189 process.simDtTriggerPrimitiveDigis.digiTag =
'muonDTDigis'
190 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi' )
191 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
192 process.simRpcTriggerDigis.label =
'muonRPCDigis'
193 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis'
209 import L1TriggerOffline.L1Analyzer.bscTrigger_cfi
210 process.simBscDigis = L1TriggerOffline.L1Analyzer.bscTrigger_cfi.bscTrigger.clone()
213 import L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi
214 process.simRpcTechTrigDigis = L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi.rpcTechnicalTrigger.clone()
216 process.simRpcTriggerDigis.label =
'muonRPCDigis'
217 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis'
221 process.simHcalTechTrigDigis = SimCalorimetry.HcalTrigPrimProducers.hcalTTPRecord_cfi.simHcalTTPRecord.clone()
227 process.simGtDigis.GctInputTag =
'gctDigis'
231 process.simGtDigis.GmtInputTag =
'gtDigis'
234 process.simGtDigis.TechnicalTriggersInputTags = cms.VInputTag(
235 cms.InputTag(
'simBscDigis' ),
236 cms.InputTag(
'simRpcTechTrigDigis' ),
237 cms.InputTag(
'simHcalTechTrigDigis' )
240 process.SimL1TechnicalTriggers = cms.Sequence(
241 process.simBscDigis +
242 process.simRpcTechTrigDigis +
243 process.simHcalTechTrigDigis
247 SimL1Emulator = cms.Sequence(
248 process.SimL1TechnicalTriggers +
252 for iterable
in process.sequences.itervalues():
253 iterable.replace( process.SimL1Emulator, SimL1Emulator)
254 for iterable
in process.paths.itervalues():
255 iterable.replace( process.SimL1Emulator, SimL1Emulator)
256 for iterable
in process.endpaths.itervalues():
257 iterable.replace( process.SimL1Emulator, SimL1Emulator)
258 process.SimL1Emulator = SimL1Emulator
270 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
271 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis'
272 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
273 cms.InputTag(
'hcalDigis'),
274 cms.InputTag(
'hcalDigis')
279 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis'
280 process.simGtDigis.GmtInputTag =
'gtDigis'
283 SimL1Emulator = cms.Sequence(
284 process.CaloTriggerPrimitives +
285 process.simRctDigis +
286 process.simGctDigis +
287 process.SimL1TechnicalTriggers +
291 for iterable
in process.sequences.itervalues():
292 iterable.replace( process.SimL1Emulator, SimL1Emulator)
293 for iterable
in process.paths.itervalues():
294 iterable.replace( process.SimL1Emulator, SimL1Emulator)
295 for iterable
in process.endpaths.itervalues():
296 iterable.replace( process.SimL1Emulator, SimL1Emulator)
297 process.SimL1Emulator = SimL1Emulator
305 process.load(
"L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi")
315 process.l1GtTrigReport.L1GtRecordInputTag =
"gtDigis"
317 process.l1GtTrigReport.PrintVerbosity = 10
318 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