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 L1TStage2SimDigisSummary (process)
 
def L1TTurnOffGtAndGmtEmulation (process)
 customisations for L1T utilities More...
 
def L1TTurnOffUnpackStage2GtAndGmt (process)
 
def L1TTurnOffUnpackStage2GtGmtAndCalo (process)
 

Function Documentation

def customiseUtils.L1TAddDebugOutput (   process)

Definition at line 105 of file customiseUtils.py.

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 
def L1TAddDebugOutput(process)
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)
def customiseUtils.L1TDumpEventData (   process)

Definition at line 117 of file customiseUtils.py.

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 
def L1TDumpEventData(process)
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)
def customiseUtils.L1TGlobalDigisSummary (   process)

Definition at line 63 of file customiseUtils.py.

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 
def L1TGlobalDigisSummary(process)
def customiseUtils.L1TGlobalMenuXML (   process)

Definition at line 76 of file customiseUtils.py.

76 def L1TGlobalMenuXML(process):
77  process.load('L1Trigger.L1TGlobal.StableParameters_cff')
78  process.load('L1Trigger.L1TGlobal.TriggerMenu_cff')
79  process.TriggerMenu.L1TriggerMenuFile = cms.string('L1Menu_Collisions2016_v2c.xml')
80  return process
81 
def L1TGlobalMenuXML(process)
def customiseUtils.L1TGlobalSimDigisSummary (   process)

Definition at line 82 of file customiseUtils.py.

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 
def L1TGlobalSimDigisSummary(process)
def customiseUtils.L1TGtStage2ComparisonRAWvsEMU (   process)

Definition at line 138 of file customiseUtils.py.

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 
def L1TGtStage2ComparisonRAWvsEMU(process)
def customiseUtils.L1TStage1DigisSummary (   process)

Definition at line 35 of file customiseUtils.py.

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)
def customiseUtils.L1TStage1SimDigisSummary (   process)

Definition at line 49 of file customiseUtils.py.

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 
def L1TStage1SimDigisSummary(process)
def customiseUtils.L1TStage2ComparisonRAWvsEMU (   process)

Definition at line 130 of file customiseUtils.py.

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 
def L1TStage2ComparisonRAWvsEMU(process)
def customiseUtils.L1TStage2DigisSummary (   process)

Definition at line 42 of file customiseUtils.py.

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 
def L1TStage2DigisSummary(process)
def customiseUtils.L1TStage2SimDigisSummary (   process)

Definition at line 56 of file customiseUtils.py.

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)
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.

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
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)
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)