Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:47

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  = "hcalDigiAlCaMB",
0020     digiLabelQIE11 = "hcalDigiAlCaMB",
0021 ###    tsFromDB = False,
0022     dropZSmarkedPassed = False,
0023     algorithm = dict(
0024         useMahi = False,
0025         useM2 = False,
0026         useM3 = False
0027     ),
0028     processQIE11 = False,
0029     setNegativeFlagsQIE8 = False,
0030     setNegativeFlagsQIE11 = False,
0031     setNoiseFlagsQIE8 = True,
0032     setNoiseFlagsQIE11 = False,
0033     setPulseShapeFlagsQIE8 = False,
0034     setPulseShapeFlagsQIE11 = False,
0035     setLegacyFlagsQIE8 = False,
0036     setLegacyFlagsQIE11 = 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 = False
0048 horecoMBNZS.dropZSmarkedPassed = 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 = False
0057 hfrecoMBNZS.dropZSmarkedPassed = 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 #seqALCARECOHcalCalMinBias = cms.Sequence(hbherecoMBNZS*hbherecoNoise*hfrecoNoise*hfrecoMBNZS)
0064 
0065 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
0066 hfprerecoNoise = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
0067     digiLabel = "hcalDigiAlCaMB",
0068     dropZSmarkedPassed = False,
0069     tsFromDB = False,
0070     sumAllTimeSlices = False,
0071     forceSOI = 0
0072 )
0073 hfprerecoMBNZS = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
0074     digiLabel = "hcalDigiAlCaMB",
0075     dropZSmarkedPassed = False,
0076     tsFromDB = False,
0077     sumAllTimeSlices = True,
0078     forceSOI = 1
0079 )
0080 
0081 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
0082 _phase1_hfrecoNoise = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
0083     inputLabel = "hfprerecoNoise",
0084     setNoiseFlags = False,
0085     algorithm = dict(
0086         Class = "HFSimpleTimeCheck",
0087         rejectAllFailures = False
0088     ),
0089 )
0090 _phase1_hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
0091     inputLabel = "hfprerecoMBNZS",
0092     setNoiseFlags = False,
0093     algorithm = dict(
0094         Class = "HFSimpleTimeCheck",
0095         rejectAllFailures = False
0096     ),
0097 )
0098 
0099 _phase1_seqALCARECOHcalCalMinBias = seqALCARECOHcalCalMinBias.copy()
0100 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoMBNZS)
0101 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoNoise)
0102 
0103 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
0104 run2_HF_2017.toReplaceWith( seqALCARECOHcalCalMinBias, _phase1_seqALCARECOHcalCalMinBias )
0105 run2_HF_2017.toReplaceWith( hfrecoNoise, _phase1_hfrecoNoise )
0106 run2_HF_2017.toReplaceWith( hfrecoMBNZS, _phase1_hfrecoMBNZS )
0107 
0108 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
0109 hbheplan1MBNZS = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
0110     hbheInput = "hbheprerecoMBNZS"
0111 )
0112 hbheplan1Noise = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
0113     hbheInput = "hbheprerecoNoise"
0114 )
0115 
0116 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
0117 run2_HCAL_2017.toModify( hbherecoMBNZS,
0118     processQIE11 = True,
0119 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
0120 #    setNoiseFlagsQIE11 = True,
0121 )
0122 run2_HCAL_2017.toModify( hbherecoNoise,
0123     processQIE11 = True,
0124 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
0125 #    setNoiseFlagsQIE11 = True,
0126 )
0127 
0128 _plan1_seqALCARECOHcalCalMinBias = _phase1_seqALCARECOHcalCalMinBias.copy()
0129 hbheprerecoMBNZS = hbherecoMBNZS.clone()
0130 hbheprerecoNoise = hbherecoNoise.clone()
0131 _plan1_seqALCARECOHcalCalMinBias.insert(0,hbheprerecoNoise)
0132 _plan1_seqALCARECOHcalCalMinBias.insert(0,hbheprerecoMBNZS)
0133 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
0134 run2_HEPlan1_2017.toReplaceWith(hbherecoMBNZS, hbheplan1MBNZS)
0135 run2_HEPlan1_2017.toReplaceWith(hbherecoNoise, hbheplan1Noise)
0136 run2_HEPlan1_2017.toReplaceWith(seqALCARECOHcalCalMinBias, _plan1_seqALCARECOHcalCalMinBias)