1 from __future__
import print_function
2 import FWCore.ParameterSet.Config
as cms
3 import FWCore.ParameterSet.VarParsing
as VarParsing
16 cutlist=[
'simDtTriggerPrimitiveDigis',
'simCscTriggerPrimitiveDigis',
'simTwinMuxDigis',
'simBmtfDigis',
'simEmtfDigis',
'simOmtfDigis',
'simGmtCaloSumDigis',
'simMuonQualityAdjusterDigis',
'simGmtStage2Digis',
'simGtStage2Digis']
18 process.SimL1Emulator.remove(getattr(process,b))
23 cutlist=[
'gtStage2Digis',
'gmtStage2Digis']
25 process.L1TRawToDigi.remove(getattr(process,b))
30 cutlist=[
'gtStage2Digis',
'gmtStage2Digis',
'caloStage2Digis']
32 process.L1TRawToDigi.remove(getattr(process,b))
36 print(
"L1T INFO: will dump a summary of unpacked Stage1 content to screen.")
37 process.load(
'L1Trigger.L1TCommon.l1tSummaryStage1Digis_cfi')
38 process.l1tstage1summary = cms.Path(process.l1tSummaryStage1Digis)
39 process.schedule.append(process.l1tstage1summary)
43 print(
"L1T INFO: will dump a summary of unpacked Stage2 content to screen.")
44 process.load(
'L1Trigger.L1TCommon.l1tSummaryStage2Digis_cfi')
45 process.l1tstage2summary = cms.Path(process.l1tSummaryStage2Digis)
46 process.schedule.append(process.l1tstage2summary)
50 print(
"L1T INFO: will dump a summary of simulated Stage1 content to screen.")
51 process.load(
'L1Trigger.L1TCommon.l1tSummaryStage1SimDigis_cfi')
52 process.l1tsimstage1summary = cms.Path(process.l1tSummaryStage1SimDigis)
53 process.schedule.append(process.l1tsimstage1summary)
57 print(
"L1T INFO: will dump a summary of simulated Stage2 content to screen.")
58 process.load(
'L1Trigger.L1TCommon.l1tSummaryStage2SimDigis_cfi')
59 process.l1tsimstage2summary = cms.Path(process.l1tSummaryStage2SimDigis)
60 process.schedule.append(process.l1tsimstage2summary)
64 print(
"L1T INFO: will dump a summary of unpacked L1T Global output to screen.")
65 process.l1tGlobalSummary = cms.EDAnalyzer(
67 AlgInputTag = cms.InputTag(
"gtStage2Digis"),
68 ExtInputTag = cms.InputTag(
"gtStage2Digis"),
69 DumpTrigResults = cms.bool(
False),
70 DumpTrigSummary = cms.bool(
True),
72 process.l1tglobalsummary = cms.Path(process.l1tGlobalSummary)
73 process.schedule.append(process.l1tglobalsummary)
77 process.load(
'L1Trigger.L1TGlobal.GlobalParameters_cff')
78 process.load(
'L1Trigger.L1TGlobal.TriggerMenu_cff')
79 process.TriggerMenu.L1TriggerMenuFile = cms.string(
'L1Menu_Collisions2022_v1_2_0.xml')
83 print(
"L1T INFO: will dump a summary of simulated L1T Global output to screen.")
84 process.l1tSimGlobalSummary = cms.EDAnalyzer(
86 AlgInputTag = cms.InputTag(
"simGtStage2Digis"),
87 ExtInputTag = cms.InputTag(
"simGtStage2Digis"),
88 DumpTrigResults = cms.bool(
False),
89 DumpTrigSummary = cms.bool(
True),
91 process.l1tsimglobalsummary = cms.Path(process.l1tSimGlobalSummary)
92 process.schedule.append(process.l1tsimglobalsummary)
96 process.MessageLogger = cms.Service(
98 destinations = cms.untracked.vstring(
'cout',
'cerr'),
99 cout = cms.untracked.PSet(threshold = cms.untracked.string(
'INFO')),
100 cerr = cms.untracked.PSet(threshold = cms.untracked.string(
'WARNING')),
106 print(
"L1T INFO: sending debugging ouput to file l1tdebug.log")
107 print(
"L1T INFO: add <flags CXXFLAGS=\"-g -D=EDM_ML_DEBUG\"/> in BuildFile.xml of any package you want to debug...")
108 process.MessageLogger = cms.Service(
110 destinations = cms.untracked.vstring(
'l1tdebug',
'cerr'),
111 l1tdebug = cms.untracked.PSet(threshold = cms.untracked.string(
'DEBUG')),
113 cerr = cms.untracked.PSet(threshold = cms.untracked.string(
'WARNING')),
114 debugModules = cms.untracked.vstring(
'*'))
118 print(
"L1T INFO: adding EventContentAnalyzer to process schedule")
119 process.dumpED = cms.EDAnalyzer(
"EventContentAnalyzer")
120 process.l1tdumpevent = cms.Path(process.dumpED)
121 process.schedule.append(process.l1tdumpevent)
125 process.dumpES = cms.EDAnalyzer(
"PrintEventSetupContent")
126 process.l1tdumpeventsetup = cms.Path(process.dumpES)
127 process.schedule.append(process.l1tdumpeventsetup)
131 print(
"L1T INFO: will dump a comparison of unpacked vs emulated Stage2 content to screen.")
132 process.load(
'L1Trigger.L1TCommon.l1tComparisonStage2RAWvsEMU_cfi')
133 process.l1tstage2comparison = cms.Path(process.l1tComparisonStage2RAWvsEMU)
134 process.schedule.append(process.l1tstage2comparison)
139 print(
"L1T INFO: will dump a comparison of unpacked vs emulated GT Stage2 content to screen.")
140 process.load(
'L1Trigger.L1TCommon.l1tComparisonGtStage2RAWvsEMU_cfi')
141 process.l1tgtstage2comparison = cms.Path(process.l1tComparisonGtStage2RAWvsEMU)
142 process.schedule.append(process.l1tgtstage2comparison)
146 process.load(
'L1Trigger.L1TGlobal.simGtExtFakeProd_cfi')
147 process.l1tstage2gtext = cms.Path(process.simGtExtUnprefireable)
148 process.schedule.insert(0,process.l1tstage2gtext)
def L1TStage2SimDigisSummary(process)
def L1TStage1DigisSummary(process)
def L1TTurnOffUnpackStage2GtGmtAndCalo(process)
def L1TAddInfoOutput(process)
def L1TStage2SetPrefireVetoBit(process)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
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)