CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customizeHLTforCMSSW.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # reusable functions
5 def producers_by_type(process, *types):
6  return (module for module in process._Process__producers.values() if module._TypedParameterizable__type in types)
7 
8 def esproducers_by_type(process, *types):
9  return (module for module in process._Process__esproducers.values() if module._TypedParameterizable__type in types)
10 
11 #
12 # one action function per PR - put the PR number into the name of the function
13 
14 # example:
15 # def customiseFor12718(process):
16 # for pset in process._Process__psets.values():
17 # if hasattr(pset,'ComponentType'):
18 # if (pset.ComponentType == 'CkfBaseTrajectoryFilter'):
19 # if not hasattr(pset,'minGoodStripCharge'):
20 # pset.minGoodStripCharge = cms.PSet(refToPSet_ = cms.string('HLTSiStripClusterChargeCutNone'))
21 # return process
22 
23 #
24 # CMSSW version specific customizations
25 def customizeHLTforCMSSW(process, menuType="GRun"):
26  import os
27  cmsswVersion = os.environ['CMSSW_VERSION']
28 
29  if cmsswVersion >= "CMSSW_8_0":
30 # process = customiseFor12718(process)
31  pass
32 
33  return process