379 hasHLTEcalPreshowerSeq =
any(seq
in process.__dict__
for seq
in [
'HLTDoFullUnpackingEgammaEcalMFSequence',
'HLTDoFullUnpackingEgammaEcalSequence'])
380 if not (hasHLTEcalPreshowerSeq
or 'HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence' in process.__dict__):
385 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence = cms.Sequence()
386 if hasHLTEcalPreshowerSeq:
387 process.HLTDoFullUnpackingEgammaEcalMFSequence = cms.Sequence()
388 process.HLTDoFullUnpackingEgammaEcalSequence = cms.Sequence()
393 process.load(
"EventFilter.EcalRawToDigi.ecalElectronicsMappingGPUESProducer_cfi")
394 process.load(
"RecoLocalCalo.EcalRecProducers.ecalGainRatiosGPUESProducer_cfi")
395 process.load(
"RecoLocalCalo.EcalRecProducers.ecalPedestalsGPUESProducer_cfi")
396 process.load(
"RecoLocalCalo.EcalRecProducers.ecalPulseCovariancesGPUESProducer_cfi")
397 process.load(
"RecoLocalCalo.EcalRecProducers.ecalPulseShapesGPUESProducer_cfi")
398 process.load(
"RecoLocalCalo.EcalRecProducers.ecalSamplesCorrelationGPUESProducer_cfi")
399 process.load(
"RecoLocalCalo.EcalRecProducers.ecalTimeBiasCorrectionsGPUESProducer_cfi")
400 process.load(
"RecoLocalCalo.EcalRecProducers.ecalTimeCalibConstantsGPUESProducer_cfi")
401 process.load(
"RecoLocalCalo.EcalRecProducers.ecalMultifitParametersGPUESProducer_cfi")
403 process.load(
"RecoLocalCalo.EcalRecProducers.ecalRechitADCToGeVConstantGPUESProducer_cfi")
404 process.load(
"RecoLocalCalo.EcalRecProducers.ecalRechitChannelStatusGPUESProducer_cfi")
405 process.load(
"RecoLocalCalo.EcalRecProducers.ecalIntercalibConstantsGPUESProducer_cfi")
406 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLaserAPDPNRatiosGPUESProducer_cfi")
407 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLaserAPDPNRatiosRefGPUESProducer_cfi")
408 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLaserAlphasGPUESProducer_cfi")
409 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLinearCorrectionsGPUESProducer_cfi")
410 process.load(
"RecoLocalCalo.EcalRecProducers.ecalRecHitParametersGPUESProducer_cfi")
416 from EventFilter.EcalRawToDigi.ecalRawToDigiGPU_cfi
import ecalRawToDigiGPU
as _ecalRawToDigiGPU
417 process.hltEcalDigisGPU = _ecalRawToDigiGPU.clone()
420 process.hltEcalDigisLegacy = process.hltEcalDigis.clone()
421 from EventFilter.EcalRawToDigi.ecalCPUDigisProducer_cfi
import ecalCPUDigisProducer
as _ecalCPUDigisProducer
426 hltEcalDigisLegacy = cms.VPSet(
427 cms.PSet(type = cms.string(
"EBDigiCollection")),
428 cms.PSet(type = cms.string(
"EEDigiCollection")),
429 cms.PSet(type = cms.string(
"EBDetIdedmEDCollection")),
430 cms.PSet(type = cms.string(
"EEDetIdedmEDCollection")),
431 cms.PSet(type = cms.string(
"EBSrFlagsSorted")),
432 cms.PSet(type = cms.string(
"EESrFlagsSorted")),
433 cms.PSet(type = cms.string(
"EcalElectronicsIdedmEDCollection"), fromProductInstance = cms.string(
"EcalIntegrityBlockSizeErrors")),
434 cms.PSet(type = cms.string(
"EcalElectronicsIdedmEDCollection"), fromProductInstance = cms.string(
"EcalIntegrityTTIdErrors")),
435 cms.PSet(type = cms.string(
"EcalElectronicsIdedmEDCollection"), fromProductInstance = cms.string(
"EcalIntegrityZSXtalIdErrors")),
436 cms.PSet(type = cms.string(
"EcalPnDiodeDigisSorted")),
437 cms.PSet(type = cms.string(
"EcalPseudoStripInputDigisSorted"), fromProductInstance = cms.string(
"EcalPseudoStripInputs")),
438 cms.PSet(type = cms.string(
"EcalTriggerPrimitiveDigisSorted"), fromProductInstance = cms.string(
"EcalTriggerPrimitives")),
442 cuda = _ecalCPUDigisProducer.clone(
443 digisInLabelEB = (
"hltEcalDigisGPU",
"ebDigis"),
444 digisInLabelEE = (
"hltEcalDigisGPU",
"eeDigis"),
445 produceDummyIntegrityCollections = cms.bool(
True)
450 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitProducerGPU_cfi
import ecalUncalibRecHitProducerGPU
as _ecalUncalibRecHitProducerGPU
451 process.hltEcalUncalibRecHitGPU = _ecalUncalibRecHitProducerGPU.clone(
452 digisLabelEB = (
"hltEcalDigisGPU",
"ebDigis"),
453 digisLabelEE = (
"hltEcalDigisGPU",
"eeDigis"),
454 shouldRunTimingComputation =
False
458 from RecoLocalCalo.EcalRecProducers.ecalCPUUncalibRecHitProducer_cfi
import ecalCPUUncalibRecHitProducer
as _ecalCPUUncalibRecHitProducer
459 process.hltEcalUncalibRecHitSoA = _ecalCPUUncalibRecHitProducer.clone(
460 recHitsInLabelEB = (
"hltEcalUncalibRecHitGPU",
"EcalUncalibRecHitsEB"),
461 recHitsInLabelEE = (
"hltEcalUncalibRecHitGPU",
"EcalUncalibRecHitsEE"),
465 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitConvertGPU2CPUFormat_cfi
import ecalUncalibRecHitConvertGPU2CPUFormat
as _ecalUncalibRecHitConvertGPU2CPUFormat
468 cpu = process.hltEcalUncalibRecHit,
470 cuda = _ecalUncalibRecHitConvertGPU2CPUFormat.clone(
471 recHitsLabelGPUEB = (
"hltEcalUncalibRecHitSoA",
"EcalUncalibRecHitsEB"),
472 recHitsLabelGPUEE = (
"hltEcalUncalibRecHitSoA",
"EcalUncalibRecHitsEE"),
479 from RecoLocalCalo.EcalRecProducers.ecalRecHitGPU_cfi import ecalRecHitGPU as _ecalRecHitGPU
480 process.hltEcalRecHitGPU = _ecalRecHitGPU.clone(
481 uncalibrecHitsInLabelEB = ("hltEcalUncalibRecHitGPU","EcalUncalibRecHitsEB"),
482 uncalibrecHitsInLabelEE = ("hltEcalUncalibRecHitGPU","EcalUncalibRecHitsEE"),
485 from RecoLocalCalo.EcalRecProducers.ecalCPURecHitProducer_cfi import ecalCPURecHitProducer as _ecalCPURecHitProducer
486 process.hltEcalRecHitSoA = _ecalCPURecHitProducer.clone(
487 recHitsInLabelEB = ("hltEcalRecHitGPU", "EcalRecHitsEB"),
488 recHitsInLabelEE = ("hltEcalRecHitGPU", "EcalRecHitsEE"),
491 # SwitchProducer wrapping the legacy ECAL calibrated rechits producer or a converter from SoA to legacy format
492 from RecoLocalCalo.EcalRecProducers.ecalRecHitConvertGPU2CPUFormat_cfi import ecalRecHitConvertGPU2CPUFormat as _ecalRecHitConvertGPU2CPUFormat
493 process.hltEcalRecHit = SwitchProducerCUDA(
495 cpu = process.hltEcalRecHit,
496 # convert the ECAL calibrated rechits from SoA to legacy format
497 cuda = _ecalRecHitConvertGPU2CPUFormat.clone(
498 recHitsLabelGPUEB = ("hltEcalRecHitSoA", "EcalRecHitsEB"),
499 recHitsLabelGPUEE = ("hltEcalRecHitSoA", "EcalRecHitsEE"),
509 cpu = process.hltEcalRecHit.clone(
510 triggerPrimitiveDigiCollection = (
'hltEcalDigisLegacy',
'EcalTriggerPrimitives')
512 cuda = process.hltEcalRecHit.clone(
513 triggerPrimitiveDigiCollection =
'unused'
519 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask = cms.Task(
520 process.hltEcalDigisGPU,
521 process.hltEcalDigisLegacy,
522 process.hltEcalDigis,
523 process.hltEcalUncalibRecHitGPU,
524 process.hltEcalUncalibRecHitSoA,
525 process.hltEcalUncalibRecHit,
528 process.hltEcalDetIdToBeRecovered,
529 process.hltEcalRecHit)
531 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence = cms.Sequence(
532 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask)
534 if hasHLTEcalPreshowerSeq:
535 process.HLTPreshowerTask = cms.Task(
536 process.hltEcalPreshowerDigis,
537 process.hltEcalPreshowerRecHit)
539 process.HLTPreshowerSequence = cms.Sequence(process.HLTPreshowerTask)
541 process.HLTDoFullUnpackingEgammaEcalTask = cms.Task(
542 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask,
543 process.HLTPreshowerTask)
545 process.HLTDoFullUnpackingEgammaEcalSequence = cms.Sequence(
546 process.HLTDoFullUnpackingEgammaEcalTask)
548 process.HLTDoFullUnpackingEgammaEcalMFSequence = cms.Sequence(
549 process.HLTDoFullUnpackingEgammaEcalTask)