Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-05 04:09:36

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.StandardSequences.Reconstruction_cff import *
0004 
0005 
0006 
0007 #HF cleaning for data in the new design
0008 # adding q tests for those lines            
0009 #particleFlowRecHitHCAL.LongShortFibre_Cut = 30.
0010 #particleFlowRecHitHCAL.ApplyPulseDPG = True
0011 
0012 
0013 for qTest in particleFlowRecHitHF.producers[0].qualityTests:
0014     if qTest.name == 'PFRecHitQTestHCALChannel':
0015         qTest.maxSeverities.append(9)
0016         qTest.cleaningThresholds.append(30.)
0017         qTest.flags.append('HFDigi')
0018              
0019 #--- Initial (Run1) HCAL data-specific flags customization
0020 import RecoLocalCalo.HcalRecAlgos.RemoveAddSevLevel as HcalRemoveAddSevLevel
0021 HcalRemoveAddSevLevel.AddFlag(hcalRecAlgos,"HFDigiTime",11,verbose=False)
0022 HcalRemoveAddSevLevel.AddFlag(hcalRecAlgos,"HBHEFlatNoise",12)
0023 HcalRemoveAddSevLevel.AddFlag(hcalRecAlgos,"HBHENegativeNoise",12)
0024 
0025 #--- Subsequent era-wise HCAL data-specific flags customization 
0026 
0027 from Configuration.Eras.Modifier_run2_25ns_specific_cff import run2_25ns_specific
0028 def _modName(algos):
0029    HcalRemoveAddSevLevel.AddFlag(algos,"HBHEFlatNoise",8)
0030    HcalRemoveAddSevLevel.AddFlag(algos,"HFDigiTime",8)
0031 run2_25ns_specific.toModify(hcalRecAlgos, _modName)
0032 
0033 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
0034 def _modName(algos):
0035    HcalRemoveAddSevLevel.RemoveFlag(algos,"HFDigiTime")  
0036 run2_HCAL_2017.toModify(hcalRecAlgos, _modName)
0037 
0038 #--- NB: MC and data get back in sync for >= Run3  ------------------------
0039 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
0040 def _modName(algos):
0041    HcalRemoveAddSevLevel.AddFlag(algos,"HBHENegativeNoise",8)
0042 run3_HB.toModify(hcalRecAlgos, _modName)
0043 
0044 
0045 CSCHaloData.ExpectedBX = cms.int32(3)
0046 
0047 from JetMETCorrections.Configuration.JetCorrectors_cff import ak4PFCHSL1FastL2L3ResidualCorrectorTask, ak4PFCHSL1FastL2L3ResidualCorrectorTask
0048 
0049 from JetMETCorrections.Configuration.JetCorrectors_cff import ak4PFCHSResidualCorrector, ak4PFCHSL1FastL2L3ResidualCorrector
0050 jetCorrectorsForRecoTask.replace(ak4PFCHSL1FastL2L3CorrectorTask, ak4PFCHSL1FastL2L3ResidualCorrectorTask)