Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-19 23:59:17

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 hcalDigiAlCaMB.InputLabel = 'source'
0009 
0010 import HLTrigger.HLTfilters.hltHighLevel_cfi
0011 hcalminbiasHLT =  HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
0012 #    HLTPaths = ['HLT_HcalPhiSym'],
0013     eventSetupPathsKey='HcalCalMinBias',
0014     throw = False #dont throw except on unknown path name 
0015 )
0016 
0017 import RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
0018 hbherecoMBNZS = RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi.hbheprereco.clone(
0019     digiLabelQIE8  = cms.InputTag("hcalDigiAlCaMB"),
0020     digiLabelQIE11 = cms.InputTag("hcalDigiAlCaMB"),
0021 ###    tsFromDB = cms.bool(False),
0022     dropZSmarkedPassed = cms.bool(False),
0023     algorithm = dict(
0024         useMahi = cms.bool(False),
0025         useM2 = cms.bool(False),
0026         useM3 = cms.bool(False)
0027     ),
0028     processQIE11 = cms.bool(False),
0029     setNegativeFlagsQIE8 = cms.bool(False),
0030     setNegativeFlagsQIE11 = cms.bool(False),
0031     setNoiseFlagsQIE8 = cms.bool(True),
0032     setNoiseFlagsQIE11 = cms.bool(False),
0033     setPulseShapeFlagsQIE8 = cms.bool(False),
0034     setPulseShapeFlagsQIE11 = cms.bool(False),
0035     setLegacyFlagsQIE8 = cms.bool(False),
0036     setLegacyFlagsQIE11 = cms.bool(False),
0037 )
0038 
0039 hbherecoMBNZS.algorithm.firstSampleShift = 0 # explicitly repeating the default
0040 
0041 import RecoLocalCalo.HcalRecProducers.hosimplereco_cfi
0042 horecoMBNZS = RecoLocalCalo.HcalRecProducers.hosimplereco_cfi.hosimplereco.clone()
0043 
0044 horecoMBNZS.firstSample = 4
0045 horecoMBNZS.samplesToAdd = 4
0046 horecoMBNZS.digiLabel = 'hcalDigiAlCaMB'
0047 horecoMBNZS.tsFromDB = cms.bool(False)
0048 horecoMBNZS.dropZSmarkedPassed = cms.bool(False)
0049 
0050 import RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi
0051 hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi.hfsimplereco.clone()
0052 
0053 hfrecoMBNZS.firstSample = 2   # Run 2 default before 2017
0054 hfrecoMBNZS.samplesToAdd = 2
0055 hfrecoMBNZS.digiLabel = 'hcalDigiAlCaMB'
0056 hfrecoMBNZS.tsFromDB = cms.bool(False)
0057 hfrecoMBNZS.dropZSmarkedPassed = cms.bool(False)
0058 
0059 seqALCARECOHcalCalMinBiasDigi = cms.Sequence(hcalminbiasHLT*hcalDigiAlCaMB*gtDigisAlCaMB)
0060 seqALCARECOHcalCalMinBiasDigiNoHLT = cms.Sequence(hcalDigiAlCaMB*gtDigisAlCaMB)
0061 
0062 seqALCARECOHcalCalMinBias = cms.Sequence(hbherecoMBNZS*horecoMBNZS*hbherecoNoise*hfrecoNoise*hfrecoMBNZS*horecoNoise)
0063 
0064 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
0065 hfprerecoNoise = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
0066     digiLabel = cms.InputTag("hcalDigiAlCaMB"),
0067     dropZSmarkedPassed = cms.bool(False),
0068     tsFromDB = cms.bool(False),
0069     sumAllTimeSlices = cms.bool(False),
0070     forceSOI = cms.int32(0)
0071 )
0072 hfprerecoMBNZS = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
0073     digiLabel = cms.InputTag("hcalDigiAlCaMB"),
0074     dropZSmarkedPassed = cms.bool(False),
0075     tsFromDB = cms.bool(False),
0076     sumAllTimeSlices = cms.bool(True),
0077     forceSOI = cms.int32(1)
0078 )
0079 
0080 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
0081 _phase1_hfrecoNoise = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
0082     inputLabel = cms.InputTag("hfprerecoNoise"),
0083     setNoiseFlags = cms.bool(False),
0084     algorithm = dict(
0085         Class = cms.string("HFSimpleTimeCheck"),
0086         rejectAllFailures = cms.bool(False)
0087     ),
0088 )
0089 _phase1_hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
0090     inputLabel = cms.InputTag("hfprerecoMBNZS"),
0091     setNoiseFlags = cms.bool(False),
0092     algorithm = dict(
0093         Class = cms.string("HFSimpleTimeCheck"),
0094         rejectAllFailures = cms.bool(False)
0095     ),
0096 )
0097 
0098 _phase1_seqALCARECOHcalCalMinBias = seqALCARECOHcalCalMinBias.copy()
0099 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoMBNZS)
0100 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoNoise)
0101 
0102 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
0103 run2_HF_2017.toReplaceWith( seqALCARECOHcalCalMinBias, _phase1_seqALCARECOHcalCalMinBias )
0104 run2_HF_2017.toReplaceWith( hfrecoNoise, _phase1_hfrecoNoise )
0105 run2_HF_2017.toReplaceWith( hfrecoMBNZS, _phase1_hfrecoMBNZS )
0106 
0107 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
0108 hbheplan1MBNZS = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
0109     hbheInput = cms.InputTag("hbheprerecoMBNZS")
0110 )
0111 hbheplan1Noise = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
0112     hbheInput = cms.InputTag("hbheprerecoNoise")
0113 )
0114 
0115 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
0116 run2_HCAL_2017.toModify( hbherecoMBNZS,
0117     processQIE11 = cms.bool(True),
0118 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
0119 #    setNoiseFlagsQIE11 = cms.bool(True),
0120 )
0121 run2_HCAL_2017.toModify( hbherecoNoise,
0122     processQIE11 = cms.bool(True),
0123 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
0124 #    setNoiseFlagsQIE11 = cms.bool(True),
0125 )
0126 
0127 _plan1_seqALCARECOHcalCalMinBias = _phase1_seqALCARECOHcalCalMinBias.copy()
0128 hbheprerecoMBNZS = hbherecoMBNZS.clone()
0129 hbheprerecoNoise = hbherecoNoise.clone()
0130 _plan1_seqALCARECOHcalCalMinBias.insert(0,hbheprerecoNoise)
0131 _plan1_seqALCARECOHcalCalMinBias.insert(0,hbheprerecoMBNZS)
0132 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
0133 run2_HEPlan1_2017.toReplaceWith(hbherecoMBNZS, hbheplan1MBNZS)
0134 run2_HEPlan1_2017.toReplaceWith(hbherecoNoise, hbheplan1Noise)
0135 run2_HEPlan1_2017.toReplaceWith(seqALCARECOHcalCalMinBias, _plan1_seqALCARECOHcalCalMinBias)