File indexing completed on 2024-04-06 12:25:50
0001 import FWCore.ParameterSet.Config as cms
0002 import RecoLocalCalo.HcalRecProducers.HBHEMethod3Parameters_cfi as method3
0003 import RecoLocalCalo.HcalRecProducers.HBHEMethod2Parameters_cfi as method2
0004 import RecoLocalCalo.HcalRecProducers.HBHEMethod0Parameters_cfi as method0
0005 import RecoLocalCalo.HcalRecProducers.HBHEMahiParameters_cfi as mahi
0006 import RecoLocalCalo.HcalRecProducers.HBHEPulseShapeFlagSetter_cfi as pulseShapeFlag
0007 import RecoLocalCalo.HcalRecProducers.HBHEStatusBitSetter_cfi as hbheStatusFlag
0008
0009 hbheprereco = cms.EDProducer(
0010 "HBHEPhase1Reconstructor",
0011
0012
0013
0014 digiLabelQIE8 = cms.InputTag("hcalDigis"),
0015 processQIE8 = cms.bool(True),
0016
0017
0018
0019 digiLabelQIE11 = cms.InputTag("hcalDigis"),
0020 processQIE11 = cms.bool(True),
0021
0022
0023
0024 tsFromDB = cms.bool(False),
0025
0026
0027
0028 recoParamsFromDB = cms.bool(True),
0029
0030
0031 saveEffectivePedestal = cms.bool(False),
0032
0033
0034 dropZSmarkedPassed = cms.bool(True),
0035
0036
0037 makeRecHits = cms.bool(True),
0038
0039
0040 saveInfos = cms.bool(False),
0041
0042
0043
0044
0045
0046 saveDroppedInfos = cms.bool(False),
0047
0048
0049
0050 use8ts = cms.bool(True),
0051
0052
0053
0054
0055 sipmQTSShift = cms.int32(0),
0056 sipmQNTStoSum = cms.int32(3),
0057
0058
0059 algorithm = cms.PSet(
0060
0061 method3.m3Parameters,
0062 method2.m2Parameters,
0063 method0.m0Parameters,
0064 mahi.mahiParameters,
0065
0066 Class = cms.string("SimpleHBHEPhase1Algo"),
0067
0068
0069 tdcTimeShift = cms.double(0.0),
0070
0071
0072 useM2 = cms.bool(False),
0073
0074
0075 useM3 = cms.bool(True),
0076
0077
0078 useMahi = cms.bool(True),
0079
0080
0081 applyLegacyHBMCorrection = cms.bool(True)
0082 ),
0083
0084
0085 algoConfigClass = cms.string(""),
0086
0087
0088 setNegativeFlagsQIE8 = cms.bool(True),
0089 setNegativeFlagsQIE11 = cms.bool(False),
0090 setNoiseFlagsQIE8 = cms.bool(True),
0091 setNoiseFlagsQIE11 = cms.bool(False),
0092 setPulseShapeFlagsQIE8 = cms.bool(True),
0093 setPulseShapeFlagsQIE11 = cms.bool(False),
0094 setLegacyFlagsQIE8 = cms.bool(True),
0095 setLegacyFlagsQIE11 = cms.bool(False),
0096
0097
0098 flagParametersQIE8 = cms.PSet(
0099 hbheStatusFlag.qie8Config
0100 ),
0101 flagParametersQIE11 = cms.PSet(),
0102
0103 pulseShapeParametersQIE8 = cms.PSet(
0104 pulseShapeFlag.qie8Parameters
0105 ),
0106 pulseShapeParametersQIE11 = cms.PSet()
0107 )
0108
0109
0110 hbheprereco.pulseShapeParametersQIE8.TrianglePeakTS = 10000
0111
0112 from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
0113 run2_HE_2017.toModify(hbheprereco, saveEffectivePedestal = True)
0114
0115 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0116 run3_common.toModify(hbheprereco, algorithm = dict(applyLegacyHBMCorrection = False, useM3 = False))