CMS 3D CMS Logo

hbheRecHitProducerGPUTask_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Run 3 HCAL workflow on GPU
4 
5 # EventSetup modules used by HBHERecHitProducerGPU
6 from RecoLocalCalo.HcalRecProducers.hcalGainsGPUESProducer_cfi import hcalGainsGPUESProducer
7 from RecoLocalCalo.HcalRecProducers.hcalGainWidthsGPUESProducer_cfi import hcalGainWidthsGPUESProducer
8 from RecoLocalCalo.HcalRecProducers.hcalLUTCorrsGPUESProducer_cfi import hcalLUTCorrsGPUESProducer
9 from RecoLocalCalo.HcalRecProducers.hcalConvertedPedestalsGPUESProducer_cfi import hcalConvertedPedestalsGPUESProducer
10 from RecoLocalCalo.HcalRecProducers.hcalConvertedEffectivePedestalsGPUESProducer_cfi import hcalConvertedEffectivePedestalsGPUESProducer
11 hcalConvertedEffectivePedestalsGPUESProducer.label0 = "withTopoEff"
12 
13 from RecoLocalCalo.HcalRecProducers.hcalConvertedPedestalWidthsGPUESProducer_cfi import hcalConvertedPedestalWidthsGPUESProducer
14 from RecoLocalCalo.HcalRecProducers.hcalConvertedEffectivePedestalWidthsGPUESProducer_cfi import hcalConvertedEffectivePedestalWidthsGPUESProducer
15 hcalConvertedEffectivePedestalWidthsGPUESProducer.label0 = "withTopoEff"
16 hcalConvertedEffectivePedestalWidthsGPUESProducer.label1 = "withTopoEff"
17 
18 from RecoLocalCalo.HcalRecProducers.hcalChannelQualityGPUESProducer_cfi import hcalChannelQualityGPUESProducer
19 from RecoLocalCalo.HcalRecProducers.hcalQIECodersGPUESProducer_cfi import hcalQIECodersGPUESProducer
20 from RecoLocalCalo.HcalRecProducers.hcalRecoParamsWithPulseShapesGPUESProducer_cfi import hcalRecoParamsWithPulseShapesGPUESProducer
21 from RecoLocalCalo.HcalRecProducers.hcalRespCorrsGPUESProducer_cfi import hcalRespCorrsGPUESProducer
22 from RecoLocalCalo.HcalRecProducers.hcalTimeCorrsGPUESProducer_cfi import hcalTimeCorrsGPUESProducer
23 from RecoLocalCalo.HcalRecProducers.hcalQIETypesGPUESProducer_cfi import hcalQIETypesGPUESProducer
24 from RecoLocalCalo.HcalRecProducers.hcalSiPMParametersGPUESProducer_cfi import hcalSiPMParametersGPUESProducer
25 from RecoLocalCalo.HcalRecProducers.hcalSiPMCharacteristicsGPUESProducer_cfi import hcalSiPMCharacteristicsGPUESProducer
26 from RecoLocalCalo.HcalRecProducers.hcalMahiPulseOffsetsGPUESProducer_cfi import hcalMahiPulseOffsetsGPUESProducer
27 
28 # convert the HBHE digis into SoA format, and copy them from CPU to GPU
29 from EventFilter.HcalRawToDigi.hcalDigisProducerGPU_cfi import hcalDigisProducerGPU as _hcalDigisProducerGPU
30 hcalDigisGPU = _hcalDigisProducerGPU.clone(
31  digisLabelF01HE = "",
32  digisLabelF5HB = "",
33  digisLabelF3HB = ""
34 )
35 
36 # run the HCAL local reconstruction (MAHI) on GPU
37 from RecoLocalCalo.HcalRecProducers.hbheRecHitProducerGPU_cfi import hbheRecHitProducerGPU as _hbheRecHitProducerGPU
38 hbheRecHitProducerGPU = _hbheRecHitProducerGPU.clone(
39  digisLabelF01HE = "hcalDigisGPU",
40  digisLabelF5HB = "hcalDigisGPU",
41  digisLabelF3HB = "hcalDigisGPU",
42  recHitsLabelM0HBHE = ""
43 )
44 
45 # Tasks and Sequences
46 hbheRecHitProducerGPUTask = cms.Task(
47  hcalGainsGPUESProducer,
48  hcalGainWidthsGPUESProducer,
49  hcalLUTCorrsGPUESProducer,
50  hcalConvertedPedestalsGPUESProducer,
51  hcalConvertedEffectivePedestalsGPUESProducer,
52  hcalConvertedPedestalWidthsGPUESProducer,
53  hcalConvertedEffectivePedestalWidthsGPUESProducer,
54  hcalChannelQualityGPUESProducer,
55  hcalQIECodersGPUESProducer,
56  hcalRecoParamsWithPulseShapesGPUESProducer,
57  hcalRespCorrsGPUESProducer,
58  hcalTimeCorrsGPUESProducer,
59  hcalQIETypesGPUESProducer,
60  hcalSiPMParametersGPUESProducer,
61  hcalSiPMCharacteristicsGPUESProducer,
62  hcalMahiPulseOffsetsGPUESProducer,
63  hcalDigisGPU,
64  hbheRecHitProducerGPU
65 )
66 
67 hbheRecHitProducerGPUSequence = cms.Sequence(hbheRecHitProducerGPUTask)