1 import FWCore.ParameterSet.Config
as cms
22 """Customise the HLT to run on Run 2 data/MC using the old readout for the HCAL barel"""
26 producer.processQIE8 =
True
30 producer.HBThreshold1 = 0.7
31 producer.HBThreshold2 = 0.7
32 producer.HBThreshold = 0.7
37 logWeightDenominatorHCAL2018 = cms.VPSet(
39 depths = cms.vint32(1, 2, 3, 4),
40 detector = cms.string(
'HCAL_BARREL1'),
41 logWeightDenominator = _thresholdsHB
44 depths = cms.vint32(1, 2, 3, 4, 5, 6, 7),
45 detector = cms.string(
'HCAL_ENDCAP'),
46 logWeightDenominator = _thresholdsHEphase1
51 if producer.producers[0].name.value() ==
'PFHBHERecHitCreator':
52 producer.producers[0].qualityTests[0].cuts[0].threshold = _thresholdsHB
55 if producer.seedFinder.thresholdsByDetector[0].detector.value() ==
'HCAL_BARREL1':
56 producer.seedFinder.thresholdsByDetector[0].seedingThreshold = _seedingThresholdsHB
57 producer.initialClusteringStep.thresholdsByDetector[0].gatheringThreshold = _thresholdsHB
58 producer.pfClusterBuilder.recHitEnergyNorms[0].recHitEnergyNorm = _thresholdsHB
59 producer.pfClusterBuilder.positionCalc.logWeightDenominatorByDetector = logWeightDenominatorHCAL2018
60 producer.pfClusterBuilder.allCellsPositionCalc.logWeightDenominatorByDetector = logWeightDenominatorHCAL2018
63 producer.pfClusterBuilder.allCellsPositionCalc.logWeightDenominatorByDetector = logWeightDenominatorHCAL2018
70 """Adapt the HLT to run the legacy DT unpacking
71 for pre2018 data/MC workflows as the default"""
73 if hasattr(process,
'hltMuonDTDigis'):
74 process.hltMuonDTDigis = cms.EDProducer(
"DTUnpackingModule",
75 useStandardFEDid = cms.bool(
True ),
76 maxFEDid = cms.untracked.int32( 779 ),
77 inputLabel = cms.InputTag(
"rawDataCollector" ),
78 minFEDid = cms.untracked.int32( 770 ),
79 dataType = cms.string(
"DDU" ),
80 readOutParameters = cms.PSet(
81 localDAQ = cms.untracked.bool(
False ),
82 debug = cms.untracked.bool(
False ),
83 rosParameters = cms.PSet(
84 localDAQ = cms.untracked.bool(
False ),
85 debug = cms.untracked.bool(
False ),
86 writeSC = cms.untracked.bool(
True ),
87 readDDUIDfromDDU = cms.untracked.bool(
True ),
88 readingDDU = cms.untracked.bool(
True ),
89 performDataIntegrityMonitor = cms.untracked.bool(
False )
91 performDataIntegrityMonitor = cms.untracked.bool(
False )
93 dqmOnly = cms.bool(
False )
99 """Customise the HLT to run on Run 2 data/MC using the old definition of the pixel calibrations
101 Up to 11.0.x, the pixel calibarations were fully specified in the configuration:
102 VCaltoElectronGain = 47
103 VCaltoElectronGain_L1 = 50
104 VCaltoElectronOffset = -60
105 VCaltoElectronOffset_L1 = -670
107 Starting with 11.1.x, the calibrations for Run 3 were moved to the conditions, leaving in the configuration only:
108 VCaltoElectronGain = 1
109 VCaltoElectronGain_L1 = 1
110 VCaltoElectronOffset = 0
111 VCaltoElectronOffset_L1 = 0
113 Since the conditions for Run 2 have not been updated to the new scheme, the HLT configuration needs to be reverted.
117 producer.VCaltoElectronGain = 47
118 producer.VCaltoElectronGain_L1 = 50
119 producer.VCaltoElectronOffset = -60
120 producer.VCaltoElectronOffset_L1 = -670
126 """Customise the HLT to run on Run 2 data/MC"""