4 from HLTrigger.Configuration.customizeHLTforNewJetCorrectors
import customizeHLTforNewJetCorrectors
8 if hasattr(process,
'hltEcalPhiSymFilter'):
9 if hasattr(process.hltEcalPhiSymFilter,
'ampCut_barrel'):
10 delattr(process.hltEcalPhiSymFilter,
'ampCut_barrel')
11 if hasattr(process.hltEcalPhiSymFilter,
'ampCut_endcap'):
12 delattr(process.hltEcalPhiSymFilter,
'ampCut_endcap')
17 if hasattr(process,
'hltBSoftMuonMu5L3') :
18 delattr(process.hltBSoftMuonMu5L3,
'min3DHit')
19 setattr(process.hltBSoftMuonMu5L3,
'minLayer', cms.int32(0))
20 setattr(process.hltBSoftMuonMu5L3,
'min3DLayer', cms.int32(0))
21 setattr(process.hltBSoftMuonMu5L3,
'minPixelHit', cms.int32(0))
22 setattr(process.hltBSoftMuonMu5L3,
'usePV', cms.bool(
False))
23 setattr(process.hltBSoftMuonMu5L3,
'vertexTag', cms.InputTag(
''))
30 Rescale_eta = cms.double( 3.0 ),
31 Rescale_phi = cms.double( 3.0 ),
32 Rescale_Dz = cms.double( 3.0 ),
33 EtaR_UpperLimit_Par1 = cms.double( 0.25 ),
34 EtaR_UpperLimit_Par2 = cms.double( 0.15 ),
35 PhiR_UpperLimit_Par1 = cms.double( 0.6 ),
36 PhiR_UpperLimit_Par2 = cms.double( 0.2 ),
37 UseVertex = cms.bool(
False ),
38 Pt_fixed = cms.bool(
False ),
39 Z_fixed = cms.bool(
True ),
40 Phi_fixed = cms.bool(
False ),
41 Eta_fixed = cms.bool(
False ),
42 Pt_min = cms.double( 1.5 ),
43 Phi_min = cms.double( 0.1 ),
44 Eta_min = cms.double( 0.1 ),
45 DeltaZ = cms.double( 15.9 ),
46 DeltaR = cms.double( 0.2 ),
47 DeltaEta = cms.double( 0.2 ),
48 DeltaPhi = cms.double( 0.2 ),
49 maxRegions = cms.int32( 2 ),
50 precise = cms.bool(
True ),
51 OnDemand = cms.int32( -1 ),
52 MeasurementTrackerName = cms.InputTag(
"hltESPMeasurementTracker" ),
53 beamSpot = cms.InputTag(
"hltOnlineBeamSpot" ),
54 vertexCollection = cms.InputTag(
"pixelVertices" ),
55 input = cms.InputTag(
'hltL2Muons',
'UpdatedAtVtx' )
58 def producers_by_type(process, type):
59 return (module
for module
in process._Process__producers.values()
if module._TypedParameterizable__type == type)
61 for l3MPModule
in producers_by_type(process,
'L3MuonProducer'):
62 if hasattr(l3MPModule,
'GlbRefitterParameters'):
63 l3MPModule.GlbRefitterParameters.RefitFlag = cms.bool(
True)
64 if hasattr(l3MPModule,
'L3TrajBuilderParameters'):
65 if hasattr(l3MPModule.L3TrajBuilderParameters,
'MuonTrackingRegionBuilder'):
66 l3MPModule.L3TrajBuilderParameters.MuonTrackingRegionBuilder = MTRBPSet
68 listL3seedingModule = [
'hltL3TrajSeedIOHit',
'hltL3NoFiltersNoVtxTrajSeedIOHit',
'hltHIL3TrajSeedIOHit']
69 for l3IOTrajModule
in listL3seedingModule:
70 if hasattr(process, l3IOTrajModule):
71 if hasattr(getattr(process, l3IOTrajModule),
'MuonTrackingRegionBuilder'):
72 setattr(getattr(process, l3IOTrajModule),
'MuonTrackingRegionBuilder', MTRBPSet)
79 if hasattr(process,
'trackerTopology'):
80 params = process.trackerTopology.parameterNames_()
82 delattr(process.trackerTopology, param)
83 setattr(process.trackerTopology,
'appendToDataLabel', cms.string(
""))
84 if hasattr(process,
'TrackerDigiGeometryESModule'):
85 if hasattr(process.TrackerDigiGeometryESModule,
'trackerGeometryConstants'):
86 delattr(process.TrackerDigiGeometryESModule,
'trackerGeometryConstants')
91 if hasattr(process,
'TrackerDigiGeometryESModule'):
92 if hasattr(process.TrackerDigiGeometryESModule,
'trackerGeometryConstants'):
93 if hasattr(process.TrackerDigiGeometryESModule.trackerGeometryConstants,
'upgradeGeometry'):
94 delattr(process.TrackerDigiGeometryESModule.trackerGeometryConstants,
'upgradeGeometry')
100 if hasattr(process,
'hltCaloStage1Digis'):
101 if hasattr(process.hltCaloStage1Digis,
'FWId'):
102 delattr(process.hltCaloStage1Digis,
'FWId')
103 if hasattr(process.hltCaloStage1Digis,
'FedId'):
104 delattr(process.hltCaloStage1Digis,
'FedId')
110 if any(module.type_()
is 'RPCPointProducer' for module
in process.producers.itervalues()):
111 if not hasattr(process,
'CSCObjectMapESProducer'):
112 process.CSCObjectMapESProducer = cms.ESProducer(
'CSCObjectMapESProducer' )
113 if not hasattr(process,
'DTObjectMapESProducer'):
114 process.DTObjectMapESProducer = cms.ESProducer(
'DTObjectMapESProducer' )
121 cmsswVersion = os.environ[
'CMSSW_VERSION']
123 if cmsswVersion >=
"CMSSW_7_5":
131 if cmsswVersion >=
"CMSSW_7_4":
bool any(const std::vector< T > &v, const T &what)