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")
90 l1MenuSource=
'globalTag'
95 if l1MenuSource ==
'sqlFile' :
97 useSqlFile =
'/afs/cern.ch/user/g/ghete/public/L1Menu/sqlFile/L1Menu_CollisionsHeavyIons2010_v0_mc.db'
98 menuDbTag =
'L1GtTriggerMenu_L1Menu_CollisionsHeavyIons2010_v0_mc'
99 elif l1MenuSource ==
'xmlFile' :
101 luminosityDirectory =
"startup"
102 useXmlFile =
'L1Menu_CollisionsHeavyIons2010_v0_L1T_Scales_20080926_startup_Imp0_0x101b.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'
208 import L1TriggerOffline.L1Analyzer.bscTrigger_cfi
209 process.simBscDigis = L1TriggerOffline.L1Analyzer.bscTrigger_cfi.bscTrigger.clone()
212 import L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi
213 process.simRpcTechTrigDigis = L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi.rpcTechnicalTrigger.clone()
215 process.simRpcTriggerDigis.label =
'muonRPCDigis'
216 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis'
220 process.simHcalTechTrigDigis = SimCalorimetry.HcalTrigPrimProducers.hcalTTPRecord_cfi.simHcalTTPRecord.clone()
224 simGtDigis.TechnicalTriggersInputTags = cms.VInputTag(
225 cms.InputTag(
'simBscDigis' ),
226 cms.InputTag(
'simRpcTechTrigDigis' ),
227 cms.InputTag(
'simHcalTechTrigDigis' )
230 process.SimL1TechnicalTriggers = cms.Sequence(
231 process.simBscDigis +
232 process.simRpcTechTrigDigis +
233 process.simHcalTechTrigDigis
236 process.L1GtEmulator = cms.Sequence(
237 process.SimL1TechnicalTriggers +
240 for path
in process._Process__paths.itervalues():
241 path.replace(process.SimL1Emulator, process.L1GtEmulator)
253 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
254 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis'
255 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
256 cms.InputTag(
'hcalDigis'),
257 cms.InputTag(
'hcalDigis')
262 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis'
263 process.simGtDigis.GmtInputTag =
'gtDigis'
266 SimL1Emulator = cms.Sequence(
267 process.CaloTriggerPrimitives +
268 process.simRctDigis +
269 process.simGctDigis +
270 process.SimL1TechnicalTriggers +
274 for iterable
in process.sequences.itervalues():
275 iterable.replace( process.SimL1Emulator, SimL1Emulator)
276 for iterable
in process.paths.itervalues():
277 iterable.replace( process.SimL1Emulator, SimL1Emulator)
278 for iterable
in process.endpaths.itervalues():
279 iterable.replace( process.SimL1Emulator, SimL1Emulator)
280 process.SimL1Emulator = SimL1Emulator
288 process.load(
"L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi")
298 process.l1GtTrigReport.L1GtRecordInputTag =
"gtDigis"
300 process.l1GtTrigReport.PrintVerbosity = 2
301 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