CMS 3D CMS Logo

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

Functions

def customiseFor7794
 
def customiseFor7966
 
def customiseFor8356
 
def customiseFor8679
 
def customiseHLTforCMSSW
 

Function Documentation

def customizeHLTforCMSSW.customiseFor7794 (   process)

Definition at line 78 of file customizeHLTforCMSSW.py.

Referenced by customiseHLTforCMSSW().

78 
79 def customiseFor7794(process):
80  if hasattr(process, 'TrackerDigiGeometryESModule'):
81  if hasattr(process.TrackerDigiGeometryESModule, 'trackerGeometryConstants'):
82  if hasattr(process.TrackerDigiGeometryESModule.trackerGeometryConstants, 'upgradeGeometry'):
83  delattr(process.TrackerDigiGeometryESModule.trackerGeometryConstants, 'upgradeGeometry')
84  return process
85 
86 
# CMSSW version specific customizations
def customizeHLTforCMSSW.customiseFor7966 (   process)

Definition at line 66 of file customizeHLTforCMSSW.py.

Referenced by customiseHLTforCMSSW().

66 
67 def customiseFor7966(process):
68  if hasattr(process, 'trackerTopology'):
69  params = process.trackerTopology.parameterNames_()
70  for param in params:
71  delattr(process.trackerTopology, param)
72  setattr(process.trackerTopology, 'appendToDataLabel', cms.string(""))
73  if hasattr(process,'TrackerDigiGeometryESModule'):
74  if hasattr(process.TrackerDigiGeometryESModule,'trackerGeometryConstants'):
75  delattr(process.TrackerDigiGeometryESModule,'trackerGeometryConstants')
76  return process
77 
# Removal of 'upgradeGeometry' from TrackerDigiGeometryESModule (PR #7794)
def customizeHLTforCMSSW.customiseFor8356 (   process)

Definition at line 16 of file customizeHLTforCMSSW.py.

Referenced by customiseHLTforCMSSW().

16 
17 def customiseFor8356(process):
18  MTRBPSet = cms.PSet(
19  Rescale_eta = cms.double( 3.0 ),
20  Rescale_phi = cms.double( 3.0 ),
21  Rescale_Dz = cms.double( 3.0 ),
22  EtaR_UpperLimit_Par1 = cms.double( 0.25 ),
23  EtaR_UpperLimit_Par2 = cms.double( 0.15 ),
24  PhiR_UpperLimit_Par1 = cms.double( 0.6 ),
25  PhiR_UpperLimit_Par2 = cms.double( 0.2 ),
26  UseVertex = cms.bool( False ),
27  Pt_fixed = cms.bool( False ),
28  Z_fixed = cms.bool( True ),
29  Phi_fixed = cms.bool( False ),
30  Eta_fixed = cms.bool( False ),
31  Pt_min = cms.double( 1.5 ),
32  Phi_min = cms.double( 0.1 ),
33  Eta_min = cms.double( 0.1 ),
34  DeltaZ = cms.double( 15.9 ),
35  DeltaR = cms.double( 0.2 ),
36  DeltaEta = cms.double( 0.2 ),
37  DeltaPhi = cms.double( 0.2 ),
38  maxRegions = cms.int32( 2 ),
39  precise = cms.bool( True ),
40  OnDemand = cms.int32( -1 ),
41  MeasurementTrackerName = cms.InputTag( "hltESPMeasurementTracker" ),
42  beamSpot = cms.InputTag( "hltOnlineBeamSpot" ),
43  vertexCollection = cms.InputTag( "pixelVertices" ),
44  input = cms.InputTag( 'hltL2Muons','UpdatedAtVtx' )
45  )
46 
47  def producers_by_type(process, type):
48  return (module for module in process._Process__producers.values() if module._TypedParameterizable__type == type)
49 
50  for l3MPModule in producers_by_type(process, 'L3MuonProducer'):
51  if hasattr(l3MPModule, 'GlbRefitterParameters'):
52  l3MPModule.GlbRefitterParameters.RefitFlag = cms.bool(True)
53  if hasattr(l3MPModule, 'L3TrajBuilderParameters'):
54  if hasattr(l3MPModule.L3TrajBuilderParameters, 'MuonTrackingRegionBuilder'):
55  l3MPModule.L3TrajBuilderParameters.MuonTrackingRegionBuilder = MTRBPSet
56 
57  listL3seedingModule = ['hltL3TrajSeedIOHit','hltL3NoFiltersNoVtxTrajSeedIOHit','hltHIL3TrajSeedIOHit']
58  for l3IOTrajModule in listL3seedingModule:
59  if hasattr(process, l3IOTrajModule):
60  if hasattr(getattr(process, l3IOTrajModule), 'MuonTrackingRegionBuilder'):
61  setattr(getattr(process, l3IOTrajModule), 'MuonTrackingRegionBuilder', MTRBPSet)
62 
63  return process
64 
65 
# Simplified TrackerTopologyEP config (PR #7966)
def customizeHLTforCMSSW.customiseFor8679 (   process)

Definition at line 4 of file customizeHLTforCMSSW.py.

Referenced by customiseHLTforCMSSW().

4 
5 def customiseFor8679(process):
6  if hasattr(process,'hltBSoftMuonMu5L3') :
7  delattr(process.hltBSoftMuonMu5L3,'min3DHit')
8  setattr(process.hltBSoftMuonMu5L3,'minLayer', cms.int32(0))
9  setattr(process.hltBSoftMuonMu5L3,'min3DLayer', cms.int32(0))
10  setattr(process.hltBSoftMuonMu5L3,'minPixelHit', cms.int32(0))
11  setattr(process.hltBSoftMuonMu5L3,'usePV', cms.bool(False))
12  setattr(process.hltBSoftMuonMu5L3,'vertexTag', cms.InputTag(''))
13  return process
14 
15 
# Updating the config (PR #8356)
def customizeHLTforCMSSW.customiseHLTforCMSSW (   process,
  menuType = "GRun",
  fastSim = False 
)

Definition at line 87 of file customizeHLTforCMSSW.py.

References customiseFor7794(), customiseFor7966(), customiseFor8356(), and customiseFor8679().

Referenced by customizeHLTforALL.customizeHLTforAll().

87 
88 def customiseHLTforCMSSW(process,menuType="GRun",fastSim=False):
89  import os
90  cmsswVersion = os.environ['CMSSW_VERSION']
91 
92  if cmsswVersion >= "CMSSW_7_5":
93  process = customiseFor8679(process)
94  process = customiseFor8356(process)
95  process = customiseFor7966(process)
96  process = customiseFor7794(process)
97 
98  return process