CMS 3D CMS Logo

hgcalLayersCalibrationCoefficients_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from Configuration.Eras.Modifier_phase2_hgcalV16_cff import phase2_hgcalV16
4 
6 from . import l1tHGCalTriggerGeometryESProducer_cfi as geomparam
7 
8 AllLayer_weights = cms.vdouble(0.0,
9  0.0158115,
10  0.0286877,
11  0.017707,
12  0.00884719,
13  0.00921472,
14  0.00654193,
15  0.00737344,
16  0.00737619,
17  0.0090818,
18  0.00776757,
19  0.011098,
20  0.00561986,
21  0.012015,
22  0.0105088,
23  0.00834435,
24  0.0113901,
25  0.00995654,
26  0.0120987,
27  0.00708785,
28  0.0101533,
29  0.0108289,
30  0.0143815,
31  0.0145606,
32  0.0133204,
33  0.0137476,
34  0.00911436,
35  0.0275028,
36  0.0338628,
37  0.0674028,
38  0.0546596,
39  0.0634012,
40  0.0613207,
41  0.0653995,
42  0.0450429,
43  0.065412,
44  0.0585679,
45  0.0530456,
46  0.0484401,
47  0.0694564,
48  0.0684182,
49  0.117808,
50  0.126668,
51  0.142361,
52  0.154379,
53  0.102089,
54  0.114404,
55  0.160111,
56  0.178321,
57  0.0964375,
58  0.131446,
59  0.115852,
60  0.326339
61  )
62 
63 TrgLayer_weights = cms.vdouble(0.0,
64  0.0183664,
65  0.,
66  0.0305622,
67  0.,
68  0.0162589,
69  0.,
70  0.0143918,
71  0.,
72  0.0134475,
73  0.,
74  0.0185754,
75  0.,
76  0.0204934,
77  0.,
78  0.016901,
79  0.,
80  0.0207958,
81  0.,
82  0.0167985,
83  0.,
84  0.0238385,
85  0.,
86  0.0301146,
87  0.,
88  0.0274622,
89  0.,
90  0.0468671,
91  0.,
92  0.078819,
93  0.0555831,
94  0.0609312,
95  0.0610768,
96  0.0657626,
97  0.0465653,
98  0.0629383,
99  0.0610061,
100  0.0517326,
101  0.0492882,
102  0.0699336,
103  0.0673457,
104  0.119896,
105  0.125327,
106  0.143235,
107  0.153295,
108  0.104777,
109  0.109345,
110  0.161386,
111  0.174656,
112  0.108053,
113  0.121674,
114  0.1171,
115  0.328053
116  )
117 
118 
119 
120 def trigger_dedx_weights(ecal_layers, reco_weights):
121  weights = []
122  for lid, lw in enumerate(reco_weights):
123  if lid > (ecal_layers+1):
124  weights.append(lw)
125  else:
126  # Only half the layers are read in the EE at L1T
127  if (lid % 2) == 1:
128  weights.append(lw+reco_weights[lid-1])
129  else:
130  weights.append(0)
131  return weights
132 
133 triggerWeights = cms.PSet(
134  weights = cms.vdouble(trigger_dedx_weights(geomparam.CEE_LAYERS, dEdX.weights))
135 )
136 
137 phase2_hgcalV16.toModify(triggerWeights,
138  weights = cms.vdouble(trigger_dedx_weights(geomparam.CEE_LAYERS_V16, dEdX_v16.weights))
139 )