Skip to content

Commit

Permalink
As suggested by Andrea
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Mar 15, 2023
1 parent 2cda45b commit c2798a1
Showing 1 changed file with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@

import RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
hbherecoMBNZS = RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi.hbheprereco.clone(
digiLabelQIE8 = cms.InputTag("hcalDigiAlCaMB"),
digiLabelQIE11 = cms.InputTag("hcalDigiAlCaMB"),
### tsFromDB = cms.bool(False),
dropZSmarkedPassed = cms.bool(False),
digiLabelQIE8 = "hcalDigiAlCaMB",
digiLabelQIE11 = "hcalDigiAlCaMB",
### tsFromDB = False,
dropZSmarkedPassed = False,
algorithm = dict(
useMahi = cms.bool(False),
useM2 = cms.bool(False),
useM3 = cms.bool(False)
useMahi = False,
useM2 = False,
useM3 = False
),
processQIE11 = cms.bool(False),
setNegativeFlagsQIE8 = cms.bool(False),
setNegativeFlagsQIE11 = cms.bool(False),
setNoiseFlagsQIE8 = cms.bool(True),
setNoiseFlagsQIE11 = cms.bool(False),
setPulseShapeFlagsQIE8 = cms.bool(False),
setPulseShapeFlagsQIE11 = cms.bool(False),
setLegacyFlagsQIE8 = cms.bool(False),
setLegacyFlagsQIE11 = cms.bool(False),
processQIE11 = False,
setNegativeFlagsQIE8 = False,
setNegativeFlagsQIE11 = False,
setNoiseFlagsQIE8 = True,
setNoiseFlagsQIE11 = False,
setPulseShapeFlagsQIE8 = False,
setPulseShapeFlagsQIE11 = False,
setLegacyFlagsQIE8 = False,
setLegacyFlagsQIE11 = False,
)

hbherecoMBNZS.algorithm.firstSampleShift = 0 # explicitly repeating the default
Expand All @@ -44,17 +44,17 @@
horecoMBNZS.firstSample = 4
horecoMBNZS.samplesToAdd = 4
horecoMBNZS.digiLabel = 'hcalDigiAlCaMB'
horecoMBNZS.tsFromDB = cms.bool(False)
horecoMBNZS.dropZSmarkedPassed = cms.bool(False)
horecoMBNZS.tsFromDB = False
horecoMBNZS.dropZSmarkedPassed = False

import RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi
hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi.hfsimplereco.clone()

hfrecoMBNZS.firstSample = 2 # Run 2 default before 2017
hfrecoMBNZS.samplesToAdd = 2
hfrecoMBNZS.digiLabel = 'hcalDigiAlCaMB'
hfrecoMBNZS.tsFromDB = cms.bool(False)
hfrecoMBNZS.dropZSmarkedPassed = cms.bool(False)
hfrecoMBNZS.tsFromDB = False
hfrecoMBNZS.dropZSmarkedPassed = False

seqALCARECOHcalCalMinBiasDigi = cms.Sequence(hcalminbiasHLT*hcalDigiAlCaMB*gtDigisAlCaMB)
seqALCARECOHcalCalMinBiasDigiNoHLT = cms.Sequence(hcalDigiAlCaMB*gtDigisAlCaMB)
Expand All @@ -64,35 +64,35 @@

import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
hfprerecoNoise = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
digiLabel = cms.InputTag("hcalDigiAlCaMB"),
dropZSmarkedPassed = cms.bool(False),
tsFromDB = cms.bool(False),
sumAllTimeSlices = cms.bool(False),
forceSOI = cms.int32(0)
digiLabel = "hcalDigiAlCaMB",
dropZSmarkedPassed = False,
tsFromDB = False,
sumAllTimeSlices = False,
forceSOI = 0
)
hfprerecoMBNZS = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
digiLabel = cms.InputTag("hcalDigiAlCaMB"),
dropZSmarkedPassed = cms.bool(False),
tsFromDB = cms.bool(False),
sumAllTimeSlices = cms.bool(True),
forceSOI = cms.int32(1)
digiLabel = "hcalDigiAlCaMB",
dropZSmarkedPassed = False,
tsFromDB = False,
sumAllTimeSlices = True,
forceSOI = 1
)

import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
_phase1_hfrecoNoise = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
inputLabel = cms.InputTag("hfprerecoNoise"),
setNoiseFlags = cms.bool(False),
inputLabel = "hfprerecoNoise",
setNoiseFlags = False,
algorithm = dict(
Class = cms.string("HFSimpleTimeCheck"),
rejectAllFailures = cms.bool(False)
Class = "HFSimpleTimeCheck",
rejectAllFailures = False
),
)
_phase1_hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
inputLabel = cms.InputTag("hfprerecoMBNZS"),
setNoiseFlags = cms.bool(False),
inputLabel = "hfprerecoMBNZS",
setNoiseFlags = False,
algorithm = dict(
Class = cms.string("HFSimpleTimeCheck"),
rejectAllFailures = cms.bool(False)
Class = "HFSimpleTimeCheck",
rejectAllFailures = False
),
)

Expand All @@ -107,22 +107,22 @@

import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
hbheplan1MBNZS = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
hbheInput = cms.InputTag("hbheprerecoMBNZS")
hbheInput = "hbheprerecoMBNZS"
)
hbheplan1Noise = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
hbheInput = cms.InputTag("hbheprerecoNoise")
hbheInput = "hbheprerecoNoise"
)

from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
run2_HCAL_2017.toModify( hbherecoMBNZS,
processQIE11 = cms.bool(True),
processQIE11 = True,
# temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
# setNoiseFlagsQIE11 = cms.bool(True),
# setNoiseFlagsQIE11 = True,
)
run2_HCAL_2017.toModify( hbherecoNoise,
processQIE11 = cms.bool(True),
processQIE11 = True,
# temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
# setNoiseFlagsQIE11 = cms.bool(True),
# setNoiseFlagsQIE11 = True,
)

_plan1_seqALCARECOHcalCalMinBias = _phase1_seqALCARECOHcalCalMinBias.copy()
Expand Down

0 comments on commit c2798a1

Please sign in to comment.