File indexing completed on 2025-02-07 14:24:07
0001 import FWCore.ParameterSet.Config as cms
0002
0003 def EcalUncalibRecHitProducer(*args, **kwargs):
0004 mod = cms.EDProducer('EcalUncalibRecHitProducer',
0005 EBdigiCollection = cms.InputTag('ecalDigis', 'ebDigis'),
0006 EEhitCollection = cms.string('EcalUncalibRecHitsEE'),
0007 EEdigiCollection = cms.InputTag('ecalDigis', 'eeDigis'),
0008 EBhitCollection = cms.string('EcalUncalibRecHitsEB'),
0009 algo = cms.string('EcalUncalibRecHitWorkerMultiFit'),
0010 algoPSet = cms.PSet(
0011 activeBXs = cms.vint32(
0012 -5,
0013 -4,
0014 -3,
0015 -2,
0016 -1,
0017 0,
0018 1,
0019 2,
0020 3,
0021 4
0022 ),
0023 ampErrorCalculation = cms.bool(True),
0024 useLumiInfoRunHeader = cms.bool(True),
0025 bunchSpacing = cms.int32(0),
0026 doPrefitEB = cms.bool(False),
0027 doPrefitEE = cms.bool(False),
0028 prefitMaxChiSqEB = cms.double(25),
0029 prefitMaxChiSqEE = cms.double(10),
0030 dynamicPedestalsEB = cms.bool(False),
0031 dynamicPedestalsEE = cms.bool(False),
0032 mitigateBadSamplesEB = cms.bool(False),
0033 mitigateBadSamplesEE = cms.bool(False),
0034 gainSwitchUseMaxSampleEB = cms.bool(True),
0035 gainSwitchUseMaxSampleEE = cms.bool(False),
0036 selectiveBadSampleCriteriaEB = cms.bool(False),
0037 selectiveBadSampleCriteriaEE = cms.bool(False),
0038 addPedestalUncertaintyEB = cms.double(0),
0039 addPedestalUncertaintyEE = cms.double(0),
0040 simplifiedNoiseModelForGainSwitch = cms.bool(True),
0041 timealgo = cms.string('RatioMethod'),
0042 EBtimeFitParameters = cms.vdouble(
0043 -2.015452,
0044 3.130702,
0045 -12.3473,
0046 41.88921,
0047 -82.83944,
0048 91.01147,
0049 -50.35761,
0050 11.05621
0051 ),
0052 EEtimeFitParameters = cms.vdouble(
0053 -2.390548,
0054 3.553628,
0055 -17.62341,
0056 67.67538,
0057 -133.213,
0058 140.7432,
0059 -75.41106,
0060 16.20277
0061 ),
0062 EBamplitudeFitParameters = cms.vdouble(
0063 1.138,
0064 1.652
0065 ),
0066 EEamplitudeFitParameters = cms.vdouble(
0067 1.89,
0068 1.4
0069 ),
0070 timeCalibTag = cms.ESInputTag('', ''),
0071 timeOffsetTag = cms.ESInputTag('', ''),
0072 EBtimeFitLimits_Lower = cms.double(0.2),
0073 EBtimeFitLimits_Upper = cms.double(1.4),
0074 EEtimeFitLimits_Lower = cms.double(0.2),
0075 EEtimeFitLimits_Upper = cms.double(1.4),
0076 EBtimeConstantTerm = cms.double(0.6),
0077 EEtimeConstantTerm = cms.double(1),
0078 EBtimeNconst = cms.double(28.5),
0079 EEtimeNconst = cms.double(31.8),
0080 outOfTimeThresholdGain12pEB = cms.double(5),
0081 outOfTimeThresholdGain12mEB = cms.double(5),
0082 outOfTimeThresholdGain61pEB = cms.double(5),
0083 outOfTimeThresholdGain61mEB = cms.double(5),
0084 outOfTimeThresholdGain12pEE = cms.double(1000),
0085 outOfTimeThresholdGain12mEE = cms.double(1000),
0086 outOfTimeThresholdGain61pEE = cms.double(1000),
0087 outOfTimeThresholdGain61mEE = cms.double(1000),
0088 amplitudeThresholdEB = cms.double(10),
0089 amplitudeThresholdEE = cms.double(10),
0090 crossCorrelationUseSlewCorrectionEB = cms.bool(True),
0091 crossCorrelationUseSlewCorrectionEE = cms.bool(False),
0092 crossCorrelationStartTime = cms.double(-25),
0093 crossCorrelationStopTime = cms.double(25),
0094 crossCorrelationTargetTimePrecision = cms.double(0.01),
0095 crossCorrelationTargetTimePrecisionForDelayedPulses = cms.double(0.05),
0096 crossCorrelationTimeShiftWrtRations = cms.double(0),
0097 crossCorrelationMinTimeToBeLateMin = cms.double(2),
0098 crossCorrelationMinTimeToBeLateMax = cms.double(5)
0099 ),
0100 mightGet = cms.optional.untracked.vstring
0101 )
0102 for a in args:
0103 mod.update_(a)
0104 mod.update_(kwargs)
0105 return mod