5 import FWCore.ParameterSet.Config
as cms
12 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtPrescaleFactorsAlgoTrigConfig_cff")
13 process.es_prefer_l1GtPrescaleFactorsAlgoTrig = cms.ESPrefer(
14 "L1GtPrescaleFactorsAlgoTrigTrivialProducer",
"l1GtPrescaleFactorsAlgoTrig")
25 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtPrescaleFactorsTechTrigConfig_cff")
26 process.es_prefer_l1GtPrescaleFactorsTechTrig = cms.ESPrefer(
27 "L1GtPrescaleFactorsTechTrigTrivialProducer",
"l1GtPrescaleFactorsTechTrig")
35 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff")
36 process.es_prefer_l1GtTriggerMaskAlgoTrig = cms.ESPrefer(
37 "L1GtTriggerMaskAlgoTrigTrivialProducer",
"l1GtTriggerMaskAlgoTrig")
45 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff")
46 process.es_prefer_l1GtTriggerMaskTechTrig = cms.ESPrefer(
47 "L1GtTriggerMaskTechTrigTrivialProducer",
"l1GtTriggerMaskTechTrig")
55 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskVetoAlgoTrigConfig_cff")
56 process.es_prefer_l1GtTriggerMaskVetoAlgoTrig = cms.ESPrefer(
57 "L1GtTriggerMaskVetoAlgoTrigTrivialProducer",
"l1GtTriggerMaskVetoAlgoTrig")
65 process.load(
"L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskVetoTechTrigConfig_cff")
66 process.es_prefer_l1GtTriggerMaskVetoTechTrig = cms.ESPrefer(
67 "L1GtTriggerMaskVetoTechTrigTrivialProducer",
"l1GtTriggerMaskVetoTechTrig")
93 l1MenuSource=
'xmlFile' 96 if l1MenuSource ==
'sqlFile' :
98 useSqlFile =
'/afs/cern.ch/user/g/ghete/public/L1Menu/L1Menu_Collisions2015_25ns_v2/sqlFile/L1Menu_Collisions2015_25ns_v2_mc.db' 99 menuDbTag =
'L1GtTriggerMenu_L1Menu_Collisions2015_25ns_v2_mc' 100 elif l1MenuSource ==
'xmlFile' :
102 luminosityDirectory =
"startup" 103 useXmlFile =
'L1Menu_Collisions2015_25ns_v2_L1T_Scales_20141121_Imp0_0x1030.xml' 110 if l1MenuSource ==
'xmlFile' :
111 process.load(
'L1TriggerConfig.L1GtConfigProducers.l1GtTriggerMenuXml_cfi')
112 process.l1GtTriggerMenuXml.TriggerMenuLuminosity = luminosityDirectory
113 process.l1GtTriggerMenuXml.DefXmlFile = useXmlFile
115 process.load(
'L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMenuConfig_cff')
116 process.es_prefer_l1GtParameters = cms.ESPrefer(
'L1GtTriggerMenuXmlProducer',
'l1GtTriggerMenuXml')
118 elif l1MenuSource ==
'sqlFile' :
119 if useSqlFile !=
'' :
121 process.l1conddb = cms.ESSource(
"PoolDBESSource",
123 connect = cms.string(
'sqlite_file:' + useSqlFile),
124 toGet = cms.VPSet(cms.PSet(
125 record = cms.string(
'L1GtTriggerMenuRcd'),
126 tag = cms.string(menuDbTag))),
127 BlobStreamerName = cms.untracked.string(
'TBufferBlobStreamingService')
129 process.es_prefer_l1conddb = cms.ESPrefer(
"PoolDBESSource",
"l1conddb")
132 print ' Error: no SQL file is given; please provide a valid SQL file for option sqlFile' 160 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
162 process.CaloTPG_SimL1Emulator = cms.Sequence(
163 process.CaloTriggerPrimitives +
164 process.SimL1Emulator )
166 for path
in six.itervalues(process._Process__paths):
167 path.replace(process.SimL1Emulator, process.CaloTPG_SimL1Emulator)
170 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis' 171 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
172 cms.InputTag(
'hcalDigis'),
173 cms.InputTag(
'hcalDigis')
176 process.simDtTriggerPrimitiveDigis.digiTag =
'muonDTDigis' 177 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi' )
178 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
179 process.simRpcTriggerDigis.label =
'muonRPCDigis' 180 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis' 196 import L1TriggerOffline.L1Analyzer.bscTrigger_cfi
197 process.simBscDigis = L1TriggerOffline.L1Analyzer.bscTrigger_cfi.bscTrigger.clone()
200 import L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi
201 process.simRpcTechTrigDigis = L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi.rpcTechnicalTrigger.clone()
203 process.simRpcTriggerDigis.label =
'muonRPCDigis' 204 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis' 208 process.simHcalTechTrigDigis = SimCalorimetry.HcalTrigPrimProducers.hcalTTPRecord_cfi.simHcalTTPRecord.clone()
214 process.simGtDigis.GctInputTag =
'gctDigis' 218 process.simGtDigis.GmtInputTag =
'gtDigis' 221 process.simGtDigis.TechnicalTriggersInputTags = cms.VInputTag(
222 cms.InputTag(
'simBscDigis' ),
223 cms.InputTag(
'simRpcTechTrigDigis' ),
224 cms.InputTag(
'simHcalTechTrigDigis' )
227 process.SimL1TechnicalTriggers = cms.Sequence(
228 process.simBscDigis +
229 process.simRpcTechTrigDigis +
230 process.simHcalTechTrigDigis
234 SimL1Emulator = cms.Sequence(
235 process.SimL1TechnicalTriggers +
239 for iterable
in six.itervalues(process.sequences):
240 iterable.replace( process.SimL1Emulator, SimL1Emulator)
241 for iterable
in six.itervalues(process.paths):
242 iterable.replace( process.SimL1Emulator, SimL1Emulator)
243 for iterable
in six.itervalues(process.endpaths):
244 iterable.replace( process.SimL1Emulator, SimL1Emulator)
245 process.SimL1Emulator = SimL1Emulator
257 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
258 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis' 259 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
260 cms.InputTag(
'hcalDigis'),
261 cms.InputTag(
'hcalDigis')
266 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis' 267 process.simGtDigis.GmtInputTag =
'gtDigis' 270 SimL1Emulator = cms.Sequence(
271 process.CaloTriggerPrimitives +
272 process.simRctDigis +
273 process.simGctDigis +
274 process.SimL1TechnicalTriggers +
278 for iterable
in six.itervalues(process.sequences):
279 iterable.replace( process.SimL1Emulator, SimL1Emulator)
280 for iterable
in six.itervalues(process.paths):
281 iterable.replace( process.SimL1Emulator, SimL1Emulator)
282 for iterable
in six.itervalues(process.endpaths):
283 iterable.replace( process.SimL1Emulator, SimL1Emulator)
284 process.SimL1Emulator = SimL1Emulator
292 process.load(
"L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi")
302 process.l1GtTrigReport.L1GtRecordInputTag =
"gtDigis" 304 process.l1GtTrigReport.PrintVerbosity = 10
305 process.l1GtTrigReport.PrintOutput = 0
def customiseOutputCommands(process)
def customiseL1TriggerReport(process)
def customiseL1CaloAndGtEmulatorsFromRaw(process)
def customiseResetPrescalesAndMasks(process)
def customiseL1EmulatorFromRaw(process)
def customiseUnprescaleTechTriggers(process)
def customiseL1GtEmulatorFromRaw(process)
def customiseUnprescaleAlgoTriggers(process)
def customiseResetVetoMasksTechTriggers(process)
def customiseResetMasksAlgoTriggers(process)
def customiseL1Menu(process)
def customiseResetMasksTechTriggers(process)
def customiseResetVetoMasksAlgoTriggers(process)