File indexing completed on 2024-04-06 12:00:10
0001 import FWCore.ParameterSet.Config as cms
0002
0003 def HcalHardcodeCalibrations(**kwargs):
0004 mod = cms.ESSource('HcalHardcodeCalibrations',
0005 iLumi = cms.double(-1),
0006 HBRecalibration = cms.bool(False),
0007 HBreCalibCutoff = cms.double(20),
0008 HBmeanenergies = cms.FileInPath('CalibCalorimetry/HcalPlugins/data/meanenergiesHB.txt'),
0009 HERecalibration = cms.bool(False),
0010 HEreCalibCutoff = cms.double(20),
0011 HEmeanenergies = cms.FileInPath('CalibCalorimetry/HcalPlugins/data/meanenergiesHE.txt'),
0012 HFRecalibration = cms.bool(False),
0013 GainWidthsForTrigPrims = cms.bool(False),
0014 useHBUpgrade = cms.bool(False),
0015 useHEUpgrade = cms.bool(False),
0016 useHFUpgrade = cms.bool(False),
0017 useHOUpgrade = cms.bool(True),
0018 testHFQIE10 = cms.bool(False),
0019 testHEPlan1 = cms.bool(False),
0020 killHE = cms.bool(False),
0021 useLayer0Weight = cms.bool(False),
0022 useIeta18depth1 = cms.bool(True),
0023 toGet = cms.untracked.vstring(),
0024 fromDDD = cms.untracked.bool(False),
0025 hb = cms.PSet(
0026 gain = cms.vdouble(0.19),
0027 gainWidth = cms.vdouble(0),
0028 pedestal = cms.double(3),
0029 pedestalWidth = cms.double(0.55),
0030 zsThreshold = cms.int32(8),
0031 qieOffset = cms.vdouble(
0032 -0.49,
0033 1.8,
0034 7.2,
0035 37.9
0036 ),
0037 qieSlope = cms.vdouble(
0038 0.912,
0039 0.917,
0040 0.922,
0041 0.923
0042 ),
0043 qieType = cms.int32(0),
0044 mcShape = cms.int32(125),
0045 recoShape = cms.int32(105),
0046 photoelectronsToAnalog = cms.double(0),
0047 darkCurrent = cms.vdouble(0),
0048 noiseCorrelation = cms.vdouble(0),
0049 doRadiationDamage = cms.bool(False),
0050 noiseThreshold = cms.double(0),
0051 seedThreshold = cms.double(0.1)
0052 ),
0053 hbUpgrade = cms.PSet(
0054 gain = cms.vdouble(0.00111111111111),
0055 gainWidth = cms.vdouble(0),
0056 pedestal = cms.double(18),
0057 pedestalWidth = cms.double(5),
0058 zsThreshold = cms.int32(3),
0059 qieOffset = cms.vdouble(
0060 0,
0061 0,
0062 0,
0063 0
0064 ),
0065 qieSlope = cms.vdouble(
0066 0.333,
0067 0.333,
0068 0.333,
0069 0.333
0070 ),
0071 qieType = cms.int32(2),
0072 mcShape = cms.int32(206),
0073 recoShape = cms.int32(206),
0074 photoelectronsToAnalog = cms.double(57.5),
0075 darkCurrent = cms.vdouble(0.055),
0076 noiseCorrelation = cms.vdouble(0.26),
0077 doRadiationDamage = cms.bool(True),
0078 radiationDamage = cms.PSet(
0079 temperatureBase = cms.double(20),
0080 temperatureNew = cms.double(-5),
0081 intlumiOffset = cms.double(150),
0082 depVsTemp = cms.double(0.0631),
0083 intlumiToNeutrons = cms.double(367000000),
0084 depVsNeutrons = cms.vdouble(
0085 5.69e-11,
0086 7.9e-11
0087 )
0088 ),
0089 noiseThreshold = cms.double(0),
0090 seedThreshold = cms.double(0.1)
0091 ),
0092 he = cms.PSet(
0093 gain = cms.vdouble(0.23),
0094 gainWidth = cms.vdouble(0),
0095 pedestal = cms.double(3),
0096 pedestalWidth = cms.double(0.79),
0097 zsThreshold = cms.int32(9),
0098 qieOffset = cms.vdouble(
0099 -0.38,
0100 2,
0101 7.6,
0102 39.6
0103 ),
0104 qieSlope = cms.vdouble(
0105 0.912,
0106 0.916,
0107 0.92,
0108 0.922
0109 ),
0110 qieType = cms.int32(0),
0111 mcShape = cms.int32(125),
0112 recoShape = cms.int32(105),
0113 photoelectronsToAnalog = cms.double(0),
0114 darkCurrent = cms.vdouble(0),
0115 noiseCorrelation = cms.vdouble(0),
0116 doRadiationDamage = cms.bool(False),
0117 noiseThreshold = cms.double(0),
0118 seedThreshold = cms.double(0.1)
0119 ),
0120 heUpgrade = cms.PSet(
0121 gain = cms.vdouble(0.00111111111111),
0122 gainWidth = cms.vdouble(0),
0123 pedestal = cms.double(18),
0124 pedestalWidth = cms.double(5),
0125 zsThreshold = cms.int32(3),
0126 qieOffset = cms.vdouble(
0127 0,
0128 0,
0129 0,
0130 0
0131 ),
0132 qieSlope = cms.vdouble(
0133 0.333,
0134 0.333,
0135 0.333,
0136 0.333
0137 ),
0138 qieType = cms.int32(2),
0139 mcShape = cms.int32(206),
0140 recoShape = cms.int32(206),
0141 photoelectronsToAnalog = cms.double(57.5),
0142 darkCurrent = cms.vdouble(0.055),
0143 noiseCorrelation = cms.vdouble(0.26),
0144 doRadiationDamage = cms.bool(True),
0145 radiationDamage = cms.PSet(
0146 temperatureBase = cms.double(20),
0147 temperatureNew = cms.double(5),
0148 intlumiOffset = cms.double(75),
0149 depVsTemp = cms.double(0.0631),
0150 intlumiToNeutrons = cms.double(292000000),
0151 depVsNeutrons = cms.vdouble(
0152 5.69e-11,
0153 7.9e-11
0154 )
0155 ),
0156 noiseThreshold = cms.double(0),
0157 seedThreshold = cms.double(0.1)
0158 ),
0159 hf = cms.PSet(
0160 gain = cms.vdouble(
0161 0.14,
0162 0.135
0163 ),
0164 gainWidth = cms.vdouble(
0165 0,
0166 0
0167 ),
0168 pedestal = cms.double(3),
0169 pedestalWidth = cms.double(0.84),
0170 zsThreshold = cms.int32(-9999),
0171 qieOffset = cms.vdouble(
0172 -0.87,
0173 1.4,
0174 7.8,
0175 -29.6
0176 ),
0177 qieSlope = cms.vdouble(
0178 0.359,
0179 0.358,
0180 0.36,
0181 0.367
0182 ),
0183 qieType = cms.int32(0),
0184 mcShape = cms.int32(301),
0185 recoShape = cms.int32(301),
0186 photoelectronsToAnalog = cms.double(0),
0187 darkCurrent = cms.vdouble(0),
0188 noiseCorrelation = cms.vdouble(0),
0189 doRadiationDamage = cms.bool(False),
0190 noiseThreshold = cms.double(0),
0191 seedThreshold = cms.double(0.1)
0192 ),
0193 hfUpgrade = cms.PSet(
0194 gain = cms.vdouble(
0195 0.14,
0196 0.135
0197 ),
0198 gainWidth = cms.vdouble(
0199 0,
0200 0
0201 ),
0202 pedestal = cms.double(13.33),
0203 pedestalWidth = cms.double(3.33),
0204 zsThreshold = cms.int32(-9999),
0205 qieOffset = cms.vdouble(
0206 0.0697,
0207 -0.7405,
0208 12.38,
0209 -671.9
0210 ),
0211 qieSlope = cms.vdouble(
0212 0.297,
0213 0.298,
0214 0.298,
0215 0.313
0216 ),
0217 qieType = cms.int32(1),
0218 mcShape = cms.int32(301),
0219 recoShape = cms.int32(301),
0220 photoelectronsToAnalog = cms.double(0),
0221 darkCurrent = cms.vdouble(0),
0222 noiseCorrelation = cms.vdouble(0),
0223 doRadiationDamage = cms.bool(False),
0224 noiseThreshold = cms.double(0),
0225 seedThreshold = cms.double(0.1)
0226 ),
0227 HFRecalParameterBlock = cms.PSet(
0228 HFdepthOneParameterA = cms.vdouble(),
0229 HFdepthOneParameterB = cms.vdouble(),
0230 HFdepthTwoParameterA = cms.vdouble(),
0231 HFdepthTwoParameterB = cms.vdouble()
0232 ),
0233 ho = cms.PSet(
0234 gain = cms.vdouble(
0235 0.006,
0236 0.0087
0237 ),
0238 gainWidth = cms.vdouble(
0239 0,
0240 0
0241 ),
0242 pedestal = cms.double(11),
0243 pedestalWidth = cms.double(0.57),
0244 zsThreshold = cms.int32(24),
0245 qieOffset = cms.vdouble(
0246 -0.44,
0247 1.4,
0248 7.1,
0249 38.5
0250 ),
0251 qieSlope = cms.vdouble(
0252 0.907,
0253 0.915,
0254 0.92,
0255 0.921
0256 ),
0257 qieType = cms.int32(0),
0258 mcShape = cms.int32(201),
0259 recoShape = cms.int32(201),
0260 photoelectronsToAnalog = cms.double(4),
0261 darkCurrent = cms.vdouble(0),
0262 noiseCorrelation = cms.vdouble(0),
0263 doRadiationDamage = cms.bool(False),
0264 noiseThreshold = cms.double(0),
0265 seedThreshold = cms.double(0.1)
0266 ),
0267 SiPMCharacteristics = cms.VPSet(
0268 cms.PSet()
0269 ),
0270 appendToDataLabel = cms.string('')
0271 )
0272 for k,v in kwargs.items():
0273 setattr(mod, k, v)
0274 return mod