1 import FWCore.ParameterSet.Config
as cms
27 if producer.seedFinder.thresholdsByDetector[1].detector.value() ==
'HCAL_ENDCAP':
28 producer.pfClusterBuilder.recHitEnergyNorms = recHitEnergyNorms2018
29 producer.seedFinder.thresholdsByDetector = seedFinderThresholdsByDetector2018
30 producer.initialClusteringStep.thresholdsByDetector = initialClusteringStepThresholdsByDetector2018
31 producer.pfClusterBuilder.positionCalc.logWeightDenominatorByDetector = logWeightDenominatorByDetector2018
32 producer.pfClusterBuilder.allCellsPositionCalc.logWeightDenominatorByDetector = logWeightDenominatorByDetector2018
35 producer.pfClusterBuilder.allCellsPositionCalc.logWeightDenominatorByDetector = logWeightDenominatorByDetector2018_HCAL
38 if producer.producers[0].name.value() ==
'PFHBHERecHitCreator':
39 producer.producers[0].qualityTests[0].cuts = cuts2018
42 producer.HcalPhase = cms.int32(1)
43 producer.HESThreshold1 = cms.double(0.1)
44 producer.HESThreshold = cms.double(0.2)
45 producer.HEDThreshold1 = cms.double(0.1)
46 producer.HEDThreshold = cms.double(0.2)
50 process.hltHbhereco = process.hltHbhePhase1Reco.clone()
51 process.HLTDoLocalHcalSequence = cms.Sequence( process.hltHcalDigis + process.hltHbhereco + process.hltHfprereco + process.hltHfreco + process.hltHoreco )
52 process.HLTStoppedHSCPLocalHcalReco = cms.Sequence( process.hltHcalDigis + process.hltHbhereco )
60 producer.algorithm.useMahi = cms.bool(
True)
61 producer.algorithm.useM2 = cms.bool(
False)
62 producer.algorithm.useM3 = cms.bool(
False)
66 """Adapt the HLT to run the legacy DT unpacking 67 for pre2018 data/MC workflows as the default""" 69 if hasattr(process,
'hltMuonDTDigis'):
70 process.hltMuonDTDigis = cms.EDProducer(
"DTUnpackingModule",
71 useStandardFEDid = cms.bool(
True ),
72 maxFEDid = cms.untracked.int32( 779 ),
73 inputLabel = cms.InputTag(
"rawDataCollector" ),
74 minFEDid = cms.untracked.int32( 770 ),
75 dataType = cms.string(
"DDU" ),
76 readOutParameters = cms.PSet(
77 localDAQ = cms.untracked.bool(
False ),
78 debug = cms.untracked.bool(
False ),
79 rosParameters = cms.PSet(
80 localDAQ = cms.untracked.bool(
False ),
81 debug = cms.untracked.bool(
False ),
82 writeSC = cms.untracked.bool(
True ),
83 readDDUIDfromDDU = cms.untracked.bool(
True ),
84 readingDDU = cms.untracked.bool(
True ),
85 performDataIntegrityMonitor = cms.untracked.bool(
False )
87 performDataIntegrityMonitor = cms.untracked.bool(
False )
89 dqmOnly = cms.bool(
False )
99 for hltParticleFlowRecHitECAL
in [
'hltParticleFlowRecHitECALUnseeded',
'hltParticleFlowRecHitECALL1Seeded',
'hltParticleFlowRecHitECALForMuonsMF',
'hltParticleFlowRecHitECALForTkMuonsMF']:
100 if hasattr(process,hltParticleFlowRecHitECAL):
101 module = getattr(process,hltParticleFlowRecHitECAL)
103 for producer
in module.producers:
104 if hasattr(producer,
'srFlags'):
105 producer.srFlags = cms.InputTag(
"")
106 if hasattr(producer,
'qualityTests'):
107 for qualityTest
in producer.qualityTests:
108 if hasattr(qualityTest,
'thresholds'):
109 qualityTest.applySelectionsToAllCrystals = cms.bool(
True)
123 from Configuration.Eras.Modifier_run2_ECAL_2017_cff
import run2_ECAL_2017
126 for hltParticleFlowRecHitECAL
in [
'hltParticleFlowRecHitECALUnseeded',
'hltParticleFlowRecHitECALL1Seeded',
'hltParticleFlowRecHitECALForMuonsMF',
'hltParticleFlowRecHitECALForTkMuonsMF']:
127 if hasattr(process,hltParticleFlowRecHitECAL):
128 module = getattr(process,hltParticleFlowRecHitECAL)
130 for producer
in module.producers:
131 if hasattr(producer,
'srFlags'):
132 producer.srFlags = cms.InputTag(
"")
133 if hasattr(producer,
'qualityTests'):
134 for qualityTest
in producer.qualityTests:
135 if hasattr(qualityTest,
'thresholds'):
136 qualityTest.thresholds = _particle_flow_zero_suppression_ECAL_2018_A.thresholds
137 qualityTest.applySelectionsToAllCrystals = cms.bool(
True)
147 from Configuration.Eras.Modifier_run2_ECAL_2017_cff
import run2_ECAL_2017
150 for hltParticleFlowRecHitECAL
in [
'hltParticleFlowRecHitECALUnseeded',
'hltParticleFlowRecHitECALL1Seeded',
'hltParticleFlowRecHitECALForMuonsMF',
'hltParticleFlowRecHitECALForTkMuonsMF']:
151 if hasattr(process,hltParticleFlowRecHitECAL):
152 module = getattr(process,hltParticleFlowRecHitECAL)
154 for producer
in module.producers:
155 if hasattr(producer,
'srFlags'):
156 producer.srFlags = cms.InputTag(
"")
157 if hasattr(producer,
'qualityTests'):
158 for qualityTest
in producer.qualityTests:
159 if hasattr(qualityTest,
'thresholds'):
160 qualityTest.thresholds = _particle_flow_zero_suppression_ECAL_2018_B.thresholds
161 qualityTest.applySelectionsToAllCrystals = cms.bool(
True)
170 from Configuration.Eras.Modifier_run2_ECAL_2017_cff
import run2_ECAL_2017
173 for hltParticleFlowRecHitECAL
in [
'hltParticleFlowRecHitECALUnseeded',
'hltParticleFlowRecHitECALL1Seeded',
'hltParticleFlowRecHitECALForMuonsMF',
'hltParticleFlowRecHitECALForTkMuonsMF']:
174 if hasattr(process,hltParticleFlowRecHitECAL):
175 module = getattr(process,hltParticleFlowRecHitECAL)
177 for producer
in module.producers:
178 if hasattr(producer,
'srFlags'):
179 producer.srFlags = cms.InputTag(
"")
180 if hasattr(producer,
'qualityTests'):
181 for qualityTest
in producer.qualityTests:
182 if hasattr(qualityTest,
'thresholds'):
183 qualityTest.thresholds = _particle_flow_zero_suppression_ECAL_2018_C.thresholds
184 qualityTest.applySelectionsToAllCrystals = cms.bool(
True)
def customiseForEcalTestPR22254thresholdA(process)
def customizeHLTforCMSSW(process, menuType="GRun")
def customiseForEcalTestPR22254Default(process)
def customiseForEcalTestPR22254thresholdB(process)
def customiseForUncollapsed(process)
def customiseFor2017DtUnpacking(process)
def customiseFor21664_forMahiOn(process)
def customiseForEcalTestPR22254thresholdC(process)
def producers_by_type(process, types)