ATLAS Offline Software
Loading...
Searching...
No Matches
CaloSwGap_v5.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_v5.py
5# Created: March 2012, SL
6# Purpose: Gap correction, v5
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#
18
19from CaloClusterCorrection.constants import CALOCORR_COMBINED2
20
21
22
23CaloSwGap_v5 = [
24 # escale wgapSci eoffset
25[ 1.4125, 1.20193, 1.01119, 2722.8 ],
26[ 1.4375, 1.21213, 1.10074, 3183.27 ],
27[ 1.4625, 1.31096, 1.10145, 4988.24 ],
28[ 1.4875, 1.21362, 1.15177, 8396.53 ],
29[ 1.5125, 1.03755, 1.2089, 9984.47 ],
30[ 1.5375, 0.995305, 1.00681, 4996.25 ],
31[ 1.5625, 1.02523, 0.843151, 2694.72 ],
32[ 1.5875, 1.0317, 0.841647, 2499.79 ],
33]
34
35
36
37
38
40 _all_keys = ['ele55', 'ele35', 'ele37', 'ele33', 'ele57', 'ele77',
41 'gam55', 'gam35', 'gam37', 'gam33', 'gam57', 'gam77']
42
43 correctionGoodPhi = {}
44 correctionBadPhi = {}
45
46 etamin_crack = 1.425
47 etamax_crack = 1.55
48 degree = 3
49 use_raw_eta = False
50 use_raw_eta_boundaries = True
51 region = CALOCORR_COMBINED2
52
53 # Use new constants, same for all cluster sizes, same for electrons and photons.
54 # Take position from layer 2; use raw eta boundaries.
55 for _k in _all_keys:
56 correctionGoodPhi[_k] = CaloSwGap_v5
57 correctionBadPhi[_k] = CaloSwGap_v5
58