2 import FWCore.ParameterSet.Config
as cms
3 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
5 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
10 import HeterogeneousCore.CUDACore.SwitchProducerCUDA
11 HeterogeneousCore.CUDACore.SwitchProducerCUDA._cuda_enabled_cached = bool(status)
16 import HeterogeneousCore.CUDACore.SwitchProducerCUDA
17 HeterogeneousCore.CUDACore.SwitchProducerCUDA._cuda_enabled_cached =
None
18 HeterogeneousCore.CUDACore.SwitchProducerCUDA._switch_cuda()
26 process.load(
"HeterogeneousCore.CUDAServices.CUDAService_cfi")
27 if 'MessageLogger' in process.__dict__:
28 process.MessageLogger.CUDAService = cms.untracked.PSet()
37 if 'hltGetConditions' in process.__dict__:
38 del process.hltGetConditions
42 cpu = cms.EDProducer(
"BooleanProducer", value = cms.bool(
False)),
43 cuda = cms.EDProducer(
"BooleanProducer", value = cms.bool(
True))
46 process.statusOnGPUFilter = cms.EDFilter(
"BooleanFilter",
47 src = cms.InputTag(
"statusOnGPU")
50 if 'Status_OnCPU' in process.__dict__:
51 replace_with(process.Status_OnCPU, cms.Path(process.statusOnGPU + ~process.statusOnGPUFilter))
53 process.Status_OnCPU = cms.Path(process.statusOnGPU + ~process.statusOnGPUFilter)
54 if process.schedule
is not None:
55 process.schedule.append(process.Status_OnCPU)
57 if 'Status_OnGPU' in process.__dict__:
58 replace_with(process.Status_OnGPU, cms.Path(process.statusOnGPU + process.statusOnGPUFilter))
60 process.Status_OnGPU = cms.Path(process.statusOnGPU + process.statusOnGPUFilter)
61 if process.schedule
is not None:
62 process.schedule.append(process.Status_OnGPU)
65 if 'hltOutputScoutingCaloMuon' in process.__dict__
and not 'hltPreScoutingCaloMuonOutputSmart' in process.__dict__:
66 process.hltPreScoutingCaloMuonOutputSmart = cms.EDFilter(
"TriggerResultsFilter",
67 l1tIgnoreMaskAndPrescale = cms.bool(
False ),
68 l1tResults = cms.InputTag(
"" ),
69 hltResults = cms.InputTag(
'TriggerResults',
'',
'@currentProcess' ),
70 triggerConditions = process.hltOutputScoutingCaloMuon.SelectEvents.SelectEvents,
71 throw = cms.bool(
True )
73 insert_modules_after(process, process.hltPreScoutingCaloMuonOutput, process.hltPreScoutingCaloMuonOutputSmart)
76 if 'hltOutputScoutingPF' in process.__dict__
and not 'hltPreScoutingPFOutputSmart' in process.__dict__:
77 process.hltPreScoutingPFOutputSmart = cms.EDFilter(
"TriggerResultsFilter",
78 l1tIgnoreMaskAndPrescale = cms.bool(
False ),
79 l1tResults = cms.InputTag(
"" ),
80 hltResults = cms.InputTag(
'TriggerResults',
'',
'@currentProcess' ),
81 triggerConditions = process.hltOutputScoutingPF.SelectEvents.SelectEvents,
82 throw = cms.bool(
True )
84 insert_modules_after(process, process.hltPreScoutingPFOutput, process.hltPreScoutingPFOutputSmart)
94 if not 'HLTDoLocalPixelSequence' in process.__dict__:
99 process.HLTDoLocalPixelSequence = cms.Sequence()
104 process.load(
"CalibTracker.SiPixelESProducers.siPixelGainCalibrationForHLTGPU_cfi")
105 process.load(
"CalibTracker.SiPixelESProducers.siPixelROCsStatusAndMappingWrapperESProducer_cfi")
106 process.load(
"RecoLocalTracker.SiPixelRecHits.PixelCPEFastESProducer_cfi")
114 from RecoVertex.BeamSpotProducer.offlineBeamSpotToCUDA_cfi
import offlineBeamSpotToCUDA
as _offlineBeamSpotToCUDA
115 process.hltOnlineBeamSpotToCUDA = _offlineBeamSpotToCUDA.clone(
116 src =
"hltOnlineBeamSpot"
120 from RecoLocalTracker.SiPixelClusterizer.siPixelRawToClusterCUDA_cfi
import siPixelRawToClusterCUDA
as _siPixelRawToClusterCUDA
121 process.hltSiPixelClustersCUDA = _siPixelRawToClusterCUDA.clone(
123 clusterThreshold_layer1 = process.hltSiPixelClusters.ClusterThreshold_L1,
124 clusterThreshold_otherLayers = process.hltSiPixelClusters.ClusterThreshold
127 run3_common.toModify(process.hltSiPixelClustersCUDA, isRun2 =
False)
130 from EventFilter.SiPixelRawToDigi.siPixelDigiErrorsSoAFromCUDA_cfi
import siPixelDigiErrorsSoAFromCUDA
as _siPixelDigiErrorsSoAFromCUDA
131 process.hltSiPixelDigiErrorsSoA = _siPixelDigiErrorsSoAFromCUDA.clone(
132 src =
"hltSiPixelClustersCUDA"
136 from EventFilter.SiPixelRawToDigi.siPixelDigisSoAFromCUDA_cfi
import siPixelDigisSoAFromCUDA
as _siPixelDigisSoAFromCUDA
137 process.hltSiPixelDigisSoA = _siPixelDigisSoAFromCUDA.clone(
138 src =
"hltSiPixelClustersCUDA"
142 process.hltSiPixelDigisLegacy = process.hltSiPixelDigis.clone()
145 from EventFilter.SiPixelRawToDigi.siPixelDigiErrorsFromSoA_cfi
import siPixelDigiErrorsFromSoA
as _siPixelDigiErrorsFromSoA
149 hltSiPixelDigisLegacy = cms.VPSet(
150 cms.PSet(type = cms.string(
"DetIdedmEDCollection")),
151 cms.PSet(type = cms.string(
"SiPixelRawDataErroredmDetSetVector")),
152 cms.PSet(type = cms.string(
"PixelFEDChanneledmNewDetSetVector"))
156 cuda = _siPixelDigiErrorsFromSoA.clone(
157 digiErrorSoASrc =
"hltSiPixelDigiErrorsSoA",
163 process.hltSiPixelClustersLegacy = process.hltSiPixelClusters.clone(
164 src =
"hltSiPixelDigisLegacy"
168 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoA_cfi
import siPixelDigisClustersFromSoA
as _siPixelDigisClustersFromSoA
172 hltSiPixelClustersLegacy = cms.VPSet(
173 cms.PSet(type = cms.string(
"SiPixelClusteredmNewDetSetVector"))
177 cuda = _siPixelDigisClustersFromSoA.clone(
178 src =
"hltSiPixelDigisSoA",
179 produceDigis =
False,
182 clusterThreshold_layer1 = process.hltSiPixelClusters.ClusterThreshold_L1,
183 clusterThreshold_otherLayers = process.hltSiPixelClusters.ClusterThreshold
188 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitCUDA_cfi
import siPixelRecHitCUDA
as _siPixelRecHitCUDA
189 process.hltSiPixelRecHitsCUDA = _siPixelRecHitCUDA.clone(
190 src =
"hltSiPixelClustersCUDA",
191 beamSpot =
"hltOnlineBeamSpotToCUDA"
195 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitSoAFromLegacy_cfi
import siPixelRecHitSoAFromLegacy
as _siPixelRecHitSoAFromLegacy
196 process.hltSiPixelRecHitSoA = _siPixelRecHitSoAFromLegacy.clone(
197 src =
"hltSiPixelClusters",
198 beamSpot =
"hltOnlineBeamSpot",
199 convertToLegacy =
True
203 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitFromCUDA_cfi
import siPixelRecHitFromCUDA
as _siPixelRecHitFromCUDA
207 hltSiPixelRecHitSoA = cms.VPSet(
208 cms.PSet(type = cms.string(
"SiPixelRecHitedmNewDetSetVector")),
209 cms.PSet(type = cms.string(
"uintAsHostProduct"))
213 cuda = _siPixelRecHitFromCUDA.clone(
214 pixelRecHitSrc =
"hltSiPixelRecHitsCUDA",
215 src =
"hltSiPixelClusters"
222 process.HLTDoLocalPixelTask = cms.Task(
223 process.hltOnlineBeamSpotToCUDA,
224 process.hltSiPixelClustersCUDA,
225 process.hltSiPixelRecHitsCUDA,
226 process.hltSiPixelDigisSoA,
227 process.hltSiPixelDigiErrorsSoA,
228 process.hltSiPixelDigisLegacy,
229 process.hltSiPixelDigis,
230 process.hltSiPixelClustersLegacy,
231 process.hltSiPixelClusters,
232 process.hltSiPixelClustersCache,
233 process.hltSiPixelRecHitSoA,
234 process.hltSiPixelRecHits)
236 process.HLTDoLocalPixelSequence = cms.Sequence(process.HLTDoLocalPixelTask)
240 for AlCaPathName
in [
'AlCa_LumiPixelsCounts_Random_v1',
'AlCa_LumiPixelsCounts_ZeroBias_v1']:
241 if AlCaPathName
in process.__dict__:
242 AlCaPath = getattr(process, AlCaPathName)
244 hasSiPixelDigis, hasSiPixelClusters =
False,
False
245 for (itemLabel, itemName)
in AlCaPath.directDependencies():
246 if itemLabel !=
'modules':
continue
247 if itemName ==
'hltSiPixelDigis': hasSiPixelDigis =
True
248 elif itemName ==
'hltSiPixelClusters': hasSiPixelClusters =
True
249 if hasSiPixelDigis
and hasSiPixelClusters:
250 AlCaPath.remove(process.hltSiPixelClusters)
251 AlCaPath.replace(process.hltSiPixelDigis, process.HLTDoLocalPixelSequence)
261 if not 'HLTRecoPixelTracksSequence' in process.__dict__:
264 hasHLTPixelVertexReco =
'HLTRecopixelvertexingSequence' in process.__dict__
268 process.HLTRecoPixelTracksSequence = cms.Sequence()
269 if hasHLTPixelVertexReco:
270 process.HLTRecopixelvertexingSequence = cms.Sequence()
278 from RecoPixelVertexing.PixelTriplets.pixelTracksCUDA_cfi
import pixelTracksCUDA
as _pixelTracksCUDA
279 process.hltPixelTracksCUDA = _pixelTracksCUDA.clone(
280 idealConditions =
False,
281 pixelRecHitSrc =
"hltSiPixelRecHitsCUDA",
285 run3_common.toModify(process.hltPixelTracksCUDA, idealConditions =
True)
288 from RecoPixelVertexing.PixelTrackFitting.pixelTracksSoA_cfi
import pixelTracksSoA
as _pixelTracksSoA
291 cpu = _pixelTracksCUDA.clone(
292 idealConditions =
False,
293 pixelRecHitSrc =
"hltSiPixelRecHitSoA",
297 cuda = _pixelTracksSoA.clone(
298 src =
"hltPixelTracksCUDA"
302 run3_common.toModify(process.hltPixelTracksSoA.cpu, idealConditions =
True)
305 from RecoPixelVertexing.PixelTrackFitting.pixelTrackProducerFromSoA_cfi
import pixelTrackProducerFromSoA
as _pixelTrackProducerFromSoA
306 process.hltPixelTracks = _pixelTrackProducerFromSoA.clone(
307 beamSpot =
"hltOnlineBeamSpot",
308 pixelRecHitLegacySrc =
"hltSiPixelRecHits",
309 trackSrc =
"hltPixelTracksSoA"
314 if hasHLTPixelVertexReco:
317 from RecoPixelVertexing.PixelVertexFinding.pixelVerticesCUDA_cfi
import pixelVerticesCUDA
as _pixelVerticesCUDA
318 process.hltPixelVerticesCUDA = _pixelVerticesCUDA.clone(
319 pixelTrackSrc =
"hltPixelTracksCUDA",
324 from RecoPixelVertexing.PixelVertexFinding.pixelVerticesSoA_cfi
import pixelVerticesSoA
as _pixelVerticesSoA
327 cpu = _pixelVerticesCUDA.clone(
328 pixelTrackSrc =
"hltPixelTracksSoA",
332 cuda = _pixelVerticesSoA.clone(
333 src =
"hltPixelVerticesCUDA"
338 from RecoPixelVertexing.PixelVertexFinding.pixelVertexFromSoA_cfi
import pixelVertexFromSoA
as _pixelVertexFromSoA
339 process.hltPixelVertices = _pixelVertexFromSoA.clone(
340 src =
"hltPixelVerticesSoA",
341 TrackCollection =
"hltPixelTracks",
342 beamSpot =
"hltOnlineBeamSpot"
348 process.HLTRecoPixelTracksTask = cms.Task(
349 process.hltPixelTracksTrackingRegions,
350 process.hltPixelTracksCUDA,
351 process.hltPixelTracksSoA,
352 process.hltPixelTracks)
355 process.HLTRecoPixelTracksSequence = cms.Sequence(process.HLTRecoPixelTracksTask)
357 if hasHLTPixelVertexReco:
358 process.HLTRecopixelvertexingTask = cms.Task(
359 process.HLTRecoPixelTracksTask,
360 process.hltPixelVerticesCUDA,
361 process.hltPixelVerticesSoA,
362 process.hltPixelVertices,
363 process.hltTrimmedPixelVertices)
365 process.HLTRecopixelvertexingSequence = cms.Sequence(
366 process.hltPixelTracksFitter +
367 process.hltPixelTracksFilter,
368 process.HLTRecopixelvertexingTask)
378 hasHLTEcalPreshowerSeq =
any(seq
in process.__dict__
for seq
in [
'HLTDoFullUnpackingEgammaEcalMFSequence',
'HLTDoFullUnpackingEgammaEcalSequence'])
379 if not (hasHLTEcalPreshowerSeq
or 'HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence' in process.__dict__):
384 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence = cms.Sequence()
385 if hasHLTEcalPreshowerSeq:
386 process.HLTDoFullUnpackingEgammaEcalMFSequence = cms.Sequence()
387 process.HLTDoFullUnpackingEgammaEcalSequence = cms.Sequence()
392 process.load(
"EventFilter.EcalRawToDigi.ecalElectronicsMappingGPUESProducer_cfi")
393 process.load(
"RecoLocalCalo.EcalRecProducers.ecalGainRatiosGPUESProducer_cfi")
394 process.load(
"RecoLocalCalo.EcalRecProducers.ecalPedestalsGPUESProducer_cfi")
395 process.load(
"RecoLocalCalo.EcalRecProducers.ecalPulseCovariancesGPUESProducer_cfi")
396 process.load(
"RecoLocalCalo.EcalRecProducers.ecalPulseShapesGPUESProducer_cfi")
397 process.load(
"RecoLocalCalo.EcalRecProducers.ecalSamplesCorrelationGPUESProducer_cfi")
398 process.load(
"RecoLocalCalo.EcalRecProducers.ecalTimeBiasCorrectionsGPUESProducer_cfi")
399 process.load(
"RecoLocalCalo.EcalRecProducers.ecalTimeCalibConstantsGPUESProducer_cfi")
400 process.load(
"RecoLocalCalo.EcalRecProducers.ecalMultifitParametersGPUESProducer_cfi")
402 process.load(
"RecoLocalCalo.EcalRecProducers.ecalRechitADCToGeVConstantGPUESProducer_cfi")
403 process.load(
"RecoLocalCalo.EcalRecProducers.ecalRechitChannelStatusGPUESProducer_cfi")
404 process.load(
"RecoLocalCalo.EcalRecProducers.ecalIntercalibConstantsGPUESProducer_cfi")
405 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLaserAPDPNRatiosGPUESProducer_cfi")
406 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLaserAPDPNRatiosRefGPUESProducer_cfi")
407 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLaserAlphasGPUESProducer_cfi")
408 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLinearCorrectionsGPUESProducer_cfi")
409 process.load(
"RecoLocalCalo.EcalRecProducers.ecalRecHitParametersGPUESProducer_cfi")
415 from EventFilter.EcalRawToDigi.ecalRawToDigiGPU_cfi
import ecalRawToDigiGPU
as _ecalRawToDigiGPU
416 process.hltEcalDigisGPU = _ecalRawToDigiGPU.clone()
419 process.hltEcalDigisLegacy = process.hltEcalDigis.clone()
420 from EventFilter.EcalRawToDigi.ecalCPUDigisProducer_cfi
import ecalCPUDigisProducer
as _ecalCPUDigisProducer
425 hltEcalDigisLegacy = cms.VPSet(
426 cms.PSet(type = cms.string(
"EBDigiCollection")),
427 cms.PSet(type = cms.string(
"EEDigiCollection")),
428 cms.PSet(type = cms.string(
"EBDetIdedmEDCollection")),
429 cms.PSet(type = cms.string(
"EEDetIdedmEDCollection")),
430 cms.PSet(type = cms.string(
"EBSrFlagsSorted")),
431 cms.PSet(type = cms.string(
"EESrFlagsSorted")),
432 cms.PSet(type = cms.string(
"EcalElectronicsIdedmEDCollection"), fromProductInstance = cms.string(
"EcalIntegrityBlockSizeErrors")),
433 cms.PSet(type = cms.string(
"EcalElectronicsIdedmEDCollection"), fromProductInstance = cms.string(
"EcalIntegrityTTIdErrors")),
434 cms.PSet(type = cms.string(
"EcalElectronicsIdedmEDCollection"), fromProductInstance = cms.string(
"EcalIntegrityZSXtalIdErrors")),
435 cms.PSet(type = cms.string(
"EcalPnDiodeDigisSorted")),
436 cms.PSet(type = cms.string(
"EcalPseudoStripInputDigisSorted"), fromProductInstance = cms.string(
"EcalPseudoStripInputs")),
437 cms.PSet(type = cms.string(
"EcalTriggerPrimitiveDigisSorted"), fromProductInstance = cms.string(
"EcalTriggerPrimitives")),
441 cuda = _ecalCPUDigisProducer.clone(
442 digisInLabelEB = (
"hltEcalDigisGPU",
"ebDigis"),
443 digisInLabelEE = (
"hltEcalDigisGPU",
"eeDigis"),
444 produceDummyIntegrityCollections = cms.bool(
True)
449 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitProducerGPU_cfi
import ecalUncalibRecHitProducerGPU
as _ecalUncalibRecHitProducerGPU
450 process.hltEcalUncalibRecHitGPU = _ecalUncalibRecHitProducerGPU.clone(
451 digisLabelEB = (
"hltEcalDigisGPU",
"ebDigis"),
452 digisLabelEE = (
"hltEcalDigisGPU",
"eeDigis"),
453 shouldRunTimingComputation =
False
457 from RecoLocalCalo.EcalRecProducers.ecalCPUUncalibRecHitProducer_cfi
import ecalCPUUncalibRecHitProducer
as _ecalCPUUncalibRecHitProducer
458 process.hltEcalUncalibRecHitSoA = _ecalCPUUncalibRecHitProducer.clone(
459 recHitsInLabelEB = (
"hltEcalUncalibRecHitGPU",
"EcalUncalibRecHitsEB"),
460 recHitsInLabelEE = (
"hltEcalUncalibRecHitGPU",
"EcalUncalibRecHitsEE"),
464 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitConvertGPU2CPUFormat_cfi
import ecalUncalibRecHitConvertGPU2CPUFormat
as _ecalUncalibRecHitConvertGPU2CPUFormat
467 cpu = process.hltEcalUncalibRecHit,
469 cuda = _ecalUncalibRecHitConvertGPU2CPUFormat.clone(
470 recHitsLabelGPUEB = (
"hltEcalUncalibRecHitSoA",
"EcalUncalibRecHitsEB"),
471 recHitsLabelGPUEE = (
"hltEcalUncalibRecHitSoA",
"EcalUncalibRecHitsEE"),
478 from RecoLocalCalo.EcalRecProducers.ecalRecHitGPU_cfi import ecalRecHitGPU as _ecalRecHitGPU
479 process.hltEcalRecHitGPU = _ecalRecHitGPU.clone(
480 uncalibrecHitsInLabelEB = ("hltEcalUncalibRecHitGPU","EcalUncalibRecHitsEB"),
481 uncalibrecHitsInLabelEE = ("hltEcalUncalibRecHitGPU","EcalUncalibRecHitsEE"),
484 from RecoLocalCalo.EcalRecProducers.ecalCPURecHitProducer_cfi import ecalCPURecHitProducer as _ecalCPURecHitProducer
485 process.hltEcalRecHitSoA = _ecalCPURecHitProducer.clone(
486 recHitsInLabelEB = ("hltEcalRecHitGPU", "EcalRecHitsEB"),
487 recHitsInLabelEE = ("hltEcalRecHitGPU", "EcalRecHitsEE"),
490 # SwitchProducer wrapping the legacy ECAL calibrated rechits producer or a converter from SoA to legacy format
491 from RecoLocalCalo.EcalRecProducers.ecalRecHitConvertGPU2CPUFormat_cfi import ecalRecHitConvertGPU2CPUFormat as _ecalRecHitConvertGPU2CPUFormat
492 process.hltEcalRecHit = SwitchProducerCUDA(
494 cpu = process.hltEcalRecHit,
495 # convert the ECAL calibrated rechits from SoA to legacy format
496 cuda = _ecalRecHitConvertGPU2CPUFormat.clone(
497 recHitsLabelGPUEB = ("hltEcalRecHitSoA", "EcalRecHitsEB"),
498 recHitsLabelGPUEE = ("hltEcalRecHitSoA", "EcalRecHitsEE"),
508 cpu = process.hltEcalRecHit.clone(
509 triggerPrimitiveDigiCollection = (
'hltEcalDigisLegacy',
'EcalTriggerPrimitives')
511 cuda = process.hltEcalRecHit.clone(
512 triggerPrimitiveDigiCollection =
'unused'
518 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask = cms.Task(
519 process.hltEcalDigisGPU,
520 process.hltEcalDigisLegacy,
521 process.hltEcalDigis,
522 process.hltEcalUncalibRecHitGPU,
523 process.hltEcalUncalibRecHitSoA,
524 process.hltEcalUncalibRecHit,
527 process.hltEcalDetIdToBeRecovered,
528 process.hltEcalRecHit)
530 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence = cms.Sequence(
531 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask)
533 if hasHLTEcalPreshowerSeq:
534 process.HLTPreshowerTask = cms.Task(
535 process.hltEcalPreshowerDigis,
536 process.hltEcalPreshowerRecHit)
538 process.HLTPreshowerSequence = cms.Sequence(process.HLTPreshowerTask)
540 process.HLTDoFullUnpackingEgammaEcalTask = cms.Task(
541 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask,
542 process.HLTPreshowerTask)
544 process.HLTDoFullUnpackingEgammaEcalSequence = cms.Sequence(
545 process.HLTDoFullUnpackingEgammaEcalTask)
547 process.HLTDoFullUnpackingEgammaEcalMFSequence = cms.Sequence(
548 process.HLTDoFullUnpackingEgammaEcalTask)
556 hasHLTDoLocalHcalSeq =
'HLTDoLocalHcalSequence' in process.__dict__
557 if not (hasHLTDoLocalHcalSeq
or 'HLTStoppedHSCPLocalHcalReco' in process.__dict__):
562 if hasHLTDoLocalHcalSeq:
563 process.HLTDoLocalHcalSequence = cms.Sequence()
564 process.HLTStoppedHSCPLocalHcalReco = cms.Sequence()
569 process.load(
"EventFilter.HcalRawToDigi.hcalElectronicsMappingGPUESProducer_cfi")
571 process.load(
"RecoLocalCalo.HcalRecProducers.hcalChannelQualityGPUESProducer_cfi")
572 process.load(
"RecoLocalCalo.HcalRecProducers.hcalGainsGPUESProducer_cfi")
573 process.load(
"RecoLocalCalo.HcalRecProducers.hcalGainWidthsGPUESProducer_cfi")
574 process.load(
"RecoLocalCalo.HcalRecProducers.hcalLUTCorrsGPUESProducer_cfi")
575 process.load(
"RecoLocalCalo.HcalRecProducers.hcalConvertedPedestalsGPUESProducer_cfi")
576 process.load(
"RecoLocalCalo.HcalRecProducers.hcalConvertedEffectivePedestalsGPUESProducer_cfi")
577 process.hcalConvertedEffectivePedestalsGPUESProducer.label0 =
"withTopoEff"
578 process.load(
"RecoLocalCalo.HcalRecProducers.hcalConvertedPedestalWidthsGPUESProducer_cfi")
579 process.load(
"RecoLocalCalo.HcalRecProducers.hcalConvertedEffectivePedestalWidthsGPUESProducer_cfi")
580 process.hcalConvertedEffectivePedestalWidthsGPUESProducer.label0 =
"withTopoEff"
581 process.hcalConvertedEffectivePedestalWidthsGPUESProducer.label1 =
"withTopoEff"
582 process.load(
"RecoLocalCalo.HcalRecProducers.hcalQIECodersGPUESProducer_cfi")
583 process.load(
"RecoLocalCalo.HcalRecProducers.hcalRecoParamsWithPulseShapesGPUESProducer_cfi")
584 process.load(
"RecoLocalCalo.HcalRecProducers.hcalRespCorrsGPUESProducer_cfi")
585 process.load(
"RecoLocalCalo.HcalRecProducers.hcalTimeCorrsGPUESProducer_cfi")
586 process.load(
"RecoLocalCalo.HcalRecProducers.hcalQIETypesGPUESProducer_cfi")
587 process.load(
"RecoLocalCalo.HcalRecProducers.hcalSiPMParametersGPUESProducer_cfi")
588 process.load(
"RecoLocalCalo.HcalRecProducers.hcalSiPMCharacteristicsGPUESProducer_cfi")
589 process.load(
"RecoLocalCalo.HcalRecProducers.hcalMahiPulseOffsetsGPUESProducer_cfi")
597 from EventFilter.HcalRawToDigi.hcalDigisProducerGPU_cfi
import hcalDigisProducerGPU
as _hcalDigisProducerGPU
598 process.hltHcalDigisGPU = _hcalDigisProducerGPU.clone(
599 hbheDigisLabel =
"hltHcalDigis",
600 qie11DigiLabel =
"hltHcalDigis",
601 digisLabelF01HE =
"",
607 from RecoLocalCalo.HcalRecProducers.hbheRecHitProducerGPU_cfi
import hbheRecHitProducerGPU
as _hbheRecHitProducerGPU
608 process.hltHbherecoGPU = _hbheRecHitProducerGPU.clone(
609 digisLabelF01HE =
"hltHcalDigisGPU",
610 digisLabelF5HB =
"hltHcalDigisGPU",
611 digisLabelF3HB =
"hltHcalDigisGPU",
612 recHitsLabelM0HBHE =
""
616 from RecoLocalCalo.HcalRecProducers.hcalCPURecHitsProducer_cfi
import hcalCPURecHitsProducer
as _hcalCPURecHitsProducer
617 process.hltHbherecoFromGPU = _hcalCPURecHitsProducer.clone(
618 recHitsM0LabelIn =
"hltHbherecoGPU",
619 recHitsM0LabelOut =
"",
620 recHitsLegacyLabelOut =
""
626 cpu = process.hltHbhereco.clone(),
629 hltHbherecoFromGPU = cms.VPSet(
630 cms.PSet(type = cms.string(
"HBHERecHitsSorted"))
637 if hasHLTDoLocalHcalSeq:
638 process.HLTDoLocalHcalTask = cms.Task(
639 process.hltHcalDigis,
640 process.hltHcalDigisGPU,
641 process.hltHbherecoGPU,
642 process.hltHbherecoFromGPU,
644 process.hltHfprereco,
648 process.HLTDoLocalHcalSequence = cms.Sequence(
649 process.HLTDoLocalHcalTask)
651 process.HLTStoppedHSCPLocalHcalRecoTask = cms.Task(
652 process.hltHcalDigis,
653 process.hltHcalDigisGPU,
654 process.hltHbherecoGPU,
655 process.hltHbherecoFromGPU,
658 process.HLTStoppedHSCPLocalHcalReco = cms.Sequence(
659 process.HLTStoppedHSCPLocalHcalRecoTask)
669 if 'hltPixelTracksCUDA' in process.__dict__:
671 process.hltPixelTracksCUDA.minHitsPerNtuplet = 3
672 process.hltPixelTracksCUDA.includeJumpingForwardDoublets =
True
674 if 'hltPixelTracksSoA' in process.__dict__:
676 process.hltPixelTracksSoA.cpu.minHitsPerNtuplet = 3
677 process.hltPixelTracksSoA.cpu.includeJumpingForwardDoublets =
True
706 process.Consumer = cms.Path(
707 process.HLTBeginSequence +
708 process.hltPixelConsumer +
709 process.hltEcalConsumer +
710 process.hltHbheConsumer,
711 process.HLTDoLocalPixelTask,
712 process.HLTRecoPixelTracksTask,
713 process.HLTRecopixelvertexingTask,
714 process.HLTDoFullUnpackingEgammaEcalTask,
715 process.HLTDoLocalHcalTask,
718 if process.schedule
is not None:
719 process.schedule.append(process.Consumer)
727 process.hltPixelConsumer = cms.EDAnalyzer(
"GenericConsumer",
728 eventProducts = cms.untracked.vstring(
'hltPixelTracksCUDA',
'hltPixelVerticesCUDA' )
732 process.hltEcalConsumer = cms.EDAnalyzer(
"GenericConsumer",
733 eventProducts = cms.untracked.vstring(
'hltEcalUncalibRecHitGPU' )
737 process.hltHbheConsumer = cms.EDAnalyzer(
"GenericConsumer",
738 eventProducts = cms.untracked.vstring(
'hltHbherecoGPU' )
750 process.hltPixelConsumer = cms.EDAnalyzer(
"GenericConsumer",
751 eventProducts = cms.untracked.vstring(
'hltPixelTracksSoA',
'hltPixelVerticesSoA' )
755 process.hltEcalConsumer = cms.EDAnalyzer(
"GenericConsumer",
756 eventProducts = cms.untracked.vstring(
'hltEcalUncalibRecHitSoA' )
760 process.hltHbheConsumer = cms.EDAnalyzer(
"GenericConsumer",
761 eventProducts = cms.untracked.vstring(
'hltHbhereco' )
772 process.hltPixelConsumer = cms.EDAnalyzer(
"GenericConsumer",
773 eventProducts = cms.untracked.vstring(
'hltPixelTracks',
'hltPixelVertices' )
777 process.hltEcalConsumer = cms.EDAnalyzer(
"GenericConsumer",
778 eventProducts = cms.untracked.vstring(
'hltEcalUncalibRecHit' )
782 process.hltHbheConsumer = cms.EDAnalyzer(
"GenericConsumer",
783 eventProducts = cms.untracked.vstring(
'hltHbhereco' )
bool any(const std::vector< T > &v, const T &what)
def customizeHLTforPatatrackTriplets
def enablePatatrackPixelTriplets
def consumeGPUSoAProducts
def consumeCPUSoAProducts
def customiseHcalLocalReconstruction
def consumeCPULegacyProducts
def customisePixelTrackReconstruction
def customiseEcalLocalReconstruction
def customisePixelLocalReconstruction
def customizeHLTforPatatrack