5 import FWCore.ParameterSet.Config
as cms
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_v2/sqlFile/L1Menu_Collisions2015_25ns_v2_mc.db' 98 menuDbTag =
'L1GtTriggerMenu_L1Menu_Collisions2015_25ns_v2_mc' 99 elif l1MenuSource ==
'xmlFile' :
101 luminosityDirectory =
"startup" 102 useXmlFile =
'L1Menu_Collisions2015_25ns_v2_L1T_Scales_20141121_Imp0_0x1030.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' 159 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
161 process.CaloTPG_SimL1Emulator = cms.Sequence(
162 process.CaloTriggerPrimitives +
163 process.SimL1Emulator )
165 for path
in process._Process__paths.itervalues():
166 path.replace(process.SimL1Emulator, process.CaloTPG_SimL1Emulator)
169 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis' 170 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
171 cms.InputTag(
'hcalDigis'),
172 cms.InputTag(
'hcalDigis')
175 process.simDtTriggerPrimitiveDigis.digiTag =
'muonDTDigis' 176 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi' )
177 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
178 process.simRpcTriggerDigis.label =
'muonRPCDigis' 179 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis' 195 import L1TriggerOffline.L1Analyzer.bscTrigger_cfi
196 process.simBscDigis = L1TriggerOffline.L1Analyzer.bscTrigger_cfi.bscTrigger.clone()
199 import L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi
200 process.simRpcTechTrigDigis = L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi.rpcTechnicalTrigger.clone()
202 process.simRpcTriggerDigis.label =
'muonRPCDigis' 203 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis' 207 process.simHcalTechTrigDigis = SimCalorimetry.HcalTrigPrimProducers.hcalTTPRecord_cfi.simHcalTTPRecord.clone()
213 process.simGtDigis.GctInputTag =
'gctDigis' 217 process.simGtDigis.GmtInputTag =
'gtDigis' 220 process.simGtDigis.TechnicalTriggersInputTags = cms.VInputTag(
221 cms.InputTag(
'simBscDigis' ),
222 cms.InputTag(
'simRpcTechTrigDigis' ),
223 cms.InputTag(
'simHcalTechTrigDigis' )
226 process.SimL1TechnicalTriggers = cms.Sequence(
227 process.simBscDigis +
228 process.simRpcTechTrigDigis +
229 process.simHcalTechTrigDigis
233 SimL1Emulator = cms.Sequence(
234 process.SimL1TechnicalTriggers +
238 for iterable
in process.sequences.itervalues():
239 iterable.replace( process.SimL1Emulator, SimL1Emulator)
240 for iterable
in process.paths.itervalues():
241 iterable.replace( process.SimL1Emulator, SimL1Emulator)
242 for iterable
in process.endpaths.itervalues():
243 iterable.replace( process.SimL1Emulator, SimL1Emulator)
244 process.SimL1Emulator = SimL1Emulator
256 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
257 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis' 258 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
259 cms.InputTag(
'hcalDigis'),
260 cms.InputTag(
'hcalDigis')
265 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis' 266 process.simGtDigis.GmtInputTag =
'gtDigis' 269 SimL1Emulator = cms.Sequence(
270 process.CaloTriggerPrimitives +
271 process.simRctDigis +
272 process.simGctDigis +
273 process.SimL1TechnicalTriggers +
277 for iterable
in process.sequences.itervalues():
278 iterable.replace( process.SimL1Emulator, SimL1Emulator)
279 for iterable
in process.paths.itervalues():
280 iterable.replace( process.SimL1Emulator, SimL1Emulator)
281 for iterable
in process.endpaths.itervalues():
282 iterable.replace( process.SimL1Emulator, SimL1Emulator)
283 process.SimL1Emulator = SimL1Emulator
291 process.load(
"L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi")
301 process.l1GtTrigReport.L1GtRecordInputTag =
"gtDigis" 303 process.l1GtTrigReport.PrintVerbosity = 10
304 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)