CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
customiseUtils Namespace Reference

Functions

def L1TAddDebugOutput
 
def L1TDumpEventData
 
def L1TDumpEventSummary
 
def L1TStage1DigisSummary
 
def L1TStage1SimDigisSummary
 
def L1TStage2DigisSummary
 
def L1TStage2SimDigisSummary
 
def L1TTurnOffOutputModule
 
def L1TTurnOffUnpackStage2GtAndGmt
 customisations for L1T utilities More...
 

Function Documentation

def customiseUtils.L1TAddDebugOutput (   process)

Definition at line 61 of file customiseUtils.py.

61 
62 def L1TAddDebugOutput(process):
63  print "L1T INFO: sending debugging ouput to file l1tdebug.log"
64  print "L1T INFO: add <flags CXXFLAGS=\"-g -D=EDM_ML_DEBUG\"/> in BuildFile.xml of any package you want to debug..."
65  process.MessageLogger = cms.Service(
66  "MessageLogger",
67  destinations = cms.untracked.vstring('l1tdebug','cerr'),
68  l1tdebug = cms.untracked.PSet(threshold = cms.untracked.string('DEBUG')),
69  #debugModules = cms.untracked.vstring('caloStage1Digis'))
70  cerr = cms.untracked.PSet(threshold = cms.untracked.string('WARNING')),
71  debugModules = cms.untracked.vstring('*'))
72  return process
def customiseUtils.L1TDumpEventData (   process)

Definition at line 73 of file customiseUtils.py.

73 
74 def L1TDumpEventData(process):
75  print "L1T INFO: adding EventContentAnalyzer to process schedule"
76  process.dumpED = cms.EDAnalyzer("EventContentAnalyzer")
77  process.l1tdumpevent = cms.Path(process.dumpED)
78  process.schedule.append(process.l1tdumpevent)
79  return process
def customiseUtils.L1TDumpEventSummary (   process)

Definition at line 80 of file customiseUtils.py.

80 
81 def L1TDumpEventSummary(process):
82  process.dumpES = cms.EDAnalyzer("PrintEventSetupContent")
83  process.l1tdumpeventsetup = cms.Path(process.dumpES)
84  process.schedule.append(process.l1tdumpeventsetup)
85  return process
86 
87 
88 
89 
def customiseUtils.L1TStage1DigisSummary (   process)

Definition at line 32 of file customiseUtils.py.

32 
33 def L1TStage1DigisSummary(process):
34  print "L1T INFO: will dump a summary of unpacked Stage1 content to screen."
35  process.load('L1Trigger.L1TCommon.l1tSummaryStage1Digis_cfi')
36  process.l1tstage1summary = cms.Path(process.l1tSummaryStage1Digis)
37  process.schedule.append(process.l1tstage1summary)
38  return process
def customiseUtils.L1TStage1SimDigisSummary (   process)

Definition at line 46 of file customiseUtils.py.

46 
47 def L1TStage1SimDigisSummary(process):
48  print "L1T INFO: will dump a summary of simulated Stage1 content to screen."
49  process.load('L1Trigger.L1TCommon.l1tSummaryStage1SimDigis_cfi')
50  process.l1tsimstage1summary = cms.Path(process.l1tSummaryStage1SimDigis)
51  process.schedule.append(process.l1tsimstage1summary)
52  return process
def L1TStage1SimDigisSummary
def customiseUtils.L1TStage2DigisSummary (   process)

Definition at line 39 of file customiseUtils.py.

39 
40 def L1TStage2DigisSummary(process):
41  print "L1T INFO: will dump a summary of unpacked Stage2 content to screen."
42  process.load('L1Trigger.L1TCommon.l1tSummaryStage2Digis_cfi')
43  process.l1tstage2summary = cms.Path(process.l1tSummaryStage2Digis)
44  process.schedule.append(process.l1tstage2summary)
45  return process
def customiseUtils.L1TStage2SimDigisSummary (   process)

Definition at line 53 of file customiseUtils.py.

53 
54 def L1TStage2SimDigisSummary(process):
55  print "L1T INFO: will dump a summary of simulated Stage2 content to screen."
56  process.load('L1Trigger.L1TCommon.l1tSummarySimStage2Digis_cfi')
57  process.l1tsimstage2summary = cms.Path(process.l1tSummarySimStage2Digis)
58  process.schedule.append(process.l1tsimstage2summary)
59  return process
60 
def L1TStage2SimDigisSummary
def customiseUtils.L1TTurnOffOutputModule (   process)

Definition at line 20 of file customiseUtils.py.

20 
21 def L1TTurnOffOutputModule(process):
22  print "L1T INFO: removing output module if found."
23  # print process.schedule
24  cutlist=['RECOSIMoutput_step'] # extend as needed!
25  for b in cutlist:
26  if hasattr(process,b):
27  if process.schedule.count(getattr(process,b)):
28  print "Dropping module ", b
29  process.schedule.remove(getattr(process,b))
30  #print process.schedule
31  return process
def L1TTurnOffOutputModule
def customiseUtils.L1TTurnOffUnpackStage2GtAndGmt (   process)

customisations for L1T utilities

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

Definition at line 14 of file customiseUtils.py.

14 
16  cutlist=['gtStage2Digis','gmtStage2Digis']
17  for b in cutlist:
18  process.L1TRawToDigi.remove(getattr(process,b))
19  return process
def L1TTurnOffUnpackStage2GtAndGmt
customisations for L1T utilities