Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:48:04

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #------------------------------------------------
0004 #AlCaReco filtering for HCAL minbias:
0005 #------------------------------------------------
0006 
0007 from Calibration.HcalAlCaRecoProducers.ALCARECOHcalCalMinBiasNoise_cff import *
0008 
0009 import HLTrigger.HLTfilters.hltHighLevel_cfi
0010 hcalminbiasHLT =  HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
0011 #    HLTPaths = ['HLT_HcalPhiSym'],
0012     eventSetupPathsKey='HcalCalMinBiasHI',
0013     throw = False #dont throw except on unknown path name 
0014 )
0015 
0016 import RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
0017 
0018 import RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi
0019 hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi.hfsimplereco.clone()
0020 
0021 hfrecoMBNZS.firstSample = 2
0022 hfrecoMBNZS.samplesToAdd = 2
0023 hfrecoMBNZS.digiLabel = 'hcalDigiAlCaMB'
0024 hfrecoMBNZS.tsFromDB = cms.bool(False)
0025 hfrecoMBNZS.dropZSmarkedPassed = cms.bool(False)
0026 
0027 seqALCARECOHcalCalMinBiasDigi = cms.Sequence(hcalminbiasHLT*hcalDigiAlCaMB*gtDigisAlCaMB)
0028 seqALCARECOHcalCalMinBias = cms.Sequence(hbherecoNoise*hfrecoNoise*hfrecoMBNZS*horecoNoise)
0029 
0030 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
0031 hfprerecoMBNZS = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
0032     digiLabel = cms.InputTag("hcalDigiAlCaMB"),
0033     dropZSmarkedPassed = cms.bool(False),
0034     tsFromDB = cms.bool(False),
0035     sumAllTimeSlices = cms.bool(True),
0036     forceSOI = cms.int32(1)
0037 )
0038 hfprerecoNoise = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
0039     digiLabel = cms.InputTag("hcalDigiAlCaMB"),
0040     dropZSmarkedPassed = cms.bool(False),
0041     tsFromDB = cms.bool(False),
0042     sumAllTimeSlices = cms.bool(False),
0043     forceSOI = cms.int32(0)
0044 )
0045 
0046 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
0047 _phase1_hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
0048     inputLabel = cms.InputTag("hfprerecoMBNZS"),
0049     setNoiseFlags = cms.bool(False),
0050     algorithm = dict(
0051         Class = cms.string("HFSimpleTimeCheck"),
0052         rejectAllFailures = cms.bool(False)
0053     ),
0054 )
0055 _phase1_hfrecoNoise = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
0056     inputLabel = cms.InputTag("hfprerecoNoise"),
0057     setNoiseFlags = cms.bool(False),
0058     algorithm = dict(
0059         Class = cms.string("HFSimpleTimeCheck"),
0060         rejectAllFailures = cms.bool(False)
0061     ),
0062 )
0063 
0064 _phase1_seqALCARECOHcalCalMinBias = seqALCARECOHcalCalMinBias.copy()
0065 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoMBNZS)
0066 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoNoise)
0067 
0068 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
0069 run2_HF_2017.toReplaceWith( seqALCARECOHcalCalMinBias, _phase1_seqALCARECOHcalCalMinBias )
0070 run2_HF_2017.toReplaceWith( hfrecoNoise, _phase1_hfrecoNoise )
0071 run2_HF_2017.toReplaceWith( hfrecoMBNZS, _phase1_hfrecoMBNZS )
0072 
0073 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
0074 hbheplan1Noise = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
0075     hbheInput = cms.InputTag("hbheprerecoNoise")
0076 )
0077 
0078 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
0079 run2_HCAL_2017.toModify( hbherecoNoise,
0080     processQIE11 = cms.bool(True),
0081 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
0082 #    setNoiseFlagsQIE11 = cms.bool(True),
0083 )
0084 
0085 _plan1_seqALCARECOHcalCalMinBias = _phase1_seqALCARECOHcalCalMinBias.copy()
0086 hbheprerecoNoise = hbherecoNoise.clone()
0087 _plan1_seqALCARECOHcalCalMinBias.insert(0,hbheprerecoNoise)
0088 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
0089 run2_HEPlan1_2017.toReplaceWith(hbherecoNoise, hbheplan1Noise)
0090 run2_HEPlan1_2017.toReplaceWith(seqALCARECOHcalCalMinBias, _plan1_seqALCARECOHcalCalMinBias)