352 hasHLTEcalPreshowerSeq =
any(seq
in process.__dict__
for seq
in [
'HLTDoFullUnpackingEgammaEcalMFSequence',
'HLTDoFullUnpackingEgammaEcalSequence'])
353 if not (hasHLTEcalPreshowerSeq
or 'HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence' in process.__dict__):
358 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence = cms.Sequence()
359 if hasHLTEcalPreshowerSeq:
360 process.HLTDoFullUnpackingEgammaEcalMFSequence = cms.Sequence()
361 process.HLTDoFullUnpackingEgammaEcalSequence = cms.Sequence()
366 process.load(
"EventFilter.EcalRawToDigi.ecalElectronicsMappingGPUESProducer_cfi")
367 process.load(
"RecoLocalCalo.EcalRecProducers.ecalGainRatiosGPUESProducer_cfi")
368 process.load(
"RecoLocalCalo.EcalRecProducers.ecalPedestalsGPUESProducer_cfi")
369 process.load(
"RecoLocalCalo.EcalRecProducers.ecalPulseCovariancesGPUESProducer_cfi")
370 process.load(
"RecoLocalCalo.EcalRecProducers.ecalPulseShapesGPUESProducer_cfi")
371 process.load(
"RecoLocalCalo.EcalRecProducers.ecalSamplesCorrelationGPUESProducer_cfi")
372 process.load(
"RecoLocalCalo.EcalRecProducers.ecalTimeBiasCorrectionsGPUESProducer_cfi")
373 process.load(
"RecoLocalCalo.EcalRecProducers.ecalTimeCalibConstantsGPUESProducer_cfi")
374 process.load(
"RecoLocalCalo.EcalRecProducers.ecalMultifitParametersGPUESProducer_cfi")
376 process.load(
"RecoLocalCalo.EcalRecProducers.ecalRechitADCToGeVConstantGPUESProducer_cfi")
377 process.load(
"RecoLocalCalo.EcalRecProducers.ecalRechitChannelStatusGPUESProducer_cfi")
378 process.load(
"RecoLocalCalo.EcalRecProducers.ecalIntercalibConstantsGPUESProducer_cfi")
379 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLaserAPDPNRatiosGPUESProducer_cfi")
380 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLaserAPDPNRatiosRefGPUESProducer_cfi")
381 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLaserAlphasGPUESProducer_cfi")
382 process.load(
"RecoLocalCalo.EcalRecProducers.ecalLinearCorrectionsGPUESProducer_cfi")
383 process.load(
"RecoLocalCalo.EcalRecProducers.ecalRecHitParametersGPUESProducer_cfi")
389 from EventFilter.EcalRawToDigi.ecalRawToDigiGPU_cfi
import ecalRawToDigiGPU
as _ecalRawToDigiGPU
390 process.hltEcalDigisGPU = _ecalRawToDigiGPU.clone()
393 process.hltEcalDigisLegacy = process.hltEcalDigis.clone()
394 from EventFilter.EcalRawToDigi.ecalCPUDigisProducer_cfi
import ecalCPUDigisProducer
as _ecalCPUDigisProducer
399 hltEcalDigisLegacy = cms.VPSet(
400 cms.PSet(type = cms.string(
"EBDigiCollection")),
401 cms.PSet(type = cms.string(
"EEDigiCollection")),
402 cms.PSet(type = cms.string(
"EBDetIdedmEDCollection")),
403 cms.PSet(type = cms.string(
"EEDetIdedmEDCollection")),
404 cms.PSet(type = cms.string(
"EBSrFlagsSorted")),
405 cms.PSet(type = cms.string(
"EESrFlagsSorted")),
406 cms.PSet(type = cms.string(
"EcalElectronicsIdedmEDCollection"), fromProductInstance = cms.string(
"EcalIntegrityBlockSizeErrors")),
407 cms.PSet(type = cms.string(
"EcalElectronicsIdedmEDCollection"), fromProductInstance = cms.string(
"EcalIntegrityTTIdErrors")),
408 cms.PSet(type = cms.string(
"EcalElectronicsIdedmEDCollection"), fromProductInstance = cms.string(
"EcalIntegrityZSXtalIdErrors")),
409 cms.PSet(type = cms.string(
"EcalPnDiodeDigisSorted")),
410 cms.PSet(type = cms.string(
"EcalPseudoStripInputDigisSorted"), fromProductInstance = cms.string(
"EcalPseudoStripInputs")),
411 cms.PSet(type = cms.string(
"EcalTriggerPrimitiveDigisSorted"), fromProductInstance = cms.string(
"EcalTriggerPrimitives")),
415 cuda = _ecalCPUDigisProducer.clone(
416 digisInLabelEB = (
"hltEcalDigisGPU",
"ebDigis"),
417 digisInLabelEE = (
"hltEcalDigisGPU",
"eeDigis"),
418 produceDummyIntegrityCollections = cms.bool(
True)
423 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitProducerGPU_cfi
import ecalUncalibRecHitProducerGPU
as _ecalUncalibRecHitProducerGPU
424 process.hltEcalUncalibRecHitGPU = _ecalUncalibRecHitProducerGPU.clone(
425 digisLabelEB = (
"hltEcalDigisGPU",
"ebDigis"),
426 digisLabelEE = (
"hltEcalDigisGPU",
"eeDigis"),
427 shouldRunTimingComputation =
False
431 from RecoLocalCalo.EcalRecProducers.ecalCPUUncalibRecHitProducer_cfi
import ecalCPUUncalibRecHitProducer
as _ecalCPUUncalibRecHitProducer
432 process.hltEcalUncalibRecHitSoA = _ecalCPUUncalibRecHitProducer.clone(
433 recHitsInLabelEB = (
"hltEcalUncalibRecHitGPU",
"EcalUncalibRecHitsEB"),
434 recHitsInLabelEE = (
"hltEcalUncalibRecHitGPU",
"EcalUncalibRecHitsEE"),
438 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitConvertGPU2CPUFormat_cfi
import ecalUncalibRecHitConvertGPU2CPUFormat
as _ecalUncalibRecHitConvertGPU2CPUFormat
441 cpu = process.hltEcalUncalibRecHit,
443 cuda = _ecalUncalibRecHitConvertGPU2CPUFormat.clone(
444 recHitsLabelGPUEB = (
"hltEcalUncalibRecHitSoA",
"EcalUncalibRecHitsEB"),
445 recHitsLabelGPUEE = (
"hltEcalUncalibRecHitSoA",
"EcalUncalibRecHitsEE"),
452 from RecoLocalCalo.EcalRecProducers.ecalRecHitGPU_cfi import ecalRecHitGPU as _ecalRecHitGPU
453 process.hltEcalRecHitGPU = _ecalRecHitGPU.clone(
454 uncalibrecHitsInLabelEB = ("hltEcalUncalibRecHitGPU","EcalUncalibRecHitsEB"),
455 uncalibrecHitsInLabelEE = ("hltEcalUncalibRecHitGPU","EcalUncalibRecHitsEE"),
458 from RecoLocalCalo.EcalRecProducers.ecalCPURecHitProducer_cfi import ecalCPURecHitProducer as _ecalCPURecHitProducer
459 process.hltEcalRecHitSoA = _ecalCPURecHitProducer.clone(
460 recHitsInLabelEB = ("hltEcalRecHitGPU", "EcalRecHitsEB"),
461 recHitsInLabelEE = ("hltEcalRecHitGPU", "EcalRecHitsEE"),
464 # SwitchProducer wrapping the legacy ECAL calibrated rechits producer or a converter from SoA to legacy format
465 from RecoLocalCalo.EcalRecProducers.ecalRecHitConvertGPU2CPUFormat_cfi import ecalRecHitConvertGPU2CPUFormat as _ecalRecHitConvertGPU2CPUFormat
466 process.hltEcalRecHit = SwitchProducerCUDA(
468 cpu = process.hltEcalRecHit,
469 # convert the ECAL calibrated rechits from SoA to legacy format
470 cuda = _ecalRecHitConvertGPU2CPUFormat.clone(
471 recHitsLabelGPUEB = ("hltEcalRecHitSoA", "EcalRecHitsEB"),
472 recHitsLabelGPUEE = ("hltEcalRecHitSoA", "EcalRecHitsEE"),
482 cpu = process.hltEcalRecHit.clone(
483 triggerPrimitiveDigiCollection = (
'hltEcalDigisLegacy',
'EcalTriggerPrimitives')
485 cuda = process.hltEcalRecHit.clone(
486 triggerPrimitiveDigiCollection =
'unused'
492 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask = cms.Task(
493 process.hltEcalDigisGPU,
494 process.hltEcalDigisLegacy,
495 process.hltEcalDigis,
496 process.hltEcalUncalibRecHitGPU,
497 process.hltEcalUncalibRecHitSoA,
498 process.hltEcalUncalibRecHit,
501 process.hltEcalDetIdToBeRecovered,
502 process.hltEcalRecHit)
504 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerSequence = cms.Sequence(
505 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask)
507 if hasHLTEcalPreshowerSeq:
508 process.HLTPreshowerTask = cms.Task(
509 process.hltEcalPreshowerDigis,
510 process.hltEcalPreshowerRecHit)
512 process.HLTPreshowerSequence = cms.Sequence(process.HLTPreshowerTask)
514 process.HLTDoFullUnpackingEgammaEcalTask = cms.Task(
515 process.HLTDoFullUnpackingEgammaEcalWithoutPreshowerTask,
516 process.HLTPreshowerTask)
518 process.HLTDoFullUnpackingEgammaEcalSequence = cms.Sequence(
519 process.HLTDoFullUnpackingEgammaEcalTask)
521 process.HLTDoFullUnpackingEgammaEcalMFSequence = cms.Sequence(
522 process.HLTDoFullUnpackingEgammaEcalTask)