ATLAS Offline Software
CaloSwGap_v6.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/CaloSwGap_v6.py
5 # Created: March 2012, SL
6 # Purpose: Gap correction, v6
7 #
8 # New gap corrections
9 # - derived from rel17 single electron MC samples
10 # - crack definition now matching with calibration hits definition (i.e.
11 # use eta in sampling 2 in calo frame and use 1.425<eta(s2-calo)<1.55)
12 # - correction is applied as a function of cluster eta in the ATLAS frame:
13 # due to misalignments, the corrections are provided for a larger
14 # crack definition than mentioned above
15 # - use a single correction for all cluster sizes
16 # - for now, use the electron corrections for the photons as well
17 # - make two phi binning: "good phi" regions without TG3 cells missing
18 # "bad phi" regions with TG3 cells missing
19 #
20 
21 from CaloClusterCorrection.constants import CALOCORR_COMBINED2
22 
23 
24 
25 CaloSwGap_v6_goodphi = [
26  # escale wgapSci eoffset
27 [ 1.4125, 1.19207, 1.11653, 2909.22 ],
28 [ 1.4375, 1.19698, 1.16545, 3374.8 ],
29 [ 1.4625, 1.28962, 1.15927, 4881.07 ],
30 [ 1.4875, 1.15101, 1.33242, 8031.85 ],
31 [ 1.5125, 0.952019, 1.57746, 8727.48 ],
32 [ 1.5375, 0.992051, 1.03874, 4212.3 ],
33 [ 1.5625, 1.02, 0.91491, 2140.95 ],
34 [ 1.5875, 1.02813, 0.90897, 1993.07 ]
35 ]
36 
37 CaloSwGap_v6_badphi = [
38  # escale wgapSci eoffset
39 [ 1.4125, 1.22272, 2.07331, 2056.31 ],
40 [ 1.4375, 1.26355, 1.62687, 2318.94 ],
41 [ 1.4625, 1.61749, 1.4683, 2376.19 ],
42 [ 1.4875, 1.74078, 0.875144, 5229.63 ],
43 [ 1.5125, 1.28008, 1.70207, 9373.12 ],
44 [ 1.5375, 1.06362, 1.50708, 7612.6 ],
45 [ 1.5625, 1.04044, 1.1965, 4072.75 ],
46 [ 1.5875, 1.04594, 1.22732, 3503.04 ]
47 ]
48 
49 
50 
51 
52 
54  _all_keys = ['ele55', 'ele35', 'ele37', 'ele33', 'ele57', 'ele77',
55  'gam55', 'gam35', 'gam37', 'gam33', 'gam57', 'gam77']
56 
57  correctionGoodPhi = {}
58  correctionBadPhi = {}
59 
60  etamin_crack = 1.425
61  etamax_crack = 1.55
62  degree = 3
63  use_raw_eta = False
64  use_raw_eta_boundaries = True
65  region = CALOCORR_COMBINED2
66 
67  # Use new constants, same for all cluster sizes, same for electrons and photons.
68  # Take position from layer 2; use raw eta boundaries.
69  for _k in _all_keys:
70  correctionGoodPhi[_k] = CaloSwGap_v6_goodphi
71  correctionBadPhi[_k] = CaloSwGap_v6_badphi
72 
CaloSwGap_v6.CaloSwGap_v6_parms
Definition: CaloSwGap_v6.py:53