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 firstSampleShift = cms.int32(0),
71 useM2 = cms.bool(
False),
74 useM3 = cms.bool(
True),
77 useMahi = cms.bool(
True)
81 algoConfigClass = cms.string(
""),
84 setNegativeFlagsQIE8 = cms.bool(
True),
85 setNegativeFlagsQIE11 = cms.bool(
False),
86 setNoiseFlagsQIE8 = cms.bool(
True),
87 setNoiseFlagsQIE11 = cms.bool(
False),
88 setPulseShapeFlagsQIE8 = cms.bool(
True),
89 setPulseShapeFlagsQIE11 = cms.bool(
False),
90 setLegacyFlagsQIE8 = cms.bool(
True),
91 setLegacyFlagsQIE11 = cms.bool(
False),
94 flagParametersQIE8 = cms.PSet(
95 hbheStatusFlag.qie8Config
97 flagParametersQIE11 = cms.PSet(),
99 pulseShapeParametersQIE8 = cms.PSet(
100 pulseShapeFlag.qie8Parameters
102 pulseShapeParametersQIE11 = cms.PSet()
106 hbheprereco.pulseShapeParametersQIE8.TrianglePeakTS = cms.uint32(10000)
108 from Configuration.Eras.Modifier_run2_HE_2017_cff
import run2_HE_2017
109 run2_HE_2017.toModify(hbheprereco, saveEffectivePedestal = cms.bool(
True))