CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Utils.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 """
3 _Utils_
4 
5 Module containing some utility tools
6 
7 """
8 
9 def stepALCAPRODUCER(skims):
10  """
11  _stepALCAPRODUCER_
12 
13  Creates and returns the configuration string for the ALCAPRODUCER step
14  starting from the list of AlcaReco path to be run.
15 
16  """
17 
18  step = ''
19  if len(skims) >0:
20  step = ',ALCAPRODUCER:'
21  for skim in skims:
22  step += (skim+"+")
23  step = step.rstrip('+')
24  return step
25 
26 def addMonitoring(process):
27  """
28  _addMonitoring_
29 
30  Add the monitoring services to the process provided
31  in order to write out performance summaries to the framework job report
32  """
33  import FWCore.ParameterSet.Config as cms
34 
35  process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
36  jobReportOutputOnly = cms.untracked.bool(True)
37  )
38  process.Timing = cms.Service("Timing",
39  summaryOnly = cms.untracked.bool(True)
40  )
41 
42  return process
def stepALCAPRODUCER
Definition: Utils.py:9
def addMonitoring
Definition: Utils.py:26