1 import FWCore.ParameterSet.Config
as cms
22 for filt
in filters_by_type(process,
"HLTEgammaGenericFilter",
"HLTMuonGenericFilter",
"HLTEgammaGenericQuadraticFilter",
"HLTEgammaGenericQuadraticEtaFilter"):
23 if not hasattr(filt,
"doRhoCorrection"):
24 filt.doRhoCorrection = cms.bool(
False )
25 filt.rhoTag = cms.InputTag(
"" )
26 filt.effectiveAreas = cms.vdouble( 0.0 )
27 filt.absEtaLowEdges = cms.vdouble( 0.0 )
28 filt.rhoMax = cms.double( 9.9999999E7 )
29 filt.rhoScale = cms.double( 1.0 )
31 for filt
in filters_by_type(process,
"HLTEgammaGenericFilter",
"HLTMuonGenericFilter",
"HLTEgammaGenericQuadraticFilter"):
32 if not hasattr(filt,
"energyLowEdges"):
33 cutRegularEB = filt.thrRegularEB.value()
34 cutRegularEE = filt.thrRegularEE.value()
35 cutOverEEB = filt.thrOverEEB.value()
36 cutOverEEE = filt.thrOverEEE.value()
37 cutOverE2EB = filt.thrOverE2EB.value()
38 cutOverE2EE = filt.thrOverE2EE.value()
47 filt.energyLowEdges = cms.vdouble( 0.0 )
48 filt.thrRegularEB = cms.vdouble( cutRegularEB )
49 filt.thrRegularEE = cms.vdouble( cutRegularEE )
50 filt.thrOverEEB = cms.vdouble( cutOverEEB )
51 filt.thrOverEEE = cms.vdouble( cutOverEEE )
52 filt.thrOverE2EB = cms.vdouble( cutOverE2EB )
53 filt.thrOverE2EE = cms.vdouble( cutOverE2EE )
55 for filt
in filters_by_type(process,
"HLTEgammaGenericQuadraticEtaFilter"):
56 if not hasattr(filt,
"energyLowEdges"):
57 cutRegularEB1 = filt.thrRegularEB1.value()
58 cutRegularEE1 = filt.thrRegularEE1.value()
59 cutOverEEB1 = filt.thrOverEEB1.value()
60 cutOverEEE1 = filt.thrOverEEE1.value()
61 cutOverE2EB1 = filt.thrOverE2EB1.value()
62 cutOverE2EE1 = filt.thrOverE2EE1.value()
63 cutRegularEB2 = filt.thrRegularEB2.value()
64 cutRegularEE2 = filt.thrRegularEE2.value()
65 cutOverEEB2 = filt.thrOverEEB2.value()
66 cutOverEEE2 = filt.thrOverEEE2.value()
67 cutOverE2EB2 = filt.thrOverE2EB2.value()
68 cutOverE2EE2 = filt.thrOverE2EE2.value()
70 del filt.thrRegularEB1
71 del filt.thrRegularEE1
76 del filt.thrRegularEB2
77 del filt.thrRegularEE2
83 filt.energyLowEdges = cms.vdouble( 0.0 )
84 filt.thrRegularEB1 = cms.vdouble( cutRegularEB1 )
85 filt.thrRegularEE1 = cms.vdouble( cutRegularEE1 )
86 filt.thrOverEEB1 = cms.vdouble( cutOverEEB1 )
87 filt.thrOverEEE1 = cms.vdouble( cutOverEEE1 )
88 filt.thrOverE2EB1 = cms.vdouble( cutOverE2EB1 )
89 filt.thrOverE2EE1 = cms.vdouble( cutOverE2EE1 )
90 filt.thrRegularEB2 = cms.vdouble( cutRegularEB2 )
91 filt.thrRegularEE2 = cms.vdouble( cutRegularEE2 )
92 filt.thrOverEEB2 = cms.vdouble( cutOverEEB2 )
93 filt.thrOverEEE2 = cms.vdouble( cutOverEEE2 )
94 filt.thrOverE2EB2 = cms.vdouble( cutOverE2EB2 )
95 filt.thrOverE2EE2 = cms.vdouble( cutOverE2EE2 )
101 if hasattr(edproducer,
'producers'):
102 for pset
in edproducer.producers:
103 if (pset.name ==
'PFEBRecHitCreator' or pset.name ==
'PFEERecHitCreator'):
104 if not hasattr(pset,
'srFlags'):
105 pset.srFlags = cms.InputTag(
'hltEcalDigis')
111 if not hasattr(process,
"hltTrackAlgoPriorityOrder"):
112 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi
import trackAlgoPriorityOrder
113 process.hltTrackAlgoPriorityOrder = trackAlgoPriorityOrder.clone(
114 ComponentName =
"hltTrackAlgoPriorityOrder",
118 for producer
in producers_by_type(process,
"SimpleTrackListMerger",
"TrackCollectionMerger",
"TrackListMerger"):
119 if not hasattr(producer,
"trackAlgoPriorityOrder"):
120 producer.trackAlgoPriorityOrder = cms.string(
"hltTrackAlgoPriorityOrder")
126 if not hasattr(producer,
"produceSeedStopReasons"):
127 producer.produceSeedStopReasons = cms.bool(
False)
133 if producer.TkFilterParameters.algorithm.value() ==
"filter" and not hasattr(producer.TkFilterParameters,
"maxEta"):
134 producer.TkFilterParameters.maxEta = cms.double(100.0)
136 if producer.TkClusParameters.algorithm.value() ==
"DA_vect":
137 if abs(producer.TkClusParameters.TkDAClusParameters.Tmin.value() - 4.0) < 1e-3:
139 producer.TkClusParameters.TkDAClusParameters.Tmin = 2.4
140 if not hasattr(producer.TkClusParameters.TkDAClusParameters,
"Tpurge"):
141 producer.TkClusParameters.TkDAClusParameters.Tpurge = cms.double(2.0)
142 if not hasattr(producer.TkClusParameters.TkDAClusParameters,
"Tstop"):
143 producer.TkClusParameters.TkDAClusParameters.Tstop = cms.double(0.5)
144 if not hasattr(producer.TkClusParameters.TkDAClusParameters,
"zmerge"):
145 producer.TkClusParameters.TkDAClusParameters.zmerge = cms.double(1e-2)
146 if not hasattr(producer.TkClusParameters.TkDAClusParameters,
"uniquetrkweight"):
147 producer.TkClusParameters.TkDAClusParameters.uniquetrkweight = cms.double(0.9)
149 for pset
in producer.vertexCollections:
150 if pset.algorithm.value() ==
"AdaptiveVertexFitter" and not hasattr(pset,
"chi2cutoff"):
151 pset.chi2cutoff = cms.double(3.0)
157 if hasattr(producer,
'builders'):
158 for pset
in producer.builders:
159 if not hasattr(pset,
'minAbsPhotonSumPt_insideSignalCone'):
160 pset.minAbsPhotonSumPt_insideSignalCone = cms.double(2.5)
161 if not hasattr(pset,
'minRelPhotonSumPt_insideSignalCone'):
162 pset.minRelPhotonSumPt_insideSignalCone = cms.double(0.10)
169 if hasattr(producer,
"doOutputJets"): del producer.doOutputJets
170 if hasattr(producer,
"addNegative"): del producer.addNegative
171 if hasattr(producer,
"addNegativesFromCone"): del producer.addNegativesFromCone
172 if hasattr(producer,
"dropZeros"): del producer.dropZeros
173 if hasattr(producer,
"infinitesimalPt"): del producer.infinitesimalPt
179 if (menuType ==
"GRun2016"):
def customiseFor17794(process)
def customizeHLTforCMSSW(process, menuType="GRun")
def filters_by_type(process, types)
def customiseFor18429(process)
def customiseFor17771(process)
def customiseFor19098(process)
Abs< T >::type abs(const T &t)
def producers_by_type(process, types)
def customiseFor17792(process)
def customiseFor18330(process)
def customiseFor18559(process)