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),
50 use8ts = cms.bool(
True),
55 sipmQTSShift = cms.int32(0),
56 sipmQNTStoSum = cms.int32(3),
66 Class = cms.string(
"SimpleHBHEPhase1Algo"),
69 tdcTimeShift = cms.double(0.0),
72 useM2 = cms.bool(
False),
75 useM3 = cms.bool(
True),
78 useMahi = cms.bool(
True),
81 applyLegacyHBMCorrection = cms.bool(
True)
85 algoConfigClass = cms.string(
""),
88 setNegativeFlagsQIE8 = cms.bool(
True),
89 setNegativeFlagsQIE11 = cms.bool(
False),
90 setNoiseFlagsQIE8 = cms.bool(
True),
91 setNoiseFlagsQIE11 = cms.bool(
False),
92 setPulseShapeFlagsQIE8 = cms.bool(
True),
93 setPulseShapeFlagsQIE11 = cms.bool(
False),
94 setLegacyFlagsQIE8 = cms.bool(
True),
95 setLegacyFlagsQIE11 = cms.bool(
False),
98 flagParametersQIE8 = cms.PSet(
99 hbheStatusFlag.qie8Config
101 flagParametersQIE11 = cms.PSet(),
103 pulseShapeParametersQIE8 = cms.PSet(
104 pulseShapeFlag.qie8Parameters
106 pulseShapeParametersQIE11 = cms.PSet()
110 hbheprereco.pulseShapeParametersQIE8.TrianglePeakTS = cms.uint32(10000)
112 from Configuration.Eras.Modifier_run2_HE_2017_cff
import run2_HE_2017
113 run2_HE_2017.toModify(hbheprereco, saveEffectivePedestal = cms.bool(
True))
115 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
116 run3_HB.toModify(hbheprereco, algorithm = dict(applyLegacyHBMCorrection = cms.bool(
False)))