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.hcalQIECodersGPUESProducer_cfi import hcalQIECodersGPUESProducer
19 from RecoLocalCalo.HcalRecProducers.hcalRecoParamsWithPulseShapesGPUESProducer_cfi import hcalRecoParamsWithPulseShapesGPUESProducer
20 from RecoLocalCalo.HcalRecProducers.hcalRespCorrsGPUESProducer_cfi import hcalRespCorrsGPUESProducer
21 from RecoLocalCalo.HcalRecProducers.hcalTimeCorrsGPUESProducer_cfi import hcalTimeCorrsGPUESProducer
22 from RecoLocalCalo.HcalRecProducers.hcalQIETypesGPUESProducer_cfi import hcalQIETypesGPUESProducer
23 from RecoLocalCalo.HcalRecProducers.hcalSiPMParametersGPUESProducer_cfi import hcalSiPMParametersGPUESProducer
24 from RecoLocalCalo.HcalRecProducers.hcalSiPMCharacteristicsGPUESProducer_cfi import hcalSiPMCharacteristicsGPUESProducer
25 from RecoLocalCalo.HcalRecProducers.hcalMahiPulseOffsetsGPUESProducer_cfi import hcalMahiPulseOffsetsGPUESProducer
26 
27 # convert the HBHE digis into SoA format, and copy them from CPU to GPU
28 from EventFilter.HcalRawToDigi.hcalDigisProducerGPU_cfi import hcalDigisProducerGPU as _hcalDigisProducerGPU
29 hcalDigisGPU = _hcalDigisProducerGPU.clone(
30  digisLabelF01HE = "",
31  digisLabelF5HB = "",
32  digisLabelF3HB = ""
33 )
34 
35 # run the HCAL local reconstruction (MAHI) on GPU
36 from RecoLocalCalo.HcalRecProducers.hbheRecHitProducerGPU_cfi import hbheRecHitProducerGPU as _hbheRecHitProducerGPU
37 hbheRecHitProducerGPU = _hbheRecHitProducerGPU.clone(
38  digisLabelF01HE = "hcalDigisGPU",
39  digisLabelF5HB = "hcalDigisGPU",
40  digisLabelF3HB = "hcalDigisGPU",
41  recHitsLabelM0HBHE = ""
42 )
43 
44 # Tasks and Sequences
45 hbheRecHitProducerGPUTask = cms.Task(
46  hcalGainsGPUESProducer,
47  hcalGainWidthsGPUESProducer,
48  hcalLUTCorrsGPUESProducer,
49  hcalConvertedPedestalsGPUESProducer,
50  hcalConvertedEffectivePedestalsGPUESProducer,
51  hcalConvertedPedestalWidthsGPUESProducer,
52  hcalConvertedEffectivePedestalWidthsGPUESProducer,
53  hcalQIECodersGPUESProducer,
54  hcalRecoParamsWithPulseShapesGPUESProducer,
55  hcalRespCorrsGPUESProducer,
56  hcalTimeCorrsGPUESProducer,
57  hcalQIETypesGPUESProducer,
58  hcalSiPMParametersGPUESProducer,
59  hcalSiPMCharacteristicsGPUESProducer,
60  hcalMahiPulseOffsetsGPUESProducer,
61  hcalDigisGPU,
62  hbheRecHitProducerGPU
63 )
64 
65 hbheRecHitProducerGPUSequence = cms.Sequence(hbheRecHitProducerGPUTask)