388 hasHLTEcalPreshowerSeq =
any(seq
in process.__dict__
for seq
in [
'HLTDoFullUnpackingEgammaEcalMFSequence',
'HLTDoFullUnpackingEgammaEcalSequence'])
389 if not (hasHLTEcalPreshowerSeq
or 'HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence' in process.__dict__):
394 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence = cms.Sequence()
395 if hasHLTEcalPreshowerSeq:
396 process.HLTDoFullUnpackingEgammaEcalMFSequence = cms.Sequence()
397 process.HLTDoFullUnpackingEgammaEcalSequence = cms.Sequence()
402 process.load(
"EventFilter.EcalRawToDigi.ecalElectronicsMappingGPUESProducer_cfi")
403 process.load(
"RecoLocalCalo.EcalRecProducers.ecalGainRatiosGPUESProducer_cfi")
404 process.load(
"RecoLocalCalo.EcalRecProducers.ecalPedestalsGPUESProducer_cfi")
405 process.load(
"RecoLocalCalo.EcalRecProducers.ecalPulseCovariancesGPUESProducer_cfi")
406 process.load(
"RecoLocalCalo.EcalRecProducers.ecalPulseShapesGPUESProducer_cfi")
407 process.load(
"RecoLocalCalo.EcalRecProducers.ecalSamplesCorrelationGPUESProducer_cfi")
408 process.load(
"RecoLocalCalo.EcalRecProducers.ecalTimeBiasCorrectionsGPUESProducer_cfi")
409 process.load(
"RecoLocalCalo.EcalRecProducers.ecalTimeCalibConstantsGPUESProducer_cfi")
410 process.load(
"RecoLocalCalo.EcalRecProducers.ecalMultifitParametersGPUESProducer_cfi")
412 process.load(
"RecoLocalCalo.EcalRecProducers.ecalRechitADCToGeVConstantGPUESProducer_cfi")
413 process.load(
"RecoLocalCalo.EcalRecProducers.ecalRechitChannelStatusGPUESProducer_cfi")
414 process.load(
"RecoLocalCalo.EcalRecProducers.ecalIntercalibConstantsGPUESProducer_cfi")
415 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLaserAPDPNRatiosGPUESProducer_cfi")
416 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLaserAPDPNRatiosRefGPUESProducer_cfi")
417 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLaserAlphasGPUESProducer_cfi")
418 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLinearCorrectionsGPUESProducer_cfi")
419 process.load(
"RecoLocalCalo.EcalRecProducers.ecalRecHitParametersGPUESProducer_cfi")
425 from EventFilter.EcalRawToDigi.ecalRawToDigiGPU_cfi
import ecalRawToDigiGPU
as _ecalRawToDigiGPU
426 process.hltEcalDigisGPU = _ecalRawToDigiGPU.clone()
429 process.hltEcalDigisLegacy = process.hltEcalDigis.clone()
430 from EventFilter.EcalRawToDigi.ecalCPUDigisProducer_cfi
import ecalCPUDigisProducer
as _ecalCPUDigisProducer
435 hltEcalDigisLegacy = cms.VPSet(
436 cms.PSet(type = cms.string(
"EBDigiCollection")),
437 cms.PSet(type = cms.string(
"EEDigiCollection")),
438 cms.PSet(type = cms.string(
"EBDetIdedmEDCollection")),
439 cms.PSet(type = cms.string(
"EEDetIdedmEDCollection")),
440 cms.PSet(type = cms.string(
"EBSrFlagsSorted")),
441 cms.PSet(type = cms.string(
"EESrFlagsSorted")),
442 cms.PSet(type = cms.string(
"EcalElectronicsIdedmEDCollection"), fromProductInstance = cms.string(
"EcalIntegrityBlockSizeErrors")),
443 cms.PSet(type = cms.string(
"EcalElectronicsIdedmEDCollection"), fromProductInstance = cms.string(
"EcalIntegrityTTIdErrors")),
444 cms.PSet(type = cms.string(
"EcalElectronicsIdedmEDCollection"), fromProductInstance = cms.string(
"EcalIntegrityZSXtalIdErrors")),
445 cms.PSet(type = cms.string(
"EcalPnDiodeDigisSorted")),
446 cms.PSet(type = cms.string(
"EcalPseudoStripInputDigisSorted"), fromProductInstance = cms.string(
"EcalPseudoStripInputs")),
447 cms.PSet(type = cms.string(
"EcalTriggerPrimitiveDigisSorted"), fromProductInstance = cms.string(
"EcalTriggerPrimitives")),
451 cuda = _ecalCPUDigisProducer.clone(
452 digisInLabelEB = (
"hltEcalDigisGPU",
"ebDigis"),
453 digisInLabelEE = (
"hltEcalDigisGPU",
"eeDigis"),
454 produceDummyIntegrityCollections = cms.bool(
True)
459 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitProducerGPU_cfi
import ecalUncalibRecHitProducerGPU
as _ecalUncalibRecHitProducerGPU
460 process.hltEcalUncalibRecHitGPU = _ecalUncalibRecHitProducerGPU.clone(
461 digisLabelEB = (
"hltEcalDigisGPU",
"ebDigis"),
462 digisLabelEE = (
"hltEcalDigisGPU",
"eeDigis"),
463 shouldRunTimingComputation =
False
467 from RecoLocalCalo.EcalRecProducers.ecalCPUUncalibRecHitProducer_cfi
import ecalCPUUncalibRecHitProducer
as _ecalCPUUncalibRecHitProducer
468 process.hltEcalUncalibRecHitSoA = _ecalCPUUncalibRecHitProducer.clone(
469 recHitsInLabelEB = (
"hltEcalUncalibRecHitGPU",
"EcalUncalibRecHitsEB"),
470 recHitsInLabelEE = (
"hltEcalUncalibRecHitGPU",
"EcalUncalibRecHitsEE"),
474 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitConvertGPU2CPUFormat_cfi
import ecalUncalibRecHitConvertGPU2CPUFormat
as _ecalUncalibRecHitConvertGPU2CPUFormat
477 cpu = process.hltEcalUncalibRecHit,
479 cuda = _ecalUncalibRecHitConvertGPU2CPUFormat.clone(
480 recHitsLabelGPUEB = (
"hltEcalUncalibRecHitSoA",
"EcalUncalibRecHitsEB"),
481 recHitsLabelGPUEE = (
"hltEcalUncalibRecHitSoA",
"EcalUncalibRecHitsEE"),
488 from RecoLocalCalo.EcalRecProducers.ecalRecHitGPU_cfi import ecalRecHitGPU as _ecalRecHitGPU
489 process.hltEcalRecHitGPU = _ecalRecHitGPU.clone(
490 uncalibrecHitsInLabelEB = ("hltEcalUncalibRecHitGPU","EcalUncalibRecHitsEB"),
491 uncalibrecHitsInLabelEE = ("hltEcalUncalibRecHitGPU","EcalUncalibRecHitsEE"),
494 from RecoLocalCalo.EcalRecProducers.ecalCPURecHitProducer_cfi import ecalCPURecHitProducer as _ecalCPURecHitProducer
495 process.hltEcalRecHitSoA = _ecalCPURecHitProducer.clone(
496 recHitsInLabelEB = ("hltEcalRecHitGPU", "EcalRecHitsEB"),
497 recHitsInLabelEE = ("hltEcalRecHitGPU", "EcalRecHitsEE"),
500 # SwitchProducer wrapping the legacy ECAL calibrated rechits producer or a converter from SoA to legacy format
501 from RecoLocalCalo.EcalRecProducers.ecalRecHitConvertGPU2CPUFormat_cfi import ecalRecHitConvertGPU2CPUFormat as _ecalRecHitConvertGPU2CPUFormat
502 process.hltEcalRecHit = SwitchProducerCUDA(
504 cpu = process.hltEcalRecHit,
505 # convert the ECAL calibrated rechits from SoA to legacy format
506 cuda = _ecalRecHitConvertGPU2CPUFormat.clone(
507 recHitsLabelGPUEB = ("hltEcalRecHitSoA", "EcalRecHitsEB"),
508 recHitsLabelGPUEE = ("hltEcalRecHitSoA", "EcalRecHitsEE"),
518 cpu = process.hltEcalRecHit.clone(
519 triggerPrimitiveDigiCollection = (
'hltEcalDigisLegacy',
'EcalTriggerPrimitives')
521 cuda = process.hltEcalRecHit.clone(
522 triggerPrimitiveDigiCollection =
'unused'
528 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask = cms.Task(
529 process.hltEcalDigisGPU,
530 process.hltEcalDigisLegacy,
531 process.hltEcalDigis,
532 process.hltEcalUncalibRecHitGPU,
533 process.hltEcalUncalibRecHitSoA,
534 process.hltEcalUncalibRecHit,
537 process.hltEcalDetIdToBeRecovered,
538 process.hltEcalRecHit)
540 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence = cms.Sequence(
541 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask)
543 if hasHLTEcalPreshowerSeq:
544 process.HLTPreshowerTask = cms.Task(
545 process.hltEcalPreshowerDigis,
546 process.hltEcalPreshowerRecHit)
548 process.HLTPreshowerSequence = cms.Sequence(process.HLTPreshowerTask)
550 process.HLTDoFullUnpackingEgammaEcalTask = cms.Task(
551 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask,
552 process.HLTPreshowerTask)
554 process.HLTDoFullUnpackingEgammaEcalSequence = cms.Sequence(
555 process.HLTDoFullUnpackingEgammaEcalTask)
557 process.HLTDoFullUnpackingEgammaEcalMFSequence = cms.Sequence(
558 process.HLTDoFullUnpackingEgammaEcalTask)