File indexing completed on 2023-03-17 10:42:48
0001 import FWCore.ParameterSet.Config as cms
0002
0003
0004
0005
0006
0007 import HLTrigger.HLTfilters.hltHighLevel_cfi
0008 hcalCalibPedestalHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
0009 eventSetupPathsKey='HcalCalPedestal',
0010 throw = False
0011 )
0012
0013 import EventFilter.HcalRawToDigi.HcalCalibTypeFilter_cfi
0014 hcalCalibPedestal = EventFilter.HcalRawToDigi.HcalCalibTypeFilter_cfi.hcalCalibTypeFilter.clone(
0015
0016 InputLabel = cms.string('hltHcalCalibrationRaw::HLT'),
0017
0018 CalibTypes = cms.vint32( 1 ),
0019 FilterSummary = cms.untracked.bool( False )
0020 )
0021
0022
0023 import EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi
0024 gtDigisAlCaPedestal = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
0025
0026 import EventFilter.HcalRawToDigi.HcalRawToDigi_cfi
0027 hcalDigiAlCaPedestal = EventFilter.HcalRawToDigi.HcalRawToDigi_cfi.hcalDigis.clone()
0028 hcalDigiAlCaPedestal.InputLabel = cms.InputTag('hltHcalCalibrationRaw')
0029
0030 qie10Digis = EventFilter.HcalRawToDigi.HcalRawToDigi_cfi.hcalDigis.clone()
0031 qie10Digis.InputLabel = cms.InputTag('hltHcalCalibrationRaw')
0032 qie10Digis.FEDs = cms.untracked.vint32(1132)
0033
0034 import RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
0035 hbherecoPedestal = RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi.hbheprereco.clone(
0036 digiLabelQIE8 = cms.InputTag("hcalDigiAlCaPedestal"),
0037 digiLabelQIE11 = cms.InputTag("hcalDigiAlCaPedestal"),
0038
0039 dropZSmarkedPassed = cms.bool(False),
0040 algorithm = dict(
0041 useMahi = cms.bool(False),
0042 useM2 = cms.bool(False),
0043 useM3 = cms.bool(False)
0044 ),
0045 processQIE11 = cms.bool(False),
0046 setNegativeFlagsQIE8 = cms.bool(False),
0047 setNegativeFlagsQIE11 = cms.bool(False),
0048 setNoiseFlagsQIE8 = cms.bool(True),
0049 setNoiseFlagsQIE11 = cms.bool(False),
0050 setPulseShapeFlagsQIE8 = cms.bool(False),
0051 setPulseShapeFlagsQIE11 = cms.bool(False),
0052 setLegacyFlagsQIE8 = cms.bool(False),
0053 setLegacyFlagsQIE11 = cms.bool(False),
0054 )
0055
0056 hbherecoPedestal.algorithm.firstSampleShift = -100
0057
0058 import RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi
0059 hfrecoPedestal = RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi.hfsimplereco.clone()
0060 hfrecoPedestal.digiLabel = cms.InputTag('hcalDigiAlCaPedestal')
0061 hfrecoPedestal.firstSample = cms.int32(0)
0062 hfrecoPedestal.samplesToAdd = cms.int32(2)
0063 hfrecoPedestal.dropZSmarkedPassed = cms.bool(False)
0064
0065 import RecoLocalCalo.HcalRecProducers.hosimplereco_cfi
0066 horecoPedestal = RecoLocalCalo.HcalRecProducers.hosimplereco_cfi.hosimplereco.clone()
0067 horecoPedestal.digiLabel = cms.InputTag('hcalDigiAlCaPedestal')
0068 horecoPedestal.firstSample = cms.int32(0)
0069 horecoPedestal.samplesToAdd = cms.int32(4)
0070 horecoPedestal.dropZSmarkedPassed = cms.bool(False)
0071
0072 seqALCARECOHcalCalPedestal = cms.Sequence(hbherecoPedestal*hfrecoPedestal*horecoPedestal)
0073
0074 seqALCARECOHcalCalPedestalDigi = cms.Sequence(hcalCalibPedestalHLT*
0075 hcalCalibPedestal*
0076 hcalDigiAlCaPedestal*
0077 qie10Digis*
0078 gtDigisAlCaPedestal)
0079
0080 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
0081 hfprerecoPedestal = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
0082 digiLabel = cms.InputTag("hcalDigiAlCaPedestal"),
0083 dropZSmarkedPassed = cms.bool(False),
0084 tsFromDB = cms.bool(False),
0085 sumAllTimeSlices = cms.bool(False),
0086 forceSOI = cms.int32(0)
0087 )
0088
0089 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
0090 _phase1_hfrecoPedestal = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
0091 inputLabel = cms.InputTag("hfprerecoPedestal"),
0092 setNoiseFlags = cms.bool(False),
0093 algorithm = dict(
0094 Class = cms.string("HFSimpleTimeCheck"),
0095 rejectAllFailures = cms.bool(False)
0096 ),
0097 )
0098
0099 _phase1_seqALCARECOHcalCalPedestal = seqALCARECOHcalCalPedestal.copy()
0100 _phase1_seqALCARECOHcalCalPedestal.insert(0,hfprerecoPedestal)
0101
0102 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
0103 run2_HF_2017.toReplaceWith( seqALCARECOHcalCalPedestal, _phase1_seqALCARECOHcalCalPedestal )
0104 run2_HF_2017.toReplaceWith( hfrecoPedestal, _phase1_hfrecoPedestal )
0105
0106 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
0107 hbheplan1Pedestal = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
0108 hbheInput = cms.InputTag("hbheprerecoPedestal")
0109 )
0110
0111 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
0112 run2_HCAL_2017.toModify( hbherecoPedestal,
0113 processQIE11 = cms.bool(True),
0114
0115
0116 )
0117
0118 _plan1_seqALCARECOHcalCalPedestal = _phase1_seqALCARECOHcalCalPedestal.copy()
0119 hbheprerecoPedestal = hbherecoPedestal.clone()
0120 _plan1_seqALCARECOHcalCalPedestal.insert(0,hbheprerecoPedestal)
0121 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
0122 run2_HEPlan1_2017.toReplaceWith(hbherecoPedestal, hbheplan1Pedestal)
0123 run2_HEPlan1_2017.toReplaceWith(seqALCARECOHcalCalPedestal, _plan1_seqALCARECOHcalCalPedestal)