CMS 3D CMS Logo

particleFlowZeroSuppressionECAL_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 pfZeroSuppressionThresholds_EB = [0.080]*170
4 pfZeroSuppressionThresholds_EEminus = [0.300]*39
5 pfZeroSuppressionThresholds_EEplus = pfZeroSuppressionThresholds_EEminus
6 
7 _pfZeroSuppressionThresholds_EB_2017 = [0.250]*170
8 _pfZeroSuppressionThresholds_EEminus_2017 = [1.25023, 1.25033, 1.25047, 1.25068, 1.25097, 1.25139, 1.25199, 1.25286, 1.2541, 1.25587, # rings 170-179 (EE-) / 209-218 (EE+)
9  1.25842, 1.26207, 1.26729, 1.27479, 1.28553, 1.30092, 1.32299, 1.35462, 1.39995, 1.46493, # rings 180-189 (EE-) / 219-228 (EE+)
10  1.55807, 1.69156, 1.88291, 2.15716, 2.55027, 3.11371, 3.92131, 5.07887, 6.73803, 9.11615, # rings 190-199 (EE-) / 229-238 (EE+)
11  10, 10, 10, 10, 10, 10, 10, 10, 10 ] # rings 200-208 (EE-) / 239-247 (EE+)
12 _pfZeroSuppressionThresholds_EEplus_2017 = _pfZeroSuppressionThresholds_EEminus_2017
13 
14 
15 #
16 # The three different set of thresholds will be used to study
17 # possible new thresholds of pfrechits and effects on high level objects
18 # The values proposed (A, B, C) are driven by expected noise levels
19 # A ~ 2.0 sigma noise equivalent thresholds
20 # B ~ 1.0 sigma noise equivalent thresholds
21 # C ~ 0.5 sigma noise equivalent thresholds
22 #
23 
24 # A
25 _pfZeroSuppressionThresholds_EB_2018_A = [0.180]*170
26 _pfZeroSuppressionThresholds_EEminus_2018_A = [0.22, 0.22, 0.24, 0.26, 0.28, 0.3, 0.32, 0.34, 0.34, 0.36, 0.36, 0.38, 0.38, 0.4, 0.44, 0.46, 0.5, 0.54, 0.58, 0.62, 0.68, 0.72, 0.78, 0.84, 0.9, 1.0, 1.14, 1.36, 1.68, 2.14, 2.8, 3.76, 5.1, 6.94, 9.46, 12.84, 17.3, 23.2, 30.8]
27 _pfZeroSuppressionThresholds_EEplus_2018_A = _pfZeroSuppressionThresholds_EEminus_2018_A
28 
29 _particle_flow_zero_suppression_ECAL_2018_A = cms.PSet(
30  thresholds = cms.vdouble(_pfZeroSuppressionThresholds_EB_2018_A + _pfZeroSuppressionThresholds_EEminus_2018_A + _pfZeroSuppressionThresholds_EEplus_2018_A
31  )
32  )
33 
34 # B
35 _pfZeroSuppressionThresholds_EB_2018_B = [0.140]*170
36 _pfZeroSuppressionThresholds_EEminus_2018_B = [0.11, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.17, 0.18, 0.18, 0.19, 0.19, 0.20, 0.22, 0.23, 0.25, 0.27, 0.29, 0.31, 0.34, 0.36, 0.39, 0.42, 0.45, 0.50, 0.57, 0.68, 0.84, 1.07, 1.40, 1.88, 2.55, 3.47, 4.73, 6.42, 8.65, 11.6, 15.4]
37 _pfZeroSuppressionThresholds_EEplus_2018_B = _pfZeroSuppressionThresholds_EEminus_2018_B
38 
39 
40 _particle_flow_zero_suppression_ECAL_2018_B = cms.PSet(
41  thresholds = cms.vdouble(_pfZeroSuppressionThresholds_EB_2018_B + _pfZeroSuppressionThresholds_EEminus_2018_B + _pfZeroSuppressionThresholds_EEplus_2018_B
42  )
43  )
44 
45 # C
46 _pfZeroSuppressionThresholds_EB_2018_C = [0.100]*170
47 _pfZeroSuppressionThresholds_EEminus_2018_C = [0.055, 0.055, 0.06, 0.065, 0.07, 0.075, 0.08, 0.085, 0.085, 0.09, 0.09, 0.095, 0.095, 0.1, 0.11, 0.115, 0.125, 0.135, 0.145, 0.155, 0.17, 0.18, 0.195, 0.21, 0.225, 0.25, 0.285, 0.34, 0.42, 0.535, 0.7, 0.94, 1.275, 1.735, 2.365, 3.21, 4.325, 5.8, 7.7 ]
48 _pfZeroSuppressionThresholds_EEplus_2018_C = _pfZeroSuppressionThresholds_EEminus_2018_C
49 
50 
51 _particle_flow_zero_suppression_ECAL_2018_C = cms.PSet(
52  thresholds = cms.vdouble(_pfZeroSuppressionThresholds_EB_2018_C + _pfZeroSuppressionThresholds_EEminus_2018_C + _pfZeroSuppressionThresholds_EEplus_2018_C
53  )
54  )
55 
56 
57 
58 particle_flow_zero_suppression_ECAL = cms.PSet(
59  thresholds = cms.vdouble(pfZeroSuppressionThresholds_EB + pfZeroSuppressionThresholds_EEminus + pfZeroSuppressionThresholds_EEplus
60  )
61  )
62 
63 _particle_flow_zero_suppression_ECAL_2017 = cms.PSet(
64  thresholds = cms.vdouble(_pfZeroSuppressionThresholds_EB_2017 + _pfZeroSuppressionThresholds_EEminus_2017 + _pfZeroSuppressionThresholds_EEplus_2017
65  )
66  )
67 
68 #
69 # The following commented lines were used in 2017 to set SR@PF eta dependent thresholds
70 # as defined in _particle_flow_zero_suppression_ECAL_2017
71 #
72 # For 2018 the thresholds have been temporarily removed (lowered to 80 MeV in EB and 300 MeV in EE,
73 # then overseeded by the gathering and seeding PF cluster thresholds)
74 # Later, we may need to reintroduce eta dependent thresholds
75 # to mitigate the effect of the noise
76 #
77 
78 #from Configuration.Eras.Modifier_run2_ECAL_2017_cff import run2_ECAL_2017
79 #run2_ECAL_2017.toReplaceWith(particle_flow_zero_suppression_ECAL, _particle_flow_zero_suppression_ECAL_2017)
80 
81 #from Configuration.Eras.Modifier_phase2_ecal_cff import phase2_ecal
82 #phase2_ecal.toReplaceWith(particle_flow_zero_suppression_ECAL, _particle_flow_zero_suppression_ECAL_2017)