CMS 3D CMS Logo

Reconstruction_Data_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 
6 
7 #HF cleaning for data in the new design
8 # adding q tests for those lines
9 #particleFlowRecHitHCAL.LongShortFibre_Cut = 30.
10 #particleFlowRecHitHCAL.ApplyPulseDPG = True
11 
12 
13 for qTest in particleFlowRecHitHF.producers[0].qualityTests:
14  if qTest.name == 'PFRecHitQTestHCALChannel':
15  qTest.maxSeverities.append(9)
16  qTest.cleaningThresholds.append(30.)
17  qTest.flags.append('HFDigi')
18 
19 #--- Initial (Run1) HCAL data-specific flags customization
20 import RecoLocalCalo.HcalRecAlgos.RemoveAddSevLevel as HcalRemoveAddSevLevel
21 HcalRemoveAddSevLevel.AddFlag(hcalRecAlgos,"HFDigiTime",11,verbose=False)
22 HcalRemoveAddSevLevel.AddFlag(hcalRecAlgos,"HBHEFlatNoise",12)
23 HcalRemoveAddSevLevel.AddFlag(hcalRecAlgos,"HBHENegativeNoise",12)
24 
25 #--- Subsequent era-wise HCAL data-specific flags customization
26 
27 from Configuration.Eras.Modifier_run2_25ns_specific_cff import run2_25ns_specific
28 def _modName(algos):
29  HcalRemoveAddSevLevel.AddFlag(algos,"HBHEFlatNoise",8)
30  HcalRemoveAddSevLevel.AddFlag(algos,"HFDigiTime",8)
31 run2_25ns_specific.toModify(hcalRecAlgos, _modName)
32 
33 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
34 def _modName(algos):
35  HcalRemoveAddSevLevel.RemoveFlag(algos,"HFDigiTime")
36 run2_HCAL_2017.toModify(hcalRecAlgos, _modName)
37 
38 #--- NB: MC and data get back in sync for >= Run3 ------------------------
39 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
40 def _modName(algos):
41  HcalRemoveAddSevLevel.AddFlag(algos,"HBHENegativeNoise",8)
42 run3_HB.toModify(hcalRecAlgos, _modName)
43 
44 
45 CSCHaloData.ExpectedBX = cms.int32(3)
46 
47 from JetMETCorrections.Configuration.JetCorrectors_cff import ak4PFCHSL1FastL2L3ResidualCorrectorTask, ak4PFCHSL1FastL2L3ResidualCorrectorTask
48 
49 from JetMETCorrections.Configuration.JetCorrectors_cff import ak4PFCHSResidualCorrector, ak4PFCHSL1FastL2L3ResidualCorrector
50 jetCorrectorsForRecoTask.replace(ak4PFCHSL1FastL2L3CorrectorTask, ak4PFCHSL1FastL2L3ResidualCorrectorTask)