15 from CaloClusterCorrection.constants
import \
16 CALOCORR_EMB2, CALOCORR_EME2, EMB2, EME2
22 CaloSw_sample_energies = [50*GeV, 100*GeV, 200*GeV]
29 region = CALOCORR_EMB2
30 correction_coef = 0.001
31 interp_barriers = [0.8]
34 energies = CaloSw_sample_energies
38 [ 0.05, 6.368485e-01],
39 [ 0.15, 6.650752e-01],
40 [ 0.25, 7.123238e-01],
41 [ 0.35, 8.099820e-01],
42 [ 0.45, 9.070935e-01],
43 [ 0.55, 9.354902e-01],
44 [ 0.65, 9.148351e-01],
45 [ 0.75, 9.467127e-01],
46 [ 0.85, -5.690570e-01],
47 [ 0.95, -6.839550e-01],
48 [ 1.05, -8.904216e-01],
49 [ 1.15, -1.011007e+00],
50 [ 1.25, -1.295527e+00],
51 [ 1.35, -1.119071e+00],
52 [ 1.45, -1.491369e+00],
56 [ 0.05, 5.108382e-01],
57 [ 0.15, 5.200147e-01],
58 [ 0.25, 5.378089e-01],
59 [ 0.35, 6.997061e-01],
60 [ 0.45, 7.876812e-01],
61 [ 0.55, 8.096306e-01],
62 [ 0.65, 8.216495e-01],
63 [ 0.75, 8.864841e-01],
64 [ 0.85, -4.780463e-01],
65 [ 0.95, -5.635048e-01],
66 [ 1.05, -7.141002e-01],
67 [ 1.15, -8.910146e-01],
68 [ 1.25, -1.158082e+00],
69 [ 1.35, -1.123030e+00],
70 [ 1.45, -1.179254e+00],
74 [ 0.05, 4.046394e-01],
75 [ 0.15, 4.084462e-01],
76 [ 0.25, 4.279229e-01],
77 [ 0.35, 5.190943e-01],
78 [ 0.45, 6.200826e-01],
79 [ 0.55, 6.732781e-01],
80 [ 0.65, 7.164665e-01],
81 [ 0.75, 7.926999e-01],
82 [ 0.85, -3.220841e-01],
83 [ 0.95, -4.310168e-01],
84 [ 1.05, -5.525186e-01],
85 [ 1.15, -7.620540e-01],
86 [ 1.25, -1.023037e+00],
87 [ 1.35, -1.033757e+00],
88 [ 1.45, -2.017682e+00],
97 region = CALOCORR_EME2
98 correction_coef = 0.001
99 interp_barriers = [2.3]
102 energies = CaloSw_sample_energies
107 _phi_offset = 2*math.pi/256/6*1000
110 [ 1.45, -2.390531+_phi_offset],
111 [ 1.55, -4.592782+_phi_offset],
112 [ 1.65, -4.707693+_phi_offset],
113 [ 1.75, -4.613757+_phi_offset],
114 [ 1.85, -4.714106+_phi_offset],
115 [ 1.95, -4.612117+_phi_offset],
116 [ 2.05, -4.719658+_phi_offset],
117 [ 2.15, -4.770102+_phi_offset],
118 [ 2.25, -4.969137+_phi_offset],
119 [ 2.35, -3.498540+_phi_offset],
120 [ 2.45, -3.330409+_phi_offset],
124 [ 1.45, -3.832055+_phi_offset],
125 [ 1.55, -4.514931+_phi_offset],
126 [ 1.65, -4.553897+_phi_offset],
127 [ 1.75, -4.531036+_phi_offset],
128 [ 1.85, -4.642853+_phi_offset],
129 [ 1.95, -4.626890+_phi_offset],
130 [ 2.05, -4.679615+_phi_offset],
131 [ 2.15, -4.700794+_phi_offset],
132 [ 2.25, -4.765519+_phi_offset],
133 [ 2.35, -3.645206+_phi_offset],
134 [ 2.45, -3.462443+_phi_offset],
138 [ 1.45, -3.510859+_phi_offset],
139 [ 1.55, -4.492770+_phi_offset],
140 [ 1.65, -4.534856+_phi_offset],
141 [ 1.75, -4.529166+_phi_offset],
142 [ 1.85, -4.555026+_phi_offset],
143 [ 1.95, -4.560039+_phi_offset],
144 [ 2.05, -4.625474+_phi_offset],
145 [ 2.15, -4.673238+_phi_offset],
146 [ 2.25, -4.724827+_phi_offset],
147 [ 2.35, -3.778890+_phi_offset],
148 [ 2.45, -3.618776+_phi_offset],
155 CaloSwPhioff_v2_parms = { EMB2 : CaloSwPhioff_v2_b_parms,
156 EME2 : CaloSwPhioff_v2_e_parms,