1 import FWCore.ParameterSet.Config
as cms
2 import RecoLocalCalo.HcalRecProducers.HBHEMethod3Parameters_cfi
as method3
3 import RecoLocalCalo.HcalRecProducers.HBHEMethod2Parameters_cfi
as method2
4 import RecoLocalCalo.HcalRecProducers.HBHEMethod0Parameters_cfi
as method0
5 import RecoLocalCalo.HcalRecProducers.HBHEMahiParameters_cfi
as mahi
6 import RecoLocalCalo.HcalRecProducers.HBHEPulseShapeFlagSetter_cfi
as pulseShapeFlag
7 import RecoLocalCalo.HcalRecProducers.HBHEStatusBitSetter_cfi
as hbheStatusFlag
9 hbheprereco = cms.EDProducer(
10 "HBHEPhase1Reconstructor",
14 digiLabelQIE8 = cms.InputTag(
"hcalDigis"),
15 processQIE8 = cms.bool(
True),
19 digiLabelQIE11 = cms.InputTag(
"hcalDigis"),
20 processQIE11 = cms.bool(
True),
24 tsFromDB = cms.bool(
False),
28 recoParamsFromDB = cms.bool(
True),
31 saveEffectivePedestal = cms.bool(
False),
34 dropZSmarkedPassed = cms.bool(
True),
37 makeRecHits = cms.bool(
True),
40 saveInfos = cms.bool(
False),
46 saveDroppedInfos = cms.bool(
False),
51 sipmQTSShift = cms.int32(0),
52 sipmQNTStoSum = cms.int32(3),
62 Class = cms.string(
"SimpleHBHEPhase1Algo"),
65 tdcTimeShift = cms.double(0.0),
68 useM2 = cms.bool(
False),
71 useM3 = cms.bool(
True),
74 useMahi = cms.bool(
True)
78 algoConfigClass = cms.string(
""),
81 setNegativeFlagsQIE8 = cms.bool(
True),
82 setNegativeFlagsQIE11 = cms.bool(
False),
83 setNoiseFlagsQIE8 = cms.bool(
True),
84 setNoiseFlagsQIE11 = cms.bool(
False),
85 setPulseShapeFlagsQIE8 = cms.bool(
True),
86 setPulseShapeFlagsQIE11 = cms.bool(
False),
87 setLegacyFlagsQIE8 = cms.bool(
True),
88 setLegacyFlagsQIE11 = cms.bool(
False),
91 flagParametersQIE8 = cms.PSet(
92 hbheStatusFlag.qie8Config
94 flagParametersQIE11 = cms.PSet(),
96 pulseShapeParametersQIE8 = cms.PSet(
97 pulseShapeFlag.qie8Parameters
99 pulseShapeParametersQIE11 = cms.PSet()
103 hbheprereco.pulseShapeParametersQIE8.TrianglePeakTS = cms.uint32(10000)
105 from Configuration.Eras.Modifier_run2_HE_2017_cff
import run2_HE_2017
106 run2_HE_2017.toModify(hbheprereco, saveEffectivePedestal = cms.bool(
True))