1 import FWCore.ParameterSet.Config
as cms
8 hcalDigiAlCaMB.InputLabel =
'source' 11 hcalminbiasHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
13 eventSetupPathsKey=
'HcalCalMinBias',
17 import RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
18 hbherecoMBNZS = RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi.hbheprereco.clone(
19 digiLabelQIE8 =
"hcalDigiAlCaMB",
20 digiLabelQIE11 =
"hcalDigiAlCaMB",
22 dropZSmarkedPassed =
False,
29 setNegativeFlagsQIE8 =
False,
30 setNegativeFlagsQIE11 =
False,
31 setNoiseFlagsQIE8 =
True,
32 setNoiseFlagsQIE11 =
False,
33 setPulseShapeFlagsQIE8 =
False,
34 setPulseShapeFlagsQIE11 =
False,
35 setLegacyFlagsQIE8 =
False,
36 setLegacyFlagsQIE11 =
False,
39 hbherecoMBNZS.algorithm.firstSampleShift = 0
41 import RecoLocalCalo.HcalRecProducers.hosimplereco_cfi
42 horecoMBNZS = RecoLocalCalo.HcalRecProducers.hosimplereco_cfi.hosimplereco.clone()
44 horecoMBNZS.firstSample = 4
45 horecoMBNZS.samplesToAdd = 4
46 horecoMBNZS.digiLabel =
'hcalDigiAlCaMB' 47 horecoMBNZS.tsFromDB =
False 48 horecoMBNZS.dropZSmarkedPassed =
False 50 import RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi
51 hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi.hfsimplereco.clone()
53 hfrecoMBNZS.firstSample = 2
54 hfrecoMBNZS.samplesToAdd = 2
55 hfrecoMBNZS.digiLabel =
'hcalDigiAlCaMB' 56 hfrecoMBNZS.tsFromDB =
False 57 hfrecoMBNZS.dropZSmarkedPassed =
False 59 seqALCARECOHcalCalMinBiasDigi = cms.Sequence(hcalminbiasHLT*hcalDigiAlCaMB*gtDigisAlCaMB)
60 seqALCARECOHcalCalMinBiasDigiNoHLT = cms.Sequence(hcalDigiAlCaMB*gtDigisAlCaMB)
62 seqALCARECOHcalCalMinBias = cms.Sequence(hbherecoMBNZS*horecoMBNZS*hbherecoNoise*hfrecoNoise*hfrecoMBNZS*horecoNoise)
65 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
66 hfprerecoNoise = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
67 digiLabel =
"hcalDigiAlCaMB",
68 dropZSmarkedPassed =
False,
70 sumAllTimeSlices =
False,
73 hfprerecoMBNZS = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
74 digiLabel =
"hcalDigiAlCaMB",
75 dropZSmarkedPassed =
False,
77 sumAllTimeSlices =
True,
81 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
82 _phase1_hfrecoNoise = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
83 inputLabel =
"hfprerecoNoise",
84 setNoiseFlags =
False,
86 Class =
"HFSimpleTimeCheck",
87 rejectAllFailures =
False 90 _phase1_hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
91 inputLabel =
"hfprerecoMBNZS",
92 setNoiseFlags =
False,
94 Class =
"HFSimpleTimeCheck",
95 rejectAllFailures =
False 99 _phase1_seqALCARECOHcalCalMinBias = seqALCARECOHcalCalMinBias.copy()
100 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoMBNZS)
101 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoNoise)
103 from Configuration.Eras.Modifier_run2_HF_2017_cff
import run2_HF_2017
104 run2_HF_2017.toReplaceWith( seqALCARECOHcalCalMinBias, _phase1_seqALCARECOHcalCalMinBias )
105 run2_HF_2017.toReplaceWith( hfrecoNoise, _phase1_hfrecoNoise )
106 run2_HF_2017.toReplaceWith( hfrecoMBNZS, _phase1_hfrecoMBNZS )
108 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
109 hbheplan1MBNZS = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
110 hbheInput =
"hbheprerecoMBNZS" 112 hbheplan1Noise = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
113 hbheInput =
"hbheprerecoNoise" 116 from Configuration.Eras.Modifier_run2_HCAL_2017_cff
import run2_HCAL_2017
117 run2_HCAL_2017.toModify( hbherecoMBNZS,
122 run2_HCAL_2017.toModify( hbherecoNoise,
128 _plan1_seqALCARECOHcalCalMinBias = _phase1_seqALCARECOHcalCalMinBias.copy()
129 hbheprerecoMBNZS = hbherecoMBNZS.clone()
130 hbheprerecoNoise = hbherecoNoise.clone()
131 _plan1_seqALCARECOHcalCalMinBias.insert(0,hbheprerecoNoise)
132 _plan1_seqALCARECOHcalCalMinBias.insert(0,hbheprerecoMBNZS)
133 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff
import run2_HEPlan1_2017
134 run2_HEPlan1_2017.toReplaceWith(hbherecoMBNZS, hbheplan1MBNZS)
135 run2_HEPlan1_2017.toReplaceWith(hbherecoNoise, hbheplan1Noise)
136 run2_HEPlan1_2017.toReplaceWith(seqALCARECOHcalCalMinBias, _plan1_seqALCARECOHcalCalMinBias)