1 import FWCore.ParameterSet.Config
as cms
6 return (module
for module
in process._Process__producers.values()
if module._TypedParameterizable__type
in types)
8 return (filter
for filter
in process._Process__filters.values()
if filter._TypedParameterizable__type
in types)
10 return (analyzer
for analyzer
in process._Process__analyzers.values()
if analyzer._TypedParameterizable__type
in types)
13 return (module
for module
in process._Process__esproducers.values()
if module._TypedParameterizable__type
in types)
29 for producer
in producers_by_type(process,
"EgammaHLTBcHcalIsolationProducersRegional",
"EgammaHLTEcalPFClusterIsolationProducer",
"EgammaHLTHcalPFClusterIsolationProducer",
"MuonHLTEcalPFClusterIsolationProducer",
"MuonHLTHcalPFClusterIsolationProducer"):
30 if hasattr(producer,
"effectiveAreaBarrel")
and hasattr(producer,
"effectiveAreaEndcap"):
31 if not hasattr(producer,
"effectiveAreas")
and not hasattr(producer,
"absEtaLowEdges"):
32 producer.absEtaLowEdges = cms.vdouble( 0.0, 1.479 )
33 producer.effectiveAreas = cms.vdouble( producer.effectiveAreaBarrel.value(), producer.effectiveAreaEndcap.value() )
34 del producer.effectiveAreaBarrel
35 del producer.effectiveAreaEndcap
41 if producer.CleanerPSet.ComponentName.value() ==
"PixelTrackCleanerBySharedHits" and not hasattr(producer.CleanerPSet,
"useQuadrupletAlgo"):
42 producer.CleanerPSet.useQuadrupletAlgo = cms.bool(
False)
47 for name, pset
in process.psets_().iteritems():
48 if hasattr(pset,
"ComponentType")
and pset.ComponentType.value() ==
"CkfBaseTrajectoryFilter" and not hasattr(pset,
"pixelSeedExtension"):
49 pset.pixelSeedExtension = cms.bool(
False)
57 cmsswVersion = os.environ[
'CMSSW_VERSION']
59 if cmsswVersion >=
"CMSSW_8_0":
62 if cmsswVersion >=
"CMSSW_8_1":
69 if (
"Fake" in menuType):