File indexing completed on 2025-02-07 14:24:07
0001 import FWCore.ParameterSet.Config as cms
0002
0003 def HBHEPhase1Reconstructor(*args, **kwargs):
0004 mod = cms.EDProducer('HBHEPhase1Reconstructor',
0005 digiLabelQIE8 = cms.required.InputTag,
0006 digiLabelQIE11 = cms.required.InputTag,
0007 algoConfigClass = cms.required.string,
0008 processQIE8 = cms.required.bool,
0009 processQIE11 = cms.required.bool,
0010 saveInfos = cms.required.bool,
0011 saveDroppedInfos = cms.required.bool,
0012 makeRecHits = cms.required.bool,
0013 dropZSmarkedPassed = cms.required.bool,
0014 tsFromDB = cms.required.bool,
0015 recoParamsFromDB = cms.required.bool,
0016 saveEffectivePedestal = cms.bool(False),
0017 use8ts = cms.bool(False),
0018 sipmQTSShift = cms.int32(0),
0019 sipmQNTStoSum = cms.int32(3),
0020 setNegativeFlagsQIE8 = cms.required.bool,
0021 setNegativeFlagsQIE11 = cms.required.bool,
0022 setNoiseFlagsQIE8 = cms.required.bool,
0023 setNoiseFlagsQIE11 = cms.required.bool,
0024 setPulseShapeFlagsQIE8 = cms.required.bool,
0025 setPulseShapeFlagsQIE11 = cms.required.bool,
0026 setLegacyFlagsQIE8 = cms.required.bool,
0027 setLegacyFlagsQIE11 = cms.required.bool,
0028 algorithm = cms.PSet(
0029 Class = cms.string('SimpleHBHEPhase1Algo'),
0030 useM2 = cms.bool(False),
0031 useM3 = cms.bool(True),
0032 useMahi = cms.bool(True),
0033 firstSampleShift = cms.int32(0),
0034 samplesToAdd = cms.int32(2),
0035 correctionPhaseNS = cms.double(6),
0036 tdcTimeShift = cms.double(0),
0037 correctForPhaseContainment = cms.bool(True),
0038 applyLegacyHBMCorrection = cms.bool(True),
0039 calculateArrivalTime = cms.bool(False),
0040 timeAlgo = cms.int32(1),
0041 thEnergeticPulses = cms.double(5),
0042 applyFixPCC = cms.bool(False)
0043 ),
0044 flagParametersQIE8 = cms.PSet(),
0045 flagParametersQIE11 = cms.PSet(),
0046 pulseShapeParametersQIE8 = cms.PSet(),
0047 pulseShapeParametersQIE11 = cms.PSet(),
0048 mightGet = cms.optional.untracked.vstring
0049 )
0050 for a in args:
0051 mod.update_(a)
0052 mod.update_(kwargs)
0053 return mod