1 import FWCore.ParameterSet.Config
as cms
4 from Configuration.ProcessModifiers.gpu_cff
import gpu
25 """Customise the HLT to run on Run 2 data/MC using the old readout for the HCAL barel"""
29 producer.processQIE8 =
True
33 producer.HBThreshold1 = 0.7
34 producer.HBThreshold2 = 0.7
35 producer.HBThreshold = 0.7
40 logWeightDenominatorHCAL2018 = cms.VPSet(
42 depths = cms.vint32(1, 2, 3, 4),
43 detector = cms.string(
'HCAL_BARREL1'),
44 logWeightDenominator = _thresholdsHB
47 depths = cms.vint32(1, 2, 3, 4, 5, 6, 7),
48 detector = cms.string(
'HCAL_ENDCAP'),
49 logWeightDenominator = _thresholdsHEphase1
54 if producer.producers[0].name.value() ==
'PFHBHERecHitCreator':
55 producer.producers[0].qualityTests[0].cuts[0].threshold = _thresholdsHB
58 if producer.seedFinder.thresholdsByDetector[0].detector.value() ==
'HCAL_BARREL1':
59 producer.seedFinder.thresholdsByDetector[0].seedingThreshold = _seedingThresholdsHB
60 producer.initialClusteringStep.thresholdsByDetector[0].gatheringThreshold = _thresholdsHB
61 producer.pfClusterBuilder.recHitEnergyNorms[0].recHitEnergyNorm = _thresholdsHB
62 producer.pfClusterBuilder.positionCalc.logWeightDenominatorByDetector = logWeightDenominatorHCAL2018
63 producer.pfClusterBuilder.allCellsPositionCalc.logWeightDenominatorByDetector = logWeightDenominatorHCAL2018
66 producer.pfClusterBuilder.allCellsPositionCalc.logWeightDenominatorByDetector = logWeightDenominatorHCAL2018
73 """Adapt the HLT to run the legacy DT unpacking
74 for pre2018 data/MC workflows as the default"""
76 if hasattr(process,
'hltMuonDTDigis'):
77 process.hltMuonDTDigis = cms.EDProducer(
"DTUnpackingModule",
78 useStandardFEDid = cms.bool(
True ),
79 maxFEDid = cms.untracked.int32( 779 ),
80 inputLabel = cms.InputTag(
"rawDataCollector" ),
81 minFEDid = cms.untracked.int32( 770 ),
82 dataType = cms.string(
"DDU" ),
83 readOutParameters = cms.PSet(
84 localDAQ = cms.untracked.bool(
False ),
85 debug = cms.untracked.bool(
False ),
86 rosParameters = cms.PSet(
87 localDAQ = cms.untracked.bool(
False ),
88 debug = cms.untracked.bool(
False ),
89 writeSC = cms.untracked.bool(
True ),
90 readDDUIDfromDDU = cms.untracked.bool(
True ),
91 readingDDU = cms.untracked.bool(
True ),
92 performDataIntegrityMonitor = cms.untracked.bool(
False )
94 performDataIntegrityMonitor = cms.untracked.bool(
False )
96 dqmOnly = cms.bool(
False )
102 """Customise the HLT to run on Run 2 data/MC using the old definition of the pixel calibrations
104 Up to 11.0.x, the pixel calibarations were fully specified in the configuration:
105 VCaltoElectronGain = 47
106 VCaltoElectronGain_L1 = 50
107 VCaltoElectronOffset = -60
108 VCaltoElectronOffset_L1 = -670
110 Starting with 11.1.x, the calibrations for Run 3 were moved to the conditions, leaving in the configuration only:
111 VCaltoElectronGain = 1
112 VCaltoElectronGain_L1 = 1
113 VCaltoElectronOffset = 0
114 VCaltoElectronOffset_L1 = 0
116 Since the conditions for Run 2 have not been updated to the new scheme, the HLT configuration needs to be reverted.
120 producer.VCaltoElectronGain = 47
121 producer.VCaltoElectronGain_L1 = 50
122 producer.VCaltoElectronOffset = -60
123 producer.VCaltoElectronOffset_L1 = -670
130 if hasattr(producer,
"ClusterThreshold_L1"):
131 producer.ClusterThreshold_L1 = 2000
133 if hasattr(producer,
"clusterThreshold_layer1"):
134 producer.clusterThreshold_layer1 = 2000
139 """Customise the HLT to run on Run 2 data/MC"""
151 from HLTrigger.Configuration.customizeHLTforPatatrack
import customizeHLTforPatatrack
152 gpu.makeProcessModifier(customizeHLTforPatatrack).
apply(process)
def customiseFor2017DtUnpacking
def customiseHCALFor2018Input
def customisePixelGainForRun2Input
def customiseFor2018Input
def customisePixelL1ClusterThresholdForRun2Input