CMS 3D CMS Logo

hbheRecHitProducerPortableTask_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 HBHERecHitProducerPortable
6 
7 from RecoLocalCalo.HcalRecProducers.hcalMahiConditionsESProducer_cfi import hcalMahiConditionsESProducer
8 from RecoLocalCalo.HcalRecProducers.hcalMahiPulseOffsetsESProducer_cfi import hcalMahiPulseOffsetsESProducer
9 from RecoLocalCalo.HcalRecProducers.hcalSiPMCharacteristicsESProducer_cfi import hcalSiPMCharacteristicsESProducer
10 from RecoLocalCalo.HcalRecAlgos.hcalRecoParamWithPulseShapeESProducer_cfi import hcalRecoParamWithPulseShapeESProducer
11 
12 hcalMahiPulseOffSetAlpakaESRcdSource = cms.ESSource('EmptyESSource',
13  recordName = cms.string('JobConfigurationGPURecord'),
14  iovIsRunNotTime = cms.bool(True),
15  firstValid = cms.vuint32(1)
16 )
17 
18 # convert the HBHE digis into SoA format
19 from EventFilter.HcalRawToDigi.hcalDigisSoAProducer_cfi import hcalDigisSoAProducer as _hcalDigisSoAProducer
20 hcalDigisPortable = _hcalDigisSoAProducer.clone(
21  digisLabelF01HE = "f01HEDigis",
22  digisLabelF5HB = "f5HBDigis",
23  digisLabelF3HB = "f3HBDigis"
24 )
25 
27 hcalDigisSerial = makeSerialClone(hcalDigisPortable)
28 
29 # run the HCAL local reconstruction (MAHI) on GPU
30 from RecoLocalCalo.HcalRecProducers.hbheRecHitProducerPortable_cfi import hbheRecHitProducerPortable as _hbheRecHitProducerPortable
31 hbheRecHitProducerPortable = _hbheRecHitProducerPortable.clone(
32  digisLabelF01HE = ("hcalDigisPortable", "f01HEDigis"),
33  digisLabelF5HB = ("hcalDigisPortable", "f5HBDigis"),
34  digisLabelF3HB = ("hcalDigisPortable","f3HBDigis"),
35  recHitsLabelM0HBHE = "",
36  mahiPulseOffSets = "hcalMahiPulseOffsetsESProducer:"
37 )
38 hbheRecHitProducerSerial = makeSerialClone(hbheRecHitProducerPortable,
39  digisLabelF01HE = ("hcalDigisSerial","f01HEDigis"),
40  digisLabelF5HB = ("hcalDigisSerial","f5HBDigis"),
41  digisLabelF3HB = ("hcalDigisSerial","f3HBDigis")
42 )
43 
44 # Tasks and Sequences
45 hbheRecHitProducerPortableTask = cms.Task(
46  hcalMahiConditionsESProducer,
47  hcalMahiPulseOffSetAlpakaESRcdSource,
48  hcalMahiPulseOffsetsESProducer,
49  hcalRecoParamWithPulseShapeESProducer,
50  hcalSiPMCharacteristicsESProducer,
51  hcalDigisPortable,
52  hcalDigisSerial,
53  hbheRecHitProducerPortable,
54  hbheRecHitProducerSerial
55 )
56 
57 hbheRecHitProducerPortableSequence = cms.Sequence(hbheRecHitProducerPortableTask)
def makeSerialClone(module, kwargs)
Definition: functions.py:1