ATLAS Offline Software
CaloSwPhioff_v2.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
3 #
4 # File: CaloClusterCorrection/python/CaloSwPhioff_v2.py
5 # Created: Nov 2006, sss
6 # Purpose: Phi position corrections, v2.
7 #
8 # These corrections were derived using DC2 MC files reconstructed
9 # with 8.x.0. Electrons at 50, 100, and 200 GeV were used.
10 # Derived for 5x5 clusters only.
11 #
12 # This was added in LArClusterRec-02-05-12, in 8.6.0.
13 #
14 
15 from CaloClusterCorrection.constants import \
16  CALOCORR_EMB2, CALOCORR_EME2, EMB2, EME2
17 from AthenaCommon.SystemOfUnits import GeV
18 import math
19 
20 
21 # Energies at which corrections were tabulated.
22 CaloSw_sample_energies = [50*GeV, 100*GeV, 200*GeV]
23 
24 
25 
29  region = CALOCORR_EMB2
30  correction_coef = 0.001
31  interp_barriers = [0.8]
32  degree = 3
33  flip_phi = 1
34  energies = CaloSw_sample_energies
35  energy_degree = 2
36  correction = [
37  [
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],
53  ],
54 
55  [
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],
71  ],
72 
73  [
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],
89  ],
90  ]
91 
92 
93 
97  region = CALOCORR_EME2
98  correction_coef = 0.001
99  interp_barriers = [2.3]
100  degree = 3
101  flip_phi = 1
102  energies = CaloSw_sample_energies
103  energy_degree = 2
104  # Note: previous geometry had an erroneous 4.1 mrad offset in phi in ECEM
105  # between generator and reco. This has been fixed since this correction
106  # was last derived; fixed up for now by shifting all by 4.1 mrad.
107  _phi_offset = 2*math.pi/256/6*1000
108  correction = [
109  [
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],
121  ],
122 
123  [
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],
135  ],
136 
137  [
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],
149  ],
150  ]
151 
152 
153 
154 
155 CaloSwPhioff_v2_parms = { EMB2 : CaloSwPhioff_v2_b_parms,
156  EME2 : CaloSwPhioff_v2_e_parms,
157  }
158 
159 
SystemOfUnits
CaloSwPhioff_v2.CaloSwPhioff_v2_e_parms
Definition: CaloSwPhioff_v2.py:96
CaloSwPhioff_v2.CaloSwPhioff_v2_b_parms
barrel phi position correction for sampling 2
Definition: CaloSwPhioff_v2.py:28