1 from __future__
import print_function
2 import FWCore.ParameterSet.Config
as cms
3 import FWCore.ParameterSet.VarParsing
as VarParsing
17 cutlist=[
'simDtTriggerPrimitiveDigis',
'simCscTriggerPrimitiveDigis',
'simTwinMuxDigis',
'simBmtfDigis',
'simEmtfDigis',
'simOmtfDigis',
'simGmtCaloSumDigis',
'simMuonQualityAdjusterDigis',
'simGmtStage2Digis',
'simGtStage2Digis']
19 process.SimL1Emulator.remove(getattr(process,b))
24 cutlist=[
'gtStage2Digis',
'gmtStage2Digis']
26 process.L1TRawToDigi.remove(getattr(process,b))
31 cutlist=[
'gtStage2Digis',
'gmtStage2Digis',
'caloStage2Digis']
33 process.L1TRawToDigi.remove(getattr(process,b))
37 print(
"L1T INFO: will dump a summary of unpacked Stage1 content to screen.")
38 process.load(
'L1Trigger.L1TCommon.l1tSummaryStage1Digis_cfi')
39 process.l1tstage1summary = cms.Path(process.l1tSummaryStage1Digis)
40 process.schedule.append(process.l1tstage1summary)
44 print(
"L1T INFO: will dump a summary of unpacked Stage2 content to screen.")
45 process.load(
'L1Trigger.L1TCommon.l1tSummaryStage2Digis_cfi')
46 process.l1tstage2summary = cms.Path(process.l1tSummaryStage2Digis)
47 process.schedule.append(process.l1tstage2summary)
51 print(
"L1T INFO: will dump a summary of simulated Stage1 content to screen.")
52 process.load(
'L1Trigger.L1TCommon.l1tSummaryStage1SimDigis_cfi')
53 process.l1tsimstage1summary = cms.Path(process.l1tSummaryStage1SimDigis)
54 process.schedule.append(process.l1tsimstage1summary)
58 print(
"L1T INFO: will dump a summary of simulated Stage2 content to screen.")
59 process.load(
'L1Trigger.L1TCommon.l1tSummaryStage2SimDigis_cfi')
60 process.l1tsimstage2summary = cms.Path(process.l1tSummaryStage2SimDigis)
61 process.schedule.append(process.l1tsimstage2summary)
65 print(
"L1T INFO: will dump a summary of unpacked L1T Global output to screen.")
66 process.l1tGlobalSummary = cms.EDAnalyzer(
68 AlgInputTag = cms.InputTag(
"gtStage2Digis"),
69 ExtInputTag = cms.InputTag(
"gtStage2Digis"),
70 DumpTrigResults = cms.bool(
False),
71 DumpTrigSummary = cms.bool(
True),
73 process.l1tglobalsummary = cms.Path(process.l1tGlobalSummary)
74 process.schedule.append(process.l1tglobalsummary)
78 process.load(
'L1Trigger.L1TGlobal.GlobalParameters_cff')
79 process.load(
'L1Trigger.L1TGlobal.TriggerMenu_cff')
80 process.TriggerMenu.L1TriggerMenuFile = cms.string(
'L1Menu_Collisions2016_v2c.xml')
84 print(
"L1T INFO: will dump a summary of simulated L1T Global output to screen.")
85 process.l1tSimGlobalSummary = cms.EDAnalyzer(
87 AlgInputTag = cms.InputTag(
"simGtStage2Digis"),
88 ExtInputTag = cms.InputTag(
"simGtStage2Digis"),
89 DumpTrigResults = cms.bool(
False),
90 DumpTrigSummary = cms.bool(
True),
92 process.l1tsimglobalsummary = cms.Path(process.l1tSimGlobalSummary)
93 process.schedule.append(process.l1tsimglobalsummary)
97 process.MessageLogger = cms.Service(
99 destinations = cms.untracked.vstring(
'cout',
'cerr'),
100 cout = cms.untracked.PSet(threshold = cms.untracked.string(
'INFO')),
101 cerr = cms.untracked.PSet(threshold = cms.untracked.string(
'WARNING')),
107 print(
"L1T INFO: sending debugging ouput to file l1tdebug.log")
108 print(
"L1T INFO: add <flags CXXFLAGS=\"-g -D=EDM_ML_DEBUG\"/> in BuildFile.xml of any package you want to debug...")
109 process.MessageLogger = cms.Service(
111 destinations = cms.untracked.vstring(
'l1tdebug',
'cerr'),
112 l1tdebug = cms.untracked.PSet(threshold = cms.untracked.string(
'DEBUG')),
114 cerr = cms.untracked.PSet(threshold = cms.untracked.string(
'WARNING')),
115 debugModules = cms.untracked.vstring(
'*'))
119 print(
"L1T INFO: adding EventContentAnalyzer to process schedule")
120 process.dumpED = cms.EDAnalyzer(
"EventContentAnalyzer")
121 process.l1tdumpevent = cms.Path(process.dumpED)
122 process.schedule.append(process.l1tdumpevent)
126 process.dumpES = cms.EDAnalyzer(
"PrintEventSetupContent")
127 process.l1tdumpeventsetup = cms.Path(process.dumpES)
128 process.schedule.append(process.l1tdumpeventsetup)
132 print(
"L1T INFO: will dump a comparison of unpacked vs emulated Stage2 content to screen.")
133 process.load(
'L1Trigger.L1TCommon.l1tComparisonStage2RAWvsEMU_cfi')
134 process.l1tstage2comparison = cms.Path(process.l1tComparisonStage2RAWvsEMU)
135 process.schedule.append(process.l1tstage2comparison)
140 print(
"L1T INFO: will dump a comparison of unpacked vs emulated GT Stage2 content to screen.")
141 process.load(
'L1Trigger.L1TCommon.l1tComparisonGtStage2RAWvsEMU_cfi')
142 process.l1tgtstage2comparison = cms.Path(process.l1tComparisonGtStage2RAWvsEMU)
143 process.schedule.append(process.l1tgtstage2comparison)
147 process.load(
'L1Trigger.L1TGlobal.simGtExtFakeProd_cfi')
148 process.l1tstage2gtext = cms.Path(process.simGtExtUnprefireable)
149 process.schedule.insert(0,process.l1tstage2gtext)
def L1TStage2SimDigisSummary(process)
S & print(S &os, JobReport::InputFile const &f)
def L1TStage1DigisSummary(process)
def L1TTurnOffUnpackStage2GtGmtAndCalo(process)
def L1TAddInfoOutput(process)
def L1TStage2SetPrefireVetoBit(process)
def L1TGtStage2ComparisonRAWvsEMU(process)
def L1TGlobalSimDigisSummary(process)
def L1TGlobalDigisSummary(process)
def L1TStage2DigisSummary(process)
def L1TStage1SimDigisSummary(process)
def L1TGlobalMenuXML(process)
def L1TDumpEventData(process)
def L1TDumpEventSummary(process)
def L1TStage2ComparisonRAWvsEMU(process)
def L1TTurnOffUnpackStage2GtAndGmt(process)
def L1TTurnOffGtAndGmtEmulation(process)
customisations for L1T utilities
def L1TAddDebugOutput(process)