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.
2 
3 
4 # Simplified TrackerTopologyEP config (PR #7966)
5 def customiseFor7966(process):
6  if hasattr(process, 'trackerTopology'):
7  params = process.trackerTopology.parameterNames_()
8  for param in params:
9  delattr(process.trackerTopology, param)
10  setattr(process.trackerTopology, 'appendToDataLabel', cms.string(""))
11  return process
12 
13 
14 # Removal of 'upgradeGeometry' from TrackerDigiGeometryESModule (PR #7794)
15 def customiseFor7794(process):
16  if hasattr(process, 'TrackerDigiGeometryESModule'):
17  if hasattr(process.TrackerDigiGeometryESModule, 'trackerGeometryConstants'):
18  if hasattr(process.TrackerDigiGeometryESModule.trackerGeometryConstants, 'upgradeGeometry'):
19  delattr(process.TrackerDigiGeometryESModule.trackerGeometryConstants, 'upgradeGeometry')
20  return process
21 
22 
23 # CMSSW version specific customizations
24 def customiseHLTforCMSSW(process,menuType="GRun",fastSim=False):
25  import os
26  cmsswVersion = os.environ['CMSSW_VERSION']
27 
28  if cmsswVersion >= "CMSSW_7_5":
29  process = customiseFor7966(process)
30  process = customiseFor7794(process)
31 
32  return process