CMS 3D CMS Logo

Functions
customiseUtils Namespace Reference

Functions

def L1TAddDebugOutput (process)
 
def L1TAddInfoOutput (process)
 
def L1TDumpEventData (process)
 
def L1TDumpEventSummary (process)
 
def L1TGlobalDigisSummary (process)
 
def L1TGlobalMenuXML (process)
 
def L1TGlobalSimDigisSummary (process)
 
def L1TGtStage2ComparisonRAWvsEMU (process)
 
def L1TStage1DigisSummary (process)
 
def L1TStage1SimDigisSummary (process)
 
def L1TStage2ComparisonRAWvsEMU (process)
 
def L1TStage2DigisSummary (process)
 
def L1TStage2SetPrefireVetoBit (process)
 
def L1TStage2SimDigisSummary (process)
 
def L1TTurnOffGtAndGmtEmulation (process)
 customisations for L1T utilities More...
 
def L1TTurnOffUnpackStage2GtAndGmt (process)
 
def L1TTurnOffUnpackStage2GtGmtAndCalo (process)
 

Function Documentation

◆ L1TAddDebugOutput()

def customiseUtils.L1TAddDebugOutput (   process)

Definition at line 105 of file customiseUtils.py.

References print().

105 def L1TAddDebugOutput(process):
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(
109  "MessageLogger",
110  destinations = cms.untracked.vstring('l1tdebug','cerr'),
111  l1tdebug = cms.untracked.PSet(threshold = cms.untracked.string('DEBUG')),
112  #debugModules = cms.untracked.vstring('caloStage1Digis'))
113  cerr = cms.untracked.PSet(threshold = cms.untracked.string('WARNING')),
114  debugModules = cms.untracked.vstring('*'))
115  return process
116 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def L1TAddDebugOutput(process)

◆ L1TAddInfoOutput()

def customiseUtils.L1TAddInfoOutput (   process)

Definition at line 95 of file customiseUtils.py.

95 def L1TAddInfoOutput(process):
96  process.MessageLogger = cms.Service(
97  "MessageLogger",
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')),
101  )
102  return process
103 
104 
def L1TAddInfoOutput(process)

◆ L1TDumpEventData()

def customiseUtils.L1TDumpEventData (   process)

Definition at line 117 of file customiseUtils.py.

References print().

117 def L1TDumpEventData(process):
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)
122  return process
123 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def L1TDumpEventData(process)

◆ L1TDumpEventSummary()

def customiseUtils.L1TDumpEventSummary (   process)

Definition at line 124 of file customiseUtils.py.

124 def L1TDumpEventSummary(process):
125  process.dumpES = cms.EDAnalyzer("PrintEventSetupContent")
126  process.l1tdumpeventsetup = cms.Path(process.dumpES)
127  process.schedule.append(process.l1tdumpeventsetup)
128  return process
129 
def L1TDumpEventSummary(process)

◆ L1TGlobalDigisSummary()

def customiseUtils.L1TGlobalDigisSummary (   process)

Definition at line 63 of file customiseUtils.py.

References print().

63 def L1TGlobalDigisSummary(process):
64  print("L1T INFO: will dump a summary of unpacked L1T Global output to screen.")
65  process.l1tGlobalSummary = cms.EDAnalyzer(
66  'L1TGlobalSummary',
67  AlgInputTag = cms.InputTag("gtStage2Digis"),
68  ExtInputTag = cms.InputTag("gtStage2Digis"),
69  DumpTrigResults = cms.bool(False), # per event dump of trig results
70  DumpTrigSummary = cms.bool(True), # pre run dump of trig results
71  )
72  process.l1tglobalsummary = cms.Path(process.l1tGlobalSummary)
73  process.schedule.append(process.l1tglobalsummary)
74  return process
75 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def L1TGlobalDigisSummary(process)

◆ L1TGlobalMenuXML()

def customiseUtils.L1TGlobalMenuXML (   process)

Definition at line 76 of file customiseUtils.py.

76 def L1TGlobalMenuXML(process):
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')
80  return process
81 
def L1TGlobalMenuXML(process)

◆ L1TGlobalSimDigisSummary()

def customiseUtils.L1TGlobalSimDigisSummary (   process)

Definition at line 82 of file customiseUtils.py.

References print().

82 def L1TGlobalSimDigisSummary(process):
83  print("L1T INFO: will dump a summary of simulated L1T Global output to screen.")
84  process.l1tSimGlobalSummary = cms.EDAnalyzer(
85  'L1TGlobalSummary',
86  AlgInputTag = cms.InputTag("simGtStage2Digis"),
87  ExtInputTag = cms.InputTag("simGtStage2Digis"),
88  DumpTrigResults = cms.bool(False), # per event dump of trig results
89  DumpTrigSummary = cms.bool(True), # pre run dump of trig results
90  )
91  process.l1tsimglobalsummary = cms.Path(process.l1tSimGlobalSummary)
92  process.schedule.append(process.l1tsimglobalsummary)
93  return process
94 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def L1TGlobalSimDigisSummary(process)

◆ L1TGtStage2ComparisonRAWvsEMU()

def customiseUtils.L1TGtStage2ComparisonRAWvsEMU (   process)

Definition at line 138 of file customiseUtils.py.

References print().

138 def L1TGtStage2ComparisonRAWvsEMU(process):
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)
143  return process
144 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def L1TGtStage2ComparisonRAWvsEMU(process)

◆ L1TStage1DigisSummary()

def customiseUtils.L1TStage1DigisSummary (   process)

Definition at line 35 of file customiseUtils.py.

References print().

35 def L1TStage1DigisSummary(process):
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)
40  return process
41 
def L1TStage1DigisSummary(process)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ L1TStage1SimDigisSummary()

def customiseUtils.L1TStage1SimDigisSummary (   process)

Definition at line 49 of file customiseUtils.py.

References print().

49 def L1TStage1SimDigisSummary(process):
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)
54  return process
55 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def L1TStage1SimDigisSummary(process)

◆ L1TStage2ComparisonRAWvsEMU()

def customiseUtils.L1TStage2ComparisonRAWvsEMU (   process)

Definition at line 130 of file customiseUtils.py.

References print().

130 def L1TStage2ComparisonRAWvsEMU(process):
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)
135  return process
136 
137 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def L1TStage2ComparisonRAWvsEMU(process)

◆ L1TStage2DigisSummary()

def customiseUtils.L1TStage2DigisSummary (   process)

Definition at line 42 of file customiseUtils.py.

References print().

42 def L1TStage2DigisSummary(process):
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)
47  return process
48 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def L1TStage2DigisSummary(process)

◆ L1TStage2SetPrefireVetoBit()

def customiseUtils.L1TStage2SetPrefireVetoBit (   process)

Definition at line 145 of file customiseUtils.py.

145 def L1TStage2SetPrefireVetoBit(process):
146  process.load('L1Trigger.L1TGlobal.simGtExtFakeProd_cfi')
147  process.l1tstage2gtext = cms.Path(process.simGtExtUnprefireable)
148  process.schedule.insert(0,process.l1tstage2gtext)
149  return process
150 
def L1TStage2SetPrefireVetoBit(process)

◆ L1TStage2SimDigisSummary()

def customiseUtils.L1TStage2SimDigisSummary (   process)

Definition at line 56 of file customiseUtils.py.

References print().

56 def L1TStage2SimDigisSummary(process):
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)
61  return process
62 
def L1TStage2SimDigisSummary(process)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ L1TTurnOffGtAndGmtEmulation()

def customiseUtils.L1TTurnOffGtAndGmtEmulation (   process)

customisations for L1T utilities

customisations which add utilities features such as debugging of L1T, summary module, etc.

Definition at line 15 of file customiseUtils.py.

15 def L1TTurnOffGtAndGmtEmulation(process):
16  cutlist=['simDtTriggerPrimitiveDigis','simCscTriggerPrimitiveDigis','simTwinMuxDigis','simBmtfDigis','simEmtfDigis','simOmtfDigis','simGmtCaloSumDigis','simMuonQualityAdjusterDigis','simGmtStage2Digis','simGtStage2Digis']
17  for b in cutlist:
18  process.SimL1Emulator.remove(getattr(process,b))
19  return process
20 
21 # Unpack Stage-2 GT and GMT
def L1TTurnOffGtAndGmtEmulation(process)
customisations for L1T utilities

◆ L1TTurnOffUnpackStage2GtAndGmt()

def customiseUtils.L1TTurnOffUnpackStage2GtAndGmt (   process)

Definition at line 22 of file customiseUtils.py.

23  cutlist=['gtStage2Digis','gmtStage2Digis']
24  for b in cutlist:
25  process.L1TRawToDigi.remove(getattr(process,b))
26  return process
27 
28 # Unpack Stage-2 GT and GMT
def L1TTurnOffUnpackStage2GtAndGmt(process)

◆ L1TTurnOffUnpackStage2GtGmtAndCalo()

def customiseUtils.L1TTurnOffUnpackStage2GtGmtAndCalo (   process)

Definition at line 29 of file customiseUtils.py.

30  cutlist=['gtStage2Digis','gmtStage2Digis','caloStage2Digis']
31  for b in cutlist:
32  process.L1TRawToDigi.remove(getattr(process,b))
33  return process
34 
def L1TTurnOffUnpackStage2GtGmtAndCalo(process)