CMS 3D CMS Logo

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

Functions

def addHarvest
 
def addOutput
 
def addPrint
 
def addService
 
def customise_timer_service
 
def customise_timer_service_multirun
 
def customise_timer_service_print
 
def customise_timer_service_singlejob
 

Function Documentation

def FastTimer.addHarvest (   process)

Definition at line 64 of file FastTimer.py.

Referenced by customise_timer_service_singlejob().

64 
65 def addHarvest(process):
66  # DQMStore service
67  if not hasattr(process,'DQMStore'):
68  process.load('DQMServices.Core.DQMStore_cfi')
69 
70  # FastTimerService client
71  process.load('HLTrigger.Timer.fastTimerServiceClient_cfi')
72  process.fastTimerServiceClient.dqmPath = "HLT/TimerService"
73 
74  # DQM file saver
75  process.load('DQMServices.Components.DQMFileSaver_cfi')
76  process.dqmSaver.workflow = "/HLT/FastTimerService/All"
77 
78  process.DQMFileSaverOutput = cms.EndPath(process.fastTimerServiceClient + process.dqmSaver)
79  process.schedule.append(process.DQMFileSaverOutput)
80 
81  return process
82 
83 # customise functions for cmsDriver
def addHarvest
Definition: FastTimer.py:64
def FastTimer.addOutput (   process)

Definition at line 47 of file FastTimer.py.

Referenced by customise_timer_service(), and customise_timer_service_multirun().

47 
48 def addOutput(process):
49  # save the DQM plots in the DQMIO format
50  process.dqmOutput = cms.OutputModule("DQMRootOutputModule",
51  fileName = cms.untracked.string("DQM.root")
52  )
53  process.FastTimerOutput = cms.EndPath(process.dqmOutput)
54  process.schedule.append(process.FastTimerOutput)
55 
56  return process
def addOutput
Definition: FastTimer.py:47
def FastTimer.addPrint (   process)

Definition at line 57 of file FastTimer.py.

Referenced by customise_timer_service_print().

57 
58 def addPrint(process):
59  # enable text dump
60  if not hasattr(process,'MessageLogger'):
61  process.load('FWCore.MessageService.MessageLogger_cfi')
62  process.MessageLogger.cerr.FastReport = cms.untracked.PSet( limit = cms.untracked.int32( 10000000 ) )
63  return process
def addPrint
Definition: FastTimer.py:57
def FastTimer.addService (   process,
  multirun = False 
)

Definition at line 3 of file FastTimer.py.

Referenced by cond::auth::DecodingKey.addDefaultService(), customise_timer_service(), customise_timer_service_multirun(), customise_timer_service_print(), and customise_timer_service_singlejob().

3 
4 def addService(process, multirun=False):
5  # remove any instance of the FastTimerService
6  if 'FastTimerService' in process.__dict__:
7  del process.FastTimerService
8 
9  # instrument the menu with the FastTimerService
10  process.load("HLTrigger.Timer.FastTimerService_cfi")
11 
12  # print a text summary at the end of the job
13  process.FastTimerService.printEventSummary = False
14  process.FastTimerService.printRunSummary = False
15  process.FastTimerService.printJobSummary = True
16 
17  # enable DQM plots
18  process.FastTimerService.enableDQM = True
19 
20  # enable per-path DQM plots (starting with CMSSW 9.2.3-patch2)
21  process.FastTimerService.enableDQMbyPath = True
22 
23  # enable per-module DQM plots
24  process.FastTimerService.enableDQMbyModule = True
25 
26  # enable DQM plots vs lumisection
27  process.FastTimerService.enableDQMbyLumiSection = True
28  process.FastTimerService.dqmLumiSectionsRange = 2500 # lumisections (23.31 s)
29 
30  # set the time resolution of the DQM plots
31  process.FastTimerService.dqmTimeRange = 1000. # ms
32  process.FastTimerService.dqmTimeResolution = 5. # ms
33  process.FastTimerService.dqmPathTimeRange = 100. # ms
34  process.FastTimerService.dqmPathTimeResolution = 0.5 # ms
35  process.FastTimerService.dqmModuleTimeRange = 40. # ms
36  process.FastTimerService.dqmModuleTimeResolution = 0.2 # ms
37 
38  # set the base DQM folder for the plots
39  process.FastTimerService.dqmPath = "HLT/TimerService"
40  process.FastTimerService.enableDQMbyProcesses = False
41 
42  if multirun:
43  # disable the per-lumisection plots
44  process.FastTimerService.enableDQMbyLumiSection = False
45 
46  return process
def addService
Definition: FastTimer.py:3
def FastTimer.customise_timer_service (   process)

Definition at line 84 of file FastTimer.py.

References addOutput(), and addService().

84 
85 def customise_timer_service(process):
86  process = addService(process)
87  process = addOutput(process)
88  return process
def customise_timer_service
Definition: FastTimer.py:84
def addService
Definition: FastTimer.py:3
def addOutput
Definition: FastTimer.py:47
def FastTimer.customise_timer_service_multirun (   process)

Definition at line 94 of file FastTimer.py.

References addOutput(), and addService().

94 
96  process = addService(process,True)
97  process = addOutput(process)
98  return process
def addService
Definition: FastTimer.py:3
def customise_timer_service_multirun
Definition: FastTimer.py:94
def addOutput
Definition: FastTimer.py:47
def FastTimer.customise_timer_service_print (   process)

Definition at line 99 of file FastTimer.py.

References addPrint(), and addService().

99 
100 def customise_timer_service_print(process):
101  process = addService(process)
102  process = addPrint(process)
103  return process
104 
def addPrint
Definition: FastTimer.py:57
def addService
Definition: FastTimer.py:3
def customise_timer_service_print
Definition: FastTimer.py:99
def FastTimer.customise_timer_service_singlejob (   process)

Definition at line 89 of file FastTimer.py.

References addHarvest(), and addService().

89 
91  process = addService(process)
92  process = addHarvest(process)
93  return process
def addService
Definition: FastTimer.py:3
def customise_timer_service_singlejob
Definition: FastTimer.py:89
def addHarvest
Definition: FastTimer.py:64