1 import FWCore.ParameterSet.Config
as cms
5 from FWCore.ParameterSet.MassReplace
import massReplaceInputTag
11 '''Customization to introduce Particle Flow Reconstruction in Alpaka 14 if not hasattr(process,
'hltParticleFlowClusterHBHE'):
20 process.hltESSPFRecHitHCALParamsRecord = cms.ESSource(
'EmptyESSource',
21 recordName = cms.string(
'PFRecHitHCALParamsRecord'),
22 iovIsRunNotTime = cms.bool(
True),
23 firstValid = cms.vuint32(1)
26 process.hltESSPFRecHitHCALTopologyRecord = cms.ESSource(
'EmptyESSource',
27 recordName = cms.string(
'PFRecHitHCALTopologyRecord'),
28 iovIsRunNotTime = cms.bool(
True),
29 firstValid = cms.vuint32(1)
32 process.hltESSJobConfigurationGPURecord = cms.ESSource(
'EmptyESSource',
33 recordName = cms.string(
'JobConfigurationGPURecord'),
34 iovIsRunNotTime = cms.bool(
True),
35 firstValid = cms.vuint32(1)
38 process.hltHbheRecHitSoA = cms.EDProducer(
"HCALRecHitSoAProducer@alpaka",
39 src = cms.InputTag(
"hltHbhereco"),
40 synchronise = cms.untracked.bool(
False),
42 alpaka = cms.untracked.PSet(
43 backend = cms.untracked.string(
'')
47 process.hltESPPFRecHitHCALTopology = cms.ESProducer(
'PFRecHitHCALTopologyESProducer@alpaka',
48 usePFThresholdsFromDB = cms.bool(
True),
49 appendToDataLabel = cms.string(
''),
51 alpaka = cms.untracked.PSet(
52 backend = cms.untracked.string(
'')
56 process.hltESPPFRecHitHCALParams = cms.ESProducer(
'PFRecHitHCALParamsESProducer@alpaka',
57 energyThresholdsHB = cms.vdouble(0.1, 0.2, 0.3, 0.3),
58 energyThresholdsHE = cms.vdouble(0.1, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2),
59 appendToDataLabel = cms.string(
''),
61 alpaka = cms.untracked.PSet(
62 backend = cms.untracked.string(
'')
66 process.hltParticleFlowRecHitHBHESoA = cms.EDProducer(
"PFRecHitSoAProducerHCAL@alpaka",
67 producers = cms.VPSet(
69 src = cms.InputTag(
"hltHbheRecHitSoA"),
70 params = cms.ESInputTag(
"hltESPPFRecHitHCALParams:"),
73 topology = cms.ESInputTag(
"hltESPPFRecHitHCALTopology:"),
74 synchronise = cms.untracked.bool(
False),
76 alpaka = cms.untracked.PSet(
77 backend = cms.untracked.string(
'')
81 process.hltParticleFlowRecHitHBHE = cms.EDProducer(
"LegacyPFRecHitProducer",
82 src = cms.InputTag(
"hltParticleFlowRecHitHBHESoA")
85 process.hltESPPFClusterParams = cms.ESProducer(
"PFClusterParamsESProducer@alpaka",
86 seedFinder = cms.PSet(
87 nNeighbours = cms.int32(4),
88 thresholdsByDetector = cms.VPSet(
90 detector = cms.string(
'HCAL_BARREL1'),
91 seedingThreshold = cms.vdouble(0.125, 0.25, 0.35, 0.35),
92 seedingThresholdPt = cms.double(0)
95 detector = cms.string(
'HCAL_ENDCAP'),
96 seedingThreshold = cms.vdouble(0.1375, 0.275, 0.275, 0.275, 0.275, 0.275, 0.275),
97 seedingThresholdPt = cms.double(0)
101 initialClusteringStep = cms.PSet(
102 thresholdsByDetector = cms.VPSet(
104 detector = cms.string(
'HCAL_BARREL1'),
105 gatheringThreshold = cms.vdouble(0.1, 0.2, 0.3, 0.3)
108 detector = cms.string(
'HCAL_ENDCAP'),
109 gatheringThreshold = cms.vdouble(0.1, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2)
113 pfClusterBuilder = cms.PSet(
114 maxIterations = cms.uint32(5),
115 minFracTot = cms.double(1e-20),
116 minFractionToKeep = cms.double(1e-07),
117 excludeOtherSeeds = cms.bool(
True),
118 showerSigma = cms.double(10),
119 stoppingTolerance = cms.double(1e-08),
120 recHitEnergyNorms = cms.VPSet(
122 detector = cms.string(
'HCAL_BARREL1'),
123 recHitEnergyNorm = cms.vdouble(0.1, 0.2, 0.3, 0.3)
126 detector = cms.string(
'HCAL_ENDCAP'),
127 recHitEnergyNorm = cms.vdouble(0.1, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2)
130 positionCalc = cms.PSet(
131 minFractionInCalc = cms.double(1e-09),
132 minAllowedNormalization = cms.double(1e-09)
134 timeResolutionCalcBarrel = cms.PSet(
135 corrTermLowE = cms.double(0),
136 threshLowE = cms.double(6),
137 noiseTerm = cms.double(21.86),
138 constantTermLowE = cms.double(4.24),
139 noiseTermLowE = cms.double(8),
140 threshHighE = cms.double(15),
141 constantTerm = cms.double(2.82)
143 timeResolutionCalcEndcap = cms.PSet(
144 corrTermLowE = cms.double(0),
145 threshLowE = cms.double(6),
146 noiseTerm = cms.double(21.86),
147 constantTermLowE = cms.double(4.24),
148 noiseTermLowE = cms.double(8),
149 threshHighE = cms.double(15),
150 constantTerm = cms.double(2.82)
154 alpaka = cms.untracked.PSet(
155 backend = cms.untracked.string(
'')
159 process.hltParticleFlowClusterHBHESoA = cms.EDProducer(
"PFClusterSoAProducer@alpaka",
160 pfRecHits = cms.InputTag(
"hltParticleFlowRecHitHBHESoA"),
161 topology = cms.ESInputTag(
"hltESPPFRecHitHCALTopology:"),
162 pfClusterParams = cms.ESInputTag(
"hltESPPFClusterParams:"),
163 synchronise = cms.bool(
False),
165 alpaka = cms.untracked.PSet(
166 backend = cms.untracked.string(
'')
170 process.hltParticleFlowClusterHBHE = cms.EDProducer(
"LegacyPFClusterProducer",
171 src = cms.InputTag(
"hltParticleFlowClusterHBHESoA"),
172 pfClusterBuilder = process.hltParticleFlowClusterHBHE.pfClusterBuilder,
173 usePFThresholdsFromDB = cms.bool(
True),
174 recHitsSource = cms.InputTag(
"hltParticleFlowRecHitHBHE"),
175 PFRecHitsLabelIn = cms.InputTag(
"hltParticleFlowRecHitHBHESoA")
178 process.HLTPFHcalClustering = cms.Sequence(
179 process.hltHbheRecHitSoA +
180 process.hltParticleFlowRecHitHBHESoA +
181 process.hltParticleFlowRecHitHBHE +
182 process.hltParticleFlowClusterHBHESoA +
183 process.hltParticleFlowClusterHBHE +
184 process.hltParticleFlowClusterHCAL
189 def replaceItemsInSequence(process, seqNames, itemsToReplace, replacingSequence):
190 for seqName
in seqNames:
191 if not hasattr(process, seqName):
193 seq = getattr(process, seqName)
194 for item
in itemsToReplace:
196 if (item != itemsToReplace[-1]):
200 seq.replace(item, replacingSequence)
203 process = replaceItemsInSequence(
205 'HLTParticleFlowSequence',
206 'HLTParticleFlowSequenceForTaus',
207 'HLTParticleFlowSequenceForDisplTaus',
208 'HLTParticleFlowSequencePPOnAA',
209 'HLTPixelOnlyParticleFlowSequence',
211 process.hltParticleFlowRecHitHBHE,
212 process.hltParticleFlowClusterHBHE,
213 process.hltParticleFlowClusterHCAL
215 process.HLTPFHcalClustering
218 process.hltHbheRecHitSoACPUSerial =
makeSerialClone(process.hltHbheRecHitSoA)
220 process.hltParticleFlowRecHitHBHESoACPUSerial =
makeSerialClone(process.hltParticleFlowRecHitHBHESoA)
221 process.hltParticleFlowRecHitHBHESoACPUSerial.producers[0].src =
'hltHbheRecHitSoACPUSerial' 223 process.hltParticleFlowRecHitHBHECPUOnly = process.hltParticleFlowRecHitHBHE.clone(
224 src =
'hltParticleFlowRecHitHBHESoACPUSerial',
227 process.hltParticleFlowClusterHBHESoACPUSerial =
makeSerialClone(process.hltParticleFlowClusterHBHESoA,
228 pfRecHits =
'hltParticleFlowRecHitHBHESoACPUSerial',
231 process.hltParticleFlowClusterHBHECPUOnly = process.hltParticleFlowClusterHBHE.clone(
232 src =
'hltParticleFlowClusterHBHESoACPUSerial',
233 recHitsSource =
'hltParticleFlowRecHitHBHECPUOnly',
234 PFRecHitsLabelIn =
'hltParticleFlowRecHitHBHESoACPUSerial',
237 process.HLTPFHcalClusteringCPUOnly = cms.Sequence(
238 process.hltHbheRecHitSoACPUSerial +
239 process.hltParticleFlowRecHitHBHESoACPUSerial +
240 process.hltParticleFlowRecHitHBHECPUOnly +
241 process.hltParticleFlowClusterHBHESoACPUSerial +
242 process.hltParticleFlowClusterHBHECPUOnly +
243 process.hltParticleFlowClusterHCALCPUOnly
246 process = replaceItemsInSequence(process, [
'HLTParticleFlowCPUOnlySequence'],
247 [process.hltParticleFlowRecHitHBHECPUOnly, process.hltParticleFlowClusterHBHECPUOnly, process.hltParticleFlowClusterHCALCPUOnly],
248 process.HLTPFHcalClusteringCPUOnly)
251 for hltOutModMatch
in [
'hltOutputDQMGPUvsCPU',
'hltOutputHIDQMGPUvsCPU']:
252 if hasattr(process, hltOutModMatch):
253 outMod = getattr(process, hltOutModMatch)
254 outMod.outputCommands.extend([
255 'keep *_hltParticleFlowClusterHBHESoA_*_*',
256 'keep *_hltParticleFlowClusterHBHESoACPUSerial_*_*',
260 for pathNameMatch
in [
'DQM_HcalReconstruction_v',
'DQM_HIHcalReconstruction_v']:
261 dqmHcalRecoPathName =
None 262 for pathName
in process.paths_():
263 if pathName.startswith(pathNameMatch):
264 dqmHcalRecoPathName = pathName
266 if dqmHcalRecoPathName ==
None:
268 dqmHcalPath = getattr(process, dqmHcalRecoPathName)
269 dqmHcalRecoPathIndex = dqmHcalPath.index(process.hltHcalConsumerGPU) + 1
270 dqmHcalPath.insert(dqmHcalRecoPathIndex, process.HLTPFHcalClusteringCPUOnly)
271 dqmHcalPath.insert(dqmHcalRecoPathIndex, process.HLTPFHcalClustering)
278 '''Ad-hoc changes to test HLT config containing only DQM_PixelReconstruction_v and DQMGPUvsCPU stream 279 only up to the Pixel Local Reconstruction 281 dqmPixelRecoPathName =
None 282 for pathName
in process.paths_():
283 if pathName.startswith(
'DQM_PixelReconstruction_v'):
284 dqmPixelRecoPathName = pathName
287 if dqmPixelRecoPathName ==
None:
295 outCmds_new = [foo
for foo
in process.hltOutputDQMGPUvsCPU.outputCommands
if 'Pixel' not in foo]
297 'keep *Cluster*_hltSiPixelClusters_*_*',
298 'keep *Cluster*_hltSiPixelClustersSerialSync_*_*',
299 'keep *_hltSiPixelDigiErrors_*_*',
300 'keep *_hltSiPixelDigiErrorsSerialSync_*_*',
301 'keep *RecHit*_hltSiPixelRecHits_*_*',
302 'keep *RecHit*_hltSiPixelRecHitsSerialSync_*_*',
303 'keep *_hltPixelTracks_*_*',
304 'keep *_hltPixelTracksSerialSync_*_*',
305 'keep *_hltPixelVertices_*_*',
306 'keep *_hltPixelVerticesSerialSync_*_*',
308 process.hltOutputDQMGPUvsCPU.outputCommands = outCmds_new[:]
313 process.hltPixelRecHitsSoAMonitorCPU = cms.EDProducer(
'SiPixelPhase1MonitorRecHitsSoAAlpaka',
314 pixelHitsSrc = cms.InputTag(
'hltSiPixelRecHitsSoASerialSync'),
315 TopFolderName = cms.string(
'SiPixelHeterogeneous/PixelRecHitsCPU')
319 process.hltPixelRecHitsSoAMonitorGPU = cms.EDProducer(
'SiPixelPhase1MonitorRecHitsSoAAlpaka',
320 pixelHitsSrc = cms.InputTag(
'hltSiPixelRecHitsSoA'),
321 TopFolderName = cms.string(
'SiPixelHeterogeneous/PixelRecHitsGPU')
325 process.hltPixelRecHitsSoACompareGPUvsCPU = cms.EDProducer(
'SiPixelPhase1CompareRecHitsSoAAlpaka',
326 pixelHitsSrcHost = cms.InputTag(
'hltSiPixelRecHitsSoASerialSync'),
327 pixelHitsSrcDevice = cms.InputTag(
'hltSiPixelRecHitsSoA'),
328 topFolderName = cms.string(
'SiPixelHeterogeneous/PixelRecHitsCompareGPUvsCPU'),
329 minD2cut = cms.double(1.0e-4)
332 process.hltPixelTracksSoAMonitorCPU = cms.EDProducer(
"SiPixelPhase1MonitorTrackSoAAlpaka",
333 minQuality = cms.string(
'loose'),
334 pixelTrackSrc = cms.InputTag(
'hltPixelTracksSoASerialSync'),
335 topFolderName = cms.string(
'SiPixelHeterogeneous/PixelTrackCPU'),
336 useQualityCut = cms.bool(
True)
339 process.hltPixelTracksSoAMonitorGPU = cms.EDProducer(
"SiPixelPhase1MonitorTrackSoAAlpaka",
340 minQuality = cms.string(
'loose'),
341 pixelTrackSrc = cms.InputTag(
'hltPixelTracksSoA'),
342 topFolderName = cms.string(
'SiPixelHeterogeneous/PixelTrackGPU'),
343 useQualityCut = cms.bool(
True)
346 process.hltPixelTracksSoACompareGPUvsCPU = cms.EDProducer(
"SiPixelPhase1CompareTrackSoAAlpaka",
347 deltaR2cut = cms.double(0.04),
348 minQuality = cms.string(
'loose'),
349 pixelTrackSrcHost = cms.InputTag(
"hltPixelTracksSoASerialSync"),
350 pixelTrackSrcDevice = cms.InputTag(
"hltPixelTracksSoA"),
351 topFolderName = cms.string(
'SiPixelHeterogeneous/PixelTrackCompareGPUvsCPU'),
352 useQualityCut = cms.bool(
True)
355 process.hltPixelVertexSoAMonitorCPU = cms.EDProducer(
"SiPixelMonitorVertexSoAAlpaka",
356 beamSpotSrc = cms.InputTag(
"hltOnlineBeamSpot"),
357 pixelVertexSrc = cms.InputTag(
"hltPixelVerticesSoASerialSync"),
358 topFolderName = cms.string(
'SiPixelHeterogeneous/PixelVertexCPU')
361 process.hltPixelVertexSoAMonitorGPU = cms.EDProducer(
"SiPixelMonitorVertexSoAAlpaka",
362 beamSpotSrc = cms.InputTag(
"hltOnlineBeamSpot"),
363 pixelVertexSrc = cms.InputTag(
"hltPixelVerticesSoA"),
364 topFolderName = cms.string(
'SiPixelHeterogeneous/PixelVertexGPU')
367 process.hltPixelVertexSoACompareGPUvsCPU = cms.EDProducer(
"SiPixelCompareVertexSoAAlpaka",
368 beamSpotSrc = cms.InputTag(
"hltOnlineBeamSpot"),
369 dzCut = cms.double(1),
370 pixelVertexSrcHost = cms.InputTag(
"hltPixelVerticesSoASerialSync"),
371 pixelVertexSrcDevice = cms.InputTag(
"hltPixelVerticesSoA"),
372 topFolderName = cms.string(
'SiPixelHeterogeneous/PixelVertexCompareGPUvsCPU')
375 process.HLTDQMPixelReconstruction = cms.Sequence(
376 process.hltPixelRecHitsSoAMonitorCPU
377 + process.hltPixelRecHitsSoAMonitorGPU
378 + process.hltPixelRecHitsSoACompareGPUvsCPU
379 + process.hltPixelTracksSoAMonitorCPU
380 + process.hltPixelTracksSoAMonitorGPU
381 + process.hltPixelTracksSoACompareGPUvsCPU
382 + process.hltPixelVertexSoAMonitorCPU
383 + process.hltPixelVertexSoAMonitorGPU
384 + process.hltPixelVertexSoACompareGPUvsCPU
387 for delMod
in [
'hltPixelConsumerCPU',
'hltPixelConsumerGPU']:
388 if hasattr(process, delMod):
389 process.__delattr__(delMod)
395 '''Customisation to introduce the Local Pixel Reconstruction in Alpaka 398 if not hasattr(process,
'HLTDoLocalPixelSequence'):
404 process.hltESPSiPixelCablingSoA = cms.ESProducer(
'SiPixelCablingSoAESProducer@alpaka',
405 CablingMapLabel = cms.string(
''),
406 UseQualityInfo = cms.bool(
False),
407 appendToDataLabel = cms.string(
''),
408 alpaka = cms.untracked.PSet(
409 backend = cms.untracked.string(
'')
413 process.hltESPSiPixelGainCalibrationForHLTSoA = cms.ESProducer(
'SiPixelGainCalibrationForHLTSoAESProducer@alpaka',
414 appendToDataLabel = cms.string(
''),
415 alpaka = cms.untracked.PSet(
416 backend = cms.untracked.string(
'')
420 process.hltESPPixelCPEFastParamsPhase1 = cms.ESProducer(
'PixelCPEFastParamsESProducerAlpakaPhase1@alpaka',
421 appendToDataLabel = cms.string(
''),
422 alpaka = cms.untracked.PSet(
423 backend = cms.untracked.string(
'')
427 if hasattr(process,
'hltESPPixelCPEFast'):
428 del process.hltESPPixelCPEFast
435 process.hltOnlineBeamSpotDevice = cms.EDProducer(
'BeamSpotDeviceProducer@alpaka',
436 src = cms.InputTag(
'hltOnlineBeamSpot'),
437 alpaka = cms.untracked.PSet(
438 backend = cms.untracked.string(
'')
442 if hasattr(process,
'hltOnlineBeamSpotToGPU'):
446 if not (hasattr(process,
'HLTDoLocalPixelPPOnAATask')
and process.HLTDoLocalPixelPPOnAATask.contains(process.hltOnlineBeamSpotToGPU)):
447 del process.hltOnlineBeamSpotToGPU
457 process.hltSiPixelClustersSoA = cms.EDProducer(
'SiPixelRawToClusterPhase1@alpaka',
458 IncludeErrors = cms.bool(
True),
459 UseQualityInfo = cms.bool(
False),
460 clusterThreshold_layer1 = cms.int32(4000),
461 clusterThreshold_otherLayers = cms.int32(4000),
462 VCaltoElectronGain = cms.double(1),
463 VCaltoElectronGain_L1 = cms.double(1),
464 VCaltoElectronOffset = cms.double(0),
465 VCaltoElectronOffset_L1 = cms.double(0),
466 InputLabel = cms.InputTag(
'rawDataCollector'),
467 Regions = cms.PSet(),
468 CablingMapLabel = cms.string(
''),
470 alpaka = cms.untracked.PSet(
471 backend = cms.untracked.string(
'')
475 if hasattr(process,
'hltSiPixelClustersGPU'):
476 del process.hltSiPixelClustersGPU
478 process.hltSiPixelClusters = cms.EDProducer(
'SiPixelDigisClustersFromSoAAlpakaPhase1',
479 src = cms.InputTag(
'hltSiPixelClustersSoA'),
480 clusterThreshold_layer1 = cms.int32(4000),
481 clusterThreshold_otherLayers = cms.int32(4000),
482 produceDigis = cms.bool(
False),
483 storeDigis = cms.bool(
False)
487 process.hltSiPixelClustersCache = cms.EDProducer(
'SiPixelClusterShapeCacheProducer',
488 src = cms.InputTag(
'hltSiPixelClusters'),
489 onDemand = cms.bool(
False)
501 process.hltSiPixelDigiErrors = cms.EDProducer(
'SiPixelDigiErrorsFromSoAAlpaka',
502 digiErrorSoASrc = cms.InputTag(
'hltSiPixelClustersSoA'),
503 fmtErrorsSoASrc = cms.InputTag(
'hltSiPixelClustersSoA'),
504 CablingMapLabel = cms.string(
''),
505 UsePhase1 = cms.bool(
True),
506 ErrorList = cms.vint32(29),
507 UserErrorList = cms.vint32(40)
510 if hasattr(process,
'hltSiPixelDigisSoA'):
511 del process.hltSiPixelDigisSoA
512 if hasattr(process,
'hltSiPixelDigiErrorsSoA'):
513 del process.hltSiPixelDigiErrorsSoA
522 process.hltSiPixelRecHitsSoA = cms.EDProducer(
'SiPixelRecHitAlpakaPhase1@alpaka',
523 beamSpot = cms.InputTag(
'hltOnlineBeamSpotDevice'),
524 src = cms.InputTag(
'hltSiPixelClustersSoA'),
525 CPE = cms.string(
'PixelCPEFastParams'),
527 alpaka = cms.untracked.PSet(
528 backend = cms.untracked.string(
'')
532 if hasattr(process,
'hltSiPixelRecHitsGPU'):
533 del process.hltSiPixelRecHitsGPU
534 if hasattr(process,
'hltSiPixelRecHitsFromGPU'):
535 del process.hltSiPixelRecHitsFromGPU
536 if hasattr(process,
'hltSiPixelRecHitsSoAFromGPU'):
537 del process.hltSiPixelRecHitsSoAFromGPU
539 process.hltSiPixelRecHits = cms.EDProducer(
'SiPixelRecHitFromSoAAlpakaPhase1',
540 pixelRecHitSrc = cms.InputTag(
'hltSiPixelRecHitsSoA'),
541 src = cms.InputTag(
'hltSiPixelClusters'),
547 process.HLTDoLocalPixelSequence = cms.Sequence(
548 process.hltOnlineBeamSpotDevice +
549 process.hltSiPixelClustersSoA +
550 process.hltSiPixelClusters +
551 process.hltSiPixelDigiErrors +
552 process.hltSiPixelRecHitsSoA +
553 process.hltSiPixelRecHits
568 if hasattr(process,
'HLTPixelClusterSplittingForPFPPRefForDmeson') \
569 and not hasattr(process,
'HLTDoLocalPixelSequenceForPFPPRefForDmeson') \
570 and process.HLTPixelClusterSplittingForPFPPRefForDmeson.contains(process.HLTDoLocalPixelSequence):
572 process.HLTDoLocalPixelSequenceForPFPPRefForDmeson = cms.Sequence(
573 process.HLTDoLocalPixelSequence +
574 process.hltSiPixelClustersCache
577 process.HLTPixelClusterSplittingForPFPPRefForDmeson.insert(
578 process.HLTPixelClusterSplittingForPFPPRefForDmeson.index(process.HLTDoLocalPixelSequence),
579 process.HLTDoLocalPixelSequenceForPFPPRefForDmeson
583 if hasattr(process,
'HLTDoLocalPixelTask'):
584 del process.HLTDoLocalPixelTask
589 process.hltOnlineBeamSpotDeviceSerialSync =
makeSerialClone(process.hltOnlineBeamSpotDevice)
591 process.hltSiPixelClustersSoASerialSync =
makeSerialClone(process.hltSiPixelClustersSoA)
593 process.hltSiPixelClustersSerialSync = process.hltSiPixelClusters.clone(
594 src =
'hltSiPixelClustersSoASerialSync' 597 process.hltSiPixelDigiErrorsSerialSync = process.hltSiPixelDigiErrors.clone(
598 digiErrorSoASrc =
'hltSiPixelClustersSoASerialSync',
599 fmtErrorsSoASrc =
'hltSiPixelClustersSoASerialSync',
602 process.hltSiPixelRecHitsSoASerialSync =
makeSerialClone(process.hltSiPixelRecHitsSoA,
603 beamSpot =
'hltOnlineBeamSpotDeviceSerialSync',
604 src =
'hltSiPixelClustersSoASerialSync',
607 process.hltSiPixelRecHitsSerialSync = process.hltSiPixelRecHits.clone(
608 pixelRecHitSrc =
'hltSiPixelRecHitsSoASerialSync',
609 src =
'hltSiPixelClustersSerialSync',
612 process.HLTDoLocalPixelCPUOnlySequence = cms.Sequence(
613 process.hltOnlineBeamSpotDeviceSerialSync +
614 process.hltSiPixelClustersSoASerialSync +
615 process.hltSiPixelClustersSerialSync +
616 process.hltSiPixelDigiErrorsSerialSync +
617 process.hltSiPixelRecHitsSoASerialSync +
618 process.hltSiPixelRecHitsSerialSync
621 if hasattr(process,
'HLTDoLocalPixelCPUOnlyTask'):
622 del process.HLTDoLocalPixelCPUOnlyTask
624 if hasattr(process,
'hltMeasurementTrackerEventCPUOnly'):
625 process.hltMeasurementTrackerEventCPUOnly.pixelClusterProducer =
"hltSiPixelClustersSerialSync" 626 process.hltMeasurementTrackerEventCPUOnly.inactivePixelDetectorLabels = [
"hltSiPixelDigiErrorsSerialSync"]
627 process.hltMeasurementTrackerEventCPUOnly.badPixelFEDChannelCollectionLabels = [
"hltSiPixelDigiErrorsSerialSync"]
629 if hasattr(process,
'hltDoubletRecoveryClustersRefRemovalCPUOnly'):
630 process.hltDoubletRecoveryClustersRefRemovalCPUOnly.pixelClusters =
"hltSiPixelClustersSerialSync" 632 if hasattr(process,
'hltDoubletRecoveryPFlowPixelClusterCheckCPUOnly'):
633 process.hltDoubletRecoveryPFlowPixelClusterCheckCPUOnly.PixelClusterCollectionLabel =
"hltSiPixelClustersSerialSync" 635 if hasattr(process,
'hltDoubletRecoveryPixelLayersAndRegionsCPUOnly'):
636 process.hltDoubletRecoveryPixelLayersAndRegionsCPUOnly.inactivePixelDetectorLabels = [
'hltSiPixelDigiErrorsSerialSync']
637 process.hltDoubletRecoveryPixelLayersAndRegionsCPUOnly.badPixelFEDChannelCollectionLabels = [
'hltSiPixelDigiErrorsSerialSync']
638 process.hltDoubletRecoveryPixelLayersAndRegionsCPUOnly.BPix.HitProducer =
"hltSiPixelRecHitsSerialSync" 639 process.hltDoubletRecoveryPixelLayersAndRegionsCPUOnly.FPix.HitProducer =
"hltSiPixelRecHitsSerialSync" 641 if hasattr(process,
'hltIter3IterL3FromL1MuonClustersRefRemovalCPUOnly'):
642 process.hltIter3IterL3FromL1MuonClustersRefRemovalCPUOnly.pixelClusters =
"hltSiPixelClustersSerialSync" 644 if hasattr(process,
'hltIter3IterL3FromL1MuonPixelClusterCheckCPUOnly'):
645 process.hltIter3IterL3FromL1MuonPixelClusterCheckCPUOnly.PixelClusterCollectionLabel =
"hltSiPixelClustersSerialSync" 647 if hasattr(process,
'hltIter3IterL3FromL1MuonPixelLayersAndRegionsCPUOnly'):
648 process.hltIter3IterL3FromL1MuonPixelLayersAndRegionsCPUOnly.inactivePixelDetectorLabels = [
'hltSiPixelDigiErrorsSerialSync']
649 process.hltIter3IterL3FromL1MuonPixelLayersAndRegionsCPUOnly.badPixelFEDChannelCollectionLabels = [
'hltSiPixelDigiErrorsSerialSync']
650 process.hltIter3IterL3FromL1MuonPixelLayersAndRegionsCPUOnly.BPix.HitProducer =
"hltSiPixelRecHitsSerialSync" 651 process.hltIter3IterL3FromL1MuonPixelLayersAndRegionsCPUOnly.FPix.HitProducer =
"hltSiPixelRecHitsSerialSync" 654 'hltDoubletRecoveryPixelLayersAndRegions',
655 'hltFullIter6PixelTrackingRegionSeedLayersBPPRef',
656 'hltIter3IterL3FromL1MuonPixelLayersAndRegions',
657 'hltMeasurementTrackerEvent',
659 if hasattr(process, modLabel):
660 mod = getattr(process, modLabel)
661 mod.inactivePixelDetectorLabels = [
'hltSiPixelDigiErrors']
662 mod.badPixelFEDChannelCollectionLabels = [
'hltSiPixelDigiErrors']
668 '''Customisation to introduce the Pixel-Track Reconstruction in Alpaka 671 if not hasattr(process,
'HLTRecoPixelTracksSequence'):
682 process.hltPixelTracksSoA = cms.EDProducer(
'CAHitNtupletAlpakaPhase1@alpaka',
683 pixelRecHitSrc = cms.InputTag(
'hltSiPixelRecHitsSoA'),
684 CPE = cms.string(
'PixelCPEFastParams'),
685 ptmin = cms.double(0.9),
686 CAThetaCutBarrel = cms.double(0.002),
687 CAThetaCutForward = cms.double(0.003),
688 hardCurvCut = cms.double(0.0328407225),
689 dcaCutInnerTriplet = cms.double(0.15),
690 dcaCutOuterTriplet = cms.double(0.25),
691 earlyFishbone = cms.bool(
True),
692 lateFishbone = cms.bool(
False),
693 fillStatistics = cms.bool(
False),
694 minHitsPerNtuplet = cms.uint32(3),
695 phiCuts = cms.vint32(
696 522, 730, 730, 522, 626,
697 626, 522, 522, 626, 626,
698 626, 522, 522, 522, 522,
701 maxNumberOfDoublets = cms.uint32(524288),
702 minHitsForSharingCut = cms.uint32(10),
703 fitNas4 = cms.bool(
False),
704 doClusterCut = cms.bool(
True),
705 doZ0Cut = cms.bool(
True),
706 doPtCut = cms.bool(
True),
707 useRiemannFit = cms.bool(
False),
708 doSharedHitCut = cms.bool(
True),
709 dupPassThrough = cms.bool(
False),
710 useSimpleTripletCleaner = cms.bool(
True),
711 idealConditions = cms.bool(
False),
712 includeJumpingForwardDoublets = cms.bool(
True),
713 trackQualityCuts = cms.PSet(
714 chi2MaxPt = cms.double(10),
715 chi2Coeff = cms.vdouble(0.9, 1.8),
716 chi2Scale = cms.double(8),
717 tripletMinPt = cms.double(0.5),
718 tripletMaxTip = cms.double(0.3),
719 tripletMaxZip = cms.double(12),
720 quadrupletMinPt = cms.double(0.3),
721 quadrupletMaxTip = cms.double(0.5),
722 quadrupletMaxZip = cms.double(12)
725 alpaka = cms.untracked.PSet(
726 backend = cms.untracked.string(
'')
730 if hasattr(process,
'hltL2TauTagNNProducer'):
731 process.hltL2TauTagNNProducer = cms.EDProducer(
"L2TauNNProducerAlpaka", **process.hltL2TauTagNNProducer.parameters_())
733 process.hltPixelTracksSoASerialSync =
makeSerialClone(process.hltPixelTracksSoA,
734 pixelRecHitSrc =
'hltSiPixelRecHitsSoASerialSync' 737 process.hltPixelTracks = cms.EDProducer(
"PixelTrackProducerFromSoAAlpakaPhase1",
738 beamSpot = cms.InputTag(
"hltOnlineBeamSpot"),
739 minNumberOfHits = cms.int32(0),
740 minQuality = cms.string(
'loose'),
741 pixelRecHitLegacySrc = cms.InputTag(
"hltSiPixelRecHits"),
742 trackSrc = cms.InputTag(
"hltPixelTracksSoA")
745 if hasattr(process,
'hltPixelTracksCPU'):
746 del process.hltPixelTracksCPU
747 if hasattr(process,
'hltPixelTracksCPUOnly'):
748 del process.hltPixelTracksCPUOnly
749 if hasattr(process,
'hltPixelTracksFromGPU'):
750 del process.hltPixelTracksFromGPU
751 if hasattr(process,
'hltPixelTracksGPU'):
752 del process.hltPixelTracksGPU
754 process.hltPixelTracksSerialSync = process.hltPixelTracks.clone(
755 pixelRecHitLegacySrc = cms.InputTag(
"hltSiPixelRecHitsSerialSync"),
756 trackSrc = cms.InputTag(
"hltPixelTracksSoASerialSync")
759 process.HLTRecoPixelTracksSequence = cms.Sequence(
760 process.hltPixelTracksSoA +
761 process.hltPixelTracks
764 if hasattr(process,
'HLTRecoPixelTracksTask'):
765 del process.HLTRecoPixelTracksTask
767 process.HLTRecoPixelTracksSerialSyncSequence = cms.Sequence(
768 process.hltPixelTracksSoASerialSync +
769 process.hltPixelTracksSerialSync
772 if hasattr(process,
'HLTRecoPixelTracksCPUOnlyTask'):
773 del process.HLTRecoPixelTracksCPUOnlyTask
775 process.hltPixelTracksInRegionL2CPUOnly.tracks =
"hltPixelTracksSerialSync" 777 process.hltPixelTracksInRegionL1CPUOnly.tracks =
"hltPixelTracksSerialSync" 779 process.hltIter0PFLowPixelSeedsFromPixelTracksCPUOnly.InputCollection =
"hltPixelTracksSerialSync" 785 '''Customisation to introduce the Pixel-Vertex Reconstruction in Alpaka 788 if not hasattr(process,
'HLTRecopixelvertexingSequence'):
792 for prod
in producers_by_type(process,
'PixelVertexProducerAlpakaPhase1@alpaka'):
800 process.hltPixelVerticesSoA = cms.EDProducer(
'PixelVertexProducerAlpakaPhase1@alpaka',
801 oneKernel = cms.bool(
True),
802 useDensity = cms.bool(
True),
803 useDBSCAN = cms.bool(
False),
804 useIterative = cms.bool(
False),
806 eps = cms.double(0.07),
807 errmax = cms.double(0.01),
808 chi2max = cms.double(9),
809 PtMin = cms.double(0.5),
810 PtMax = cms.double(75),
811 pixelTrackSrc = cms.InputTag(
'hltPixelTracksSoA'),
813 alpaka = cms.untracked.PSet(
814 backend = cms.untracked.string(
'')
818 process.hltPixelVerticesSoASerialSync =
makeSerialClone(process.hltPixelVerticesSoA,
819 pixelTrackSrc =
'hltPixelTracksSoASerialSync' 822 process.hltPixelVertices = cms.EDProducer(
"PixelVertexProducerFromSoAAlpaka",
823 TrackCollection = cms.InputTag(
"hltPixelTracks"),
824 beamSpot = cms.InputTag(
"hltOnlineBeamSpot"),
825 src = cms.InputTag(
"hltPixelVerticesSoA")
828 process.hltPixelVerticesSerialSync = process.hltPixelVertices.clone(
829 TrackCollection = cms.InputTag(
"hltPixelTracksSerialSync"),
830 src = cms.InputTag(
"hltPixelVerticesSoASerialSync")
833 if hasattr(process,
'hltPixelVerticesCPU'):
834 del process.hltPixelVerticesCPU
835 if hasattr(process,
'hltPixelVerticesCPUOnly'):
836 del process.hltPixelVerticesCPUOnly
837 if hasattr(process,
'hltPixelVerticesFromGPU'):
838 del process.hltPixelVerticesFromGPU
839 if hasattr(process,
'hltPixelVerticesGPU'):
840 del process.hltPixelVerticesGPU
843 if not hasattr(process,
'hltTrimmedPixelVertices'):
846 process.HLTRecopixelvertexingSequence = cms.Sequence(
847 process.HLTRecoPixelTracksSequence +
848 process.hltPixelVerticesSoA +
849 process.hltPixelVertices +
850 process.hltTrimmedPixelVertices
853 if hasattr(process,
'HLTRecopixelvertexingTask'):
854 del process.HLTRecopixelvertexingTask
856 process.HLTRecopixelvertexingCPUOnlySequence = cms.Sequence(
857 process.HLTRecoPixelTracksSerialSyncSequence +
858 process.hltPixelVerticesSoASerialSync +
859 process.hltPixelVerticesSerialSync +
860 process.hltTrimmedPixelVerticesCPUOnly
863 if hasattr(process,
'HLTRecopixelvertexingCPUOnlyTask'):
864 del process.HLTRecopixelvertexingCPUOnlyTask
866 process.hltTrimmedPixelVerticesCPUOnly.src =
'hltPixelVerticesSerialSync' 867 process.hltParticleFlowCPUOnly.vertexCollection =
'hltPixelVerticesSerialSync' 868 process.hltAK4PFJetsCPUOnly.srcPVs =
'hltPixelVerticesSerialSync' 874 '''Customisation to introduce the Pixel Local+Track+Vertex Reconstruction in Alpaka 887 if not hasattr(process,
'hltEcalDigisGPU'):
894 for foo
in [foo
for foo
in process.es_producers_()
if (
'ecal' in foo
and 'GPU' in foo)]:
895 process.__delattr__(foo)
897 for foo
in [foo
for foo
in process.es_sources_()
if (
'ecal' in foo
and 'GPU' in foo)]:
898 process.__delattr__(foo)
901 process.hltEcalDigisPortableSoA = cms.EDProducer(
"EcalRawToDigiPortable@alpaka",
902 FEDs = process.hltEcalDigisGPU.FEDs,
903 InputLabel = process.hltEcalDigisGPU.InputLabel,
904 digisLabelEB = process.hltEcalDigisGPU.digisLabelEB,
905 digisLabelEE = process.hltEcalDigisGPU.digisLabelEE,
906 maxChannelsEB = process.hltEcalDigisGPU.maxChannelsEB,
907 maxChannelsEE = process.hltEcalDigisGPU.maxChannelsEE,
909 alpaka = cms.untracked.PSet(
910 backend = cms.untracked.string(
'')
914 from EventFilter.EcalRawToDigi.ecalElectronicsMappingHostESProducer_cfi
import ecalElectronicsMappingHostESProducer
as _ecalElectronicsMappingHostESProducer
915 process.ecalElectronicsMappingHostESProducer = _ecalElectronicsMappingHostESProducer.clone()
917 process.hltEcalDigis = cms.EDProducer(
"EcalDigisFromPortableProducer",
918 digisInLabelEB = cms.InputTag(
'hltEcalDigisPortableSoA',
'ebDigis'),
919 digisInLabelEE = cms.InputTag(
'hltEcalDigisPortableSoA',
'eeDigis'),
920 digisOutLabelEB = cms.string(
"ebDigis"),
921 digisOutLabelEE = cms.string(
"eeDigis"),
922 produceDummyIntegrityCollections = cms.bool(
False)
925 process.hltEcalUncalibRecHitPortableSoA = cms.EDProducer(
"EcalUncalibRecHitProducerPortable@alpaka",
926 EBtimeConstantTerm = process.hltEcalUncalibRecHitGPU.EBtimeConstantTerm,
927 EBtimeFitLimits_Lower = process.hltEcalUncalibRecHitGPU.EBtimeFitLimits_Lower,
928 EBtimeFitLimits_Upper = process.hltEcalUncalibRecHitGPU.EBtimeFitLimits_Upper,
929 EBtimeNconst = process.hltEcalUncalibRecHitGPU.EBtimeNconst,
930 EEtimeConstantTerm = process.hltEcalUncalibRecHitGPU.EEtimeConstantTerm,
931 EEtimeFitLimits_Lower = process.hltEcalUncalibRecHitGPU.EEtimeFitLimits_Lower,
932 EEtimeFitLimits_Upper = process.hltEcalUncalibRecHitGPU.EEtimeFitLimits_Upper,
933 EEtimeNconst = process.hltEcalUncalibRecHitGPU.EEtimeNconst,
934 amplitudeThresholdEB = process.hltEcalUncalibRecHitGPU.amplitudeThresholdEB,
935 amplitudeThresholdEE = process.hltEcalUncalibRecHitGPU.amplitudeThresholdEE,
936 digisLabelEB = cms.InputTag(
"hltEcalDigisPortableSoA",
"ebDigis"),
937 digisLabelEE = cms.InputTag(
"hltEcalDigisPortableSoA",
"eeDigis"),
938 kernelMinimizeThreads = process.hltEcalUncalibRecHitGPU.kernelMinimizeThreads,
939 outOfTimeThresholdGain12mEB = process.hltEcalUncalibRecHitGPU.outOfTimeThresholdGain12mEB,
940 outOfTimeThresholdGain12mEE = process.hltEcalUncalibRecHitGPU.outOfTimeThresholdGain12mEE,
941 outOfTimeThresholdGain12pEB = process.hltEcalUncalibRecHitGPU.outOfTimeThresholdGain12pEB,
942 outOfTimeThresholdGain12pEE = process.hltEcalUncalibRecHitGPU.outOfTimeThresholdGain12pEE,
943 outOfTimeThresholdGain61mEB = process.hltEcalUncalibRecHitGPU.outOfTimeThresholdGain61mEB,
944 outOfTimeThresholdGain61mEE = process.hltEcalUncalibRecHitGPU.outOfTimeThresholdGain61mEE,
945 outOfTimeThresholdGain61pEB = process.hltEcalUncalibRecHitGPU.outOfTimeThresholdGain61pEB,
946 outOfTimeThresholdGain61pEE = process.hltEcalUncalibRecHitGPU.outOfTimeThresholdGain61pEE,
947 recHitsLabelEB = process.hltEcalUncalibRecHitGPU.recHitsLabelEB,
948 recHitsLabelEE = process.hltEcalUncalibRecHitGPU.recHitsLabelEE,
949 shouldRunTimingComputation = process.hltEcalUncalibRecHitGPU.shouldRunTimingComputation,
951 alpaka = cms.untracked.PSet(
952 backend = cms.untracked.string(
'')
956 if hasattr(process,
'hltEcalUncalibRecHitGPU'):
957 del process.hltEcalUncalibRecHitGPU
959 process.ecalMultifitParametersSource = cms.ESSource(
"EmptyESSource",
960 firstValid = cms.vuint32(1),
961 iovIsRunNotTime = cms.bool(
True),
962 recordName = cms.string(
'EcalMultifitParametersRcd')
965 from RecoLocalCalo.EcalRecProducers.ecalMultifitConditionsHostESProducer_cfi
import ecalMultifitConditionsHostESProducer
as _ecalMultifitConditionsHostESProducer
966 process.ecalMultifitConditionsHostESProducer = _ecalMultifitConditionsHostESProducer.clone()
968 from RecoLocalCalo.EcalRecProducers.ecalMultifitParametersHostESProducer_cfi
import ecalMultifitParametersHostESProducer
as _ecalMultifitParametersHostESProducer
969 process.ecalMultifitParametersHostESProducer = _ecalMultifitParametersHostESProducer.clone()
971 process.hltEcalUncalibRecHit = cms.EDProducer(
"EcalUncalibRecHitSoAToLegacy",
972 isPhase2 = process.hltEcalUncalibRecHitFromSoA.isPhase2,
973 recHitsLabelCPUEB = process.hltEcalUncalibRecHitFromSoA.recHitsLabelCPUEB,
974 recHitsLabelCPUEE = process.hltEcalUncalibRecHitFromSoA.recHitsLabelCPUEE,
975 uncalibRecHitsPortableEB = cms.InputTag(
"hltEcalUncalibRecHitPortableSoA",
"EcalUncalibRecHitsEB"),
976 uncalibRecHitsPortableEE = cms.InputTag(
"hltEcalUncalibRecHitPortableSoA",
"EcalUncalibRecHitsEE")
979 if hasattr(process,
'hltEcalUncalibRecHitSoA'):
980 delattr(process,
'hltEcalUncalibRecHitSoA')
982 process.hltEcalDetIdToBeRecovered = cms.EDProducer(
"EcalDetIdToBeRecoveredProducer",
983 integrityBlockSizeErrors = cms.InputTag(
'hltEcalDigisLegacy',
'EcalIntegrityBlockSizeErrors'),
984 integrityTTIdErrors = cms.InputTag(
'hltEcalDigisLegacy',
'EcalIntegrityTTIdErrors'),
986 ebIntegrityGainErrors = cms.InputTag(
'hltEcalDigisLegacy',
'EcalIntegrityGainErrors'),
987 eeIntegrityGainErrors = cms.InputTag(
'hltEcalDigisLegacy',
'EcalIntegrityGainErrors'),
989 ebIntegrityGainSwitchErrors = cms.InputTag(
'hltEcalDigisLegacy',
'EcalIntegrityGainSwitchErrors'),
990 eeIntegrityGainSwitchErrors = cms.InputTag(
'hltEcalDigisLegacy',
'EcalIntegrityGainSwitchErrors'),
992 ebIntegrityChIdErrors = cms.InputTag(
'hltEcalDigisLegacy',
'EcalIntegrityChIdErrors'),
993 eeIntegrityChIdErrors = cms.InputTag(
'hltEcalDigisLegacy',
'EcalIntegrityChIdErrors'),
995 ebSrFlagCollection = cms.InputTag(
"hltEcalDigisLegacy"),
996 eeSrFlagCollection = cms.InputTag(
"hltEcalDigisLegacy"),
998 ebDetIdToBeRecovered = cms.string(
"ebDetId"),
999 eeDetIdToBeRecovered = cms.string(
"eeDetId"),
1001 ebFEToBeRecovered = cms.string(
"ebFE"),
1002 eeFEToBeRecovered = cms.string(
"eeFE"),
1005 process.hltEcalRecHit.triggerPrimitiveDigiCollection =
'hltEcalDigisLegacy:EcalTriggerPrimitives' 1007 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence = cms.Sequence(
1008 process.hltEcalDigisLegacy +
1009 process.hltEcalDigisPortableSoA +
1010 process.hltEcalDigis +
1011 process.hltEcalUncalibRecHitPortableSoA +
1012 process.hltEcalUncalibRecHit +
1013 process.hltEcalDetIdToBeRecovered +
1014 process.hltEcalRecHit
1017 process.HLTPreshowerSequence = cms.Sequence(process.hltEcalPreshowerDigis + process.hltEcalPreshowerRecHit)
1019 process.HLTDoFullUnpackingEgammaEcalSequence = cms.Sequence(
1020 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence +
1021 process.HLTPreshowerSequence
1024 process.HLTDoFullUnpackingEgammaEcalMFSequence = cms.Sequence(process.HLTDoFullUnpackingEgammaEcalSequence)
1026 process.hltEcalDigisCPUSerialSoA =
makeSerialClone(process.hltEcalDigisPortableSoA)
1028 process.hltEcalDigisCPUSerial = process.hltEcalDigis.clone(
1029 digisInLabelEB =
'hltEcalDigisCPUSerialSoA:ebDigis',
1030 digisInLabelEE =
'hltEcalDigisCPUSerialSoA:eeDigis',
1033 process.hltEcalUncalibRecHitCPUSerialSoA =
makeSerialClone(process.hltEcalUncalibRecHitPortableSoA,
1034 digisLabelEB =
"hltEcalDigisCPUSerialSoA:ebDigis",
1035 digisLabelEE =
"hltEcalDigisCPUSerialSoA:eeDigis",
1038 process.hltEcalUncalibRecHitCPUSerial = process.hltEcalUncalibRecHit.clone(
1039 uncalibRecHitsPortableEB =
"hltEcalUncalibRecHitCPUSerialSoA:EcalUncalibRecHitsEB",
1040 uncalibRecHitsPortableEE =
"hltEcalUncalibRecHitCPUSerialSoA:EcalUncalibRecHitsEE",
1043 process.hltEcalRecHitCPUOnly = process.hltEcalRecHit.clone(
1044 EBuncalibRecHitCollection =
'hltEcalUncalibRecHitCPUSerial:EcalUncalibRecHitsEB',
1045 EEuncalibRecHitCollection =
'hltEcalUncalibRecHitCPUSerial:EcalUncalibRecHitsEE',
1048 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerCPUOnlySequence = cms.Sequence(
1049 process.hltEcalDigisLegacy +
1050 process.hltEcalDigisCPUSerialSoA +
1051 process.hltEcalDigisCPUSerial +
1052 process.hltEcalUncalibRecHitCPUSerialSoA +
1053 process.hltEcalUncalibRecHitCPUSerial +
1054 process.hltEcalDetIdToBeRecovered +
1055 process.hltEcalRecHitCPUOnly
1059 prod.srFlagsIn =
'hltEcalDigisLegacy' 1063 prod.energyCorrector.ebSrFlagLabel =
'hltEcalDigisLegacy' 1064 prod.energyCorrector.eeSrFlagLabel =
'hltEcalDigisLegacy' 1068 for pathNameMatch
in [
'DQM_EcalReconstruction_v',
'DQM_HIEcalReconstruction_v']:
1069 dqmEcalRecoPathName =
None 1070 for pathName
in process.paths_():
1071 if pathName.startswith(pathNameMatch):
1072 dqmEcalRecoPath = getattr(process, pathName)
1073 dqmEcalRecoPath.insert(dqmEcalRecoPath.index(process.HLTEndSequence), getattr(process,
'HLTDoFullUnpackingEgammaEcalWithoutPreshowerCPUOnlySequence'))
1074 for delmod
in [
'hltEcalConsumerCPU',
'hltEcalConsumerGPU']:
1075 if hasattr(process, delmod):
1076 process.__delattr__(delmod)
1078 for hltOutModMatch
in [
'hltOutputDQMGPUvsCPU',
'hltOutputHIDQMGPUvsCPU']:
1079 if hasattr(process, hltOutModMatch):
1080 outMod = getattr(process, hltOutModMatch)
1081 outCmds_new = [foo
for foo
in outMod.outputCommands
if 'Ecal' not in foo]
1083 'keep *_hltEcalDigis_*_*',
1084 'keep *_hltEcalDigisCPUSerial_*_*',
1085 'keep *_hltEcalUncalibRecHit_*_*',
1086 'keep *_hltEcalUncalibRecHitCPUSerial_*_*',
1088 outMod.outputCommands = outCmds_new[:]
1095 if not hasattr(process,
'statusOnGPU'):
1098 process.hltBackend = cms.EDProducer(
'AlpakaBackendProducer@alpaka')
1102 del process.statusOnGPU
1104 process.hltStatusOnGPUFilter = cms.EDFilter(
'AlpakaBackendFilter',
1105 producer = cms.InputTag(
'hltBackend',
'backend'),
1106 backends = cms.vstring(
'CudaAsync',
'ROCmAsync')
1112 del process.statusOnGPUFilter
1118 for container
in itertools.chain(
1119 process.sequences_().
values(),
1120 process.paths_().
values(),
1121 process.endpaths_().
values()
1123 if target.label()
in [bar
for foo,bar
in container.directDependencies()]:
1125 position = container.index(target)
1126 container.insert(position, obj)
1127 container.remove(target)
1129 container.associate(obj)
1130 container.remove(target)
1132 for container
in itertools.chain(
1133 process.tasks_().
values(),
1134 process.conditionaltasks_().
values(),
1136 if target.label()
in [bar
for foo,bar
in container.directDependencies()]:
1138 container.remove(target)
1143 if not hasattr(process, oldModuleLabel)
or hasattr(process, newModuleLabel)
or oldModuleLabel == newModuleLabel:
1145 oldObj = getattr(process, oldModuleLabel)
1146 if oldObj.type_()
in typeBlackList:
1148 setattr(process, newModuleLabel, oldObj.clone())
1149 newObj = getattr(process, newModuleLabel)
1151 process.__delattr__(oldModuleLabel)
1152 process =
massReplaceInputTag(process, oldModuleLabel, newModuleLabel,
False,
True,
False)
1153 for outputModuleLabel
in process.outputModules_():
1154 outputModule = getattr(process, outputModuleLabel)
1155 if not hasattr(outputModule,
'outputCommands'):
1157 for outputCmdIdx, outputCmd
in enumerate(outputModule.outputCommands):
1158 outputModule.outputCommands[outputCmdIdx] = outputCmd.replace(f
'_{oldModuleLabel}_', f
'_{newModuleLabel}_')
1162 for moduleDict
in [process.producers_(), process.filters_(), process.analyzers_()]:
1163 moduleLabels = list(moduleDict.keys())
1164 for moduleLabel
in moduleLabels:
1165 if bool(re.match(matchExpr, moduleLabel)):
1166 moduleLabelNew = moduleLabel.replace(oldStr,
'') + newStr
1167 process =
_rename_edmodule(process, moduleLabel, moduleLabelNew, typeBlackList)
1171 if not hasattr(process, oldContainerLabel)
or hasattr(process, newContainerLabel)
or oldContainerLabel == newContainerLabel:
1173 oldObj = getattr(process, oldContainerLabel)
1174 setattr(process, newContainerLabel, oldObj.copy())
1175 newObj = getattr(process, newContainerLabel)
1177 process.__delattr__(oldContainerLabel)
1181 for containerName
in itertools.chain(
1182 process.sequences_().
keys(),
1183 process.tasks_().
keys(),
1184 process.conditionaltasks_().
keys()
1186 if bool(re.match(matchExpr, containerName)):
1187 containerNameNew = containerName.replace(oldStr,
'') + newStr
1194 for matchRegex, oldStr, newStr
in [
1195 [
".*Portable.*",
"Portable",
""],
1196 [
".*SerialSync.*",
"SerialSync",
"SerialSync"],
1197 [
".*CPUSerial.*",
"CPUSerial",
"SerialSync"],
1198 [
".*CPUOnly.*",
"CPUOnly",
"SerialSync"],
1200 process =
_rename_edmodules(process, matchRegex, oldStr, newStr, [
'HLTPrescaler'])
1207 process.load(
'Configuration.StandardSequences.Accelerators_cff')
def customizeHLTforDQMGPUvsCPUPixel(process)
Pixel HLT in Alpaka.
def customizeHLTforAlpaka(process)
def producers_by_type(process, types)
def customizeHLTforAlpakaPixelRecoVertexing(process)
def makeSerialClone(module, kwargs)
def _rename_containers(process, matchExpr, oldStr, newStr)
def _replace_object(process, target, obj)
def insert_modules_before(process, target, modules)
def customizeHLTforAlpakaPixelRecoTracking(process)
def customizeHLTforAlpakaStatus(process)
def customizeHLTforAlpakaPixelRecoLocal(process)
def massReplaceInputTag(process, old="rawDataCollector", new="rawDataRepacker", verbose=False, moduleLabelOnly=False, skipLabelTest=False)
def customizeHLTforAlpakaPixelReco(process)
def customizeHLTforAlpakaEcalLocalReco(process)
ECAL HLT in Alpaka.
def customizeHLTforAlpakaRename(process)
def _rename_edmodules(process, matchExpr, oldStr, newStr, typeBlackList)
def customizeHLTforAlpakaParticleFlowClustering(process)
PF HLT in Alpaka.
def _rename_edmodule(process, oldModuleLabel, newModuleLabel, typeBlackList)
def _rename_container(process, oldContainerLabel, newContainerLabel)