CMS 3D CMS Logo

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

Functions

def customiseFor10234
 
def customiseFor10927
 
def customiseFor7794
 
def customiseFor7966
 
def customiseFor8356
 
def customiseFor8679
 
def customiseFor9232
 
def customiseHLTforCMSSW
 

Function Documentation

def customizeHLTforCMSSW.customiseFor10234 (   process)

Definition at line 99 of file customizeHLTforCMSSW.py.

Referenced by customiseHLTforCMSSW().

99 
100 def customiseFor10234(process):
101  if hasattr(process, 'hltCaloStage1Digis'):
102  if hasattr(process.hltCaloStage1Digis, 'FWId'):
103  delattr(process.hltCaloStage1Digis, 'FWId')
104  if hasattr(process.hltCaloStage1Digis, 'FedId'):
105  delattr(process.hltCaloStage1Digis, 'FedId')
106  return process
107 
108 
# migrate RPCPointProducer to a global::EDProducer (PR #10927)
def customizeHLTforCMSSW.customiseFor10927 (   process)

Definition at line 109 of file customizeHLTforCMSSW.py.

References any().

Referenced by customiseHLTforCMSSW().

110 def customiseFor10927(process):
111  if any(module.type_() is 'RPCPointProducer' for module in process.producers.itervalues()):
112  if not hasattr(process, 'CSCObjectMapESProducer'):
113  process.CSCObjectMapESProducer = cms.ESProducer( 'CSCObjectMapESProducer' )
114  if not hasattr(process, 'DTObjectMapESProducer'):
115  process.DTObjectMapESProducer = cms.ESProducer( 'DTObjectMapESProducer' )
116  return process
117 
118 
# CMSSW version specific customizations
bool any(const std::vector< T > &v, const T &what)
Definition: ECalSD.cc:34
def customizeHLTforCMSSW.customiseFor7794 (   process)

Definition at line 90 of file customizeHLTforCMSSW.py.

Referenced by customiseHLTforCMSSW().

90 
91 def customiseFor7794(process):
92  if hasattr(process, 'TrackerDigiGeometryESModule'):
93  if hasattr(process.TrackerDigiGeometryESModule, 'trackerGeometryConstants'):
94  if hasattr(process.TrackerDigiGeometryESModule.trackerGeometryConstants, 'upgradeGeometry'):
95  delattr(process.TrackerDigiGeometryESModule.trackerGeometryConstants, 'upgradeGeometry')
96  return process
97 
98 
# Removal of L1 Stage 1 unpacker configuration from config (PR #10XXX)
def customizeHLTforCMSSW.customiseFor7966 (   process)

Definition at line 78 of file customizeHLTforCMSSW.py.

Referenced by customiseHLTforCMSSW().

78 
79 def customiseFor7966(process):
80  if hasattr(process, 'trackerTopology'):
81  params = process.trackerTopology.parameterNames_()
82  for param in params:
83  delattr(process.trackerTopology, param)
84  setattr(process.trackerTopology, 'appendToDataLabel', cms.string(""))
85  if hasattr(process,'TrackerDigiGeometryESModule'):
86  if hasattr(process.TrackerDigiGeometryESModule,'trackerGeometryConstants'):
87  delattr(process.TrackerDigiGeometryESModule,'trackerGeometryConstants')
88  return process
89 
# Removal of 'upgradeGeometry' from TrackerDigiGeometryESModule (PR #7794)
def customizeHLTforCMSSW.customiseFor8356 (   process)

Definition at line 28 of file customizeHLTforCMSSW.py.

Referenced by customiseHLTforCMSSW().

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

Definition at line 16 of file customizeHLTforCMSSW.py.

Referenced by customiseHLTforCMSSW().

16 
17 def customiseFor8679(process):
18  if hasattr(process,'hltBSoftMuonMu5L3') :
19  delattr(process.hltBSoftMuonMu5L3,'min3DHit')
20  setattr(process.hltBSoftMuonMu5L3,'minLayer', cms.int32(0))
21  setattr(process.hltBSoftMuonMu5L3,'min3DLayer', cms.int32(0))
22  setattr(process.hltBSoftMuonMu5L3,'minPixelHit', cms.int32(0))
23  setattr(process.hltBSoftMuonMu5L3,'usePV', cms.bool(False))
24  setattr(process.hltBSoftMuonMu5L3,'vertexTag', cms.InputTag(''))
25  return process
26 
27 
# Updating the config (PR #8356)
def customizeHLTforCMSSW.customiseFor9232 (   process)

Definition at line 7 of file customizeHLTforCMSSW.py.

Referenced by customiseHLTforCMSSW().

7 
8 def customiseFor9232(process):
9  if hasattr(process,'hltEcalPhiSymFilter'):
10  if hasattr(process.hltEcalPhiSymFilter,'ampCut_barrel'):
11  delattr(process.hltEcalPhiSymFilter,'ampCut_barrel')
12  if hasattr(process.hltEcalPhiSymFilter,'ampCut_endcap'):
13  delattr(process.hltEcalPhiSymFilter,'ampCut_endcap')
14  return process
15 
# upgrade RecoTrackSelector to allow BTV-like cuts (PR #8679)
def customizeHLTforCMSSW.customiseHLTforCMSSW (   process,
  menuType = "GRun",
  fastSim = False 
)

Definition at line 119 of file customizeHLTforCMSSW.py.

References customiseFor10234(), customiseFor10927(), customiseFor7794(), customiseFor7966(), customiseFor8356(), customiseFor8679(), and customiseFor9232().

Referenced by customizeHLTforALL.customizeHLTforAll().

120 def customiseHLTforCMSSW(process, menuType="GRun", fastSim=False):
121  import os
122  cmsswVersion = os.environ['CMSSW_VERSION']
123 
124  if cmsswVersion >= "CMSSW_7_5":
125  process = customiseFor10927(process)
126  process = customiseFor9232(process)
127  process = customiseFor8679(process)
128  process = customiseFor8356(process)
129  process = customiseFor7966(process)
130  process = customiseFor7794(process)
131  process = customizeHLTforNewJetCorrectors(process)
132  if cmsswVersion >= "CMSSW_7_4":
133  process = customiseFor10234(process)
134 
135  return process