ATLAS Offline Software
CaloTopoEMphimod.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/CaloTopoEMphimod.py
5 # Created: Mar 2007, sss, from earlier job options.
6 # Purpose: Steering module + corrections for phi modulation corrections
7 # for TopoEM clusters.
8 #
9 
10 from AthenaConfiguration.ComponentFactory import CompFactory
11 from CaloClusterCorrection.constants import \
12  CALOCORR_COOL, CALOCORR_DEFAULT_KEY, CALOCORR_EMTOPO, CALOCORR_COMBINED2
13 from CaloClusterCorrection.common import makecorr
14 
15 
16 #
17 # This table lists all available versions of this correction.
18 # See common.py for a description of the contents.
19 #
20 from CaloClusterCorrection.constants import topoem_valid_keys as keys
21 cls = CompFactory.CaloTopoEMphimod # CaloClusterCorrection
22 CaloTopoEMphimod_versions = [
23 
24  # v1 --- from the original job options file.
25  ['v1', cls, ['CaloTopoEMphimod.CaloTopoEMphimod_v1_parms',
26  'calotopoemcorr_pool', CALOCORR_COOL], keys],
27 
28  ]
29 
30 
31 #
32 # Create a new tool instance.
33 # FLAGS is the configuration flags instance.
34 # NAME is the base name for this tool. If defaulted, a name will
35 # be constructed from the name of the correction, the version, and the key.
36 # If SUFFIX is not None, it will be added onto the end of the tool name.
37 # VERSION is a string specifying which of several versions of the correction
38 # to choose. If defaulted, the latest version of the correction is chosen.
39 # KEY is a string to specify the type of cluster to which the correction
40 # applies. The convention is to use `ele55' for 5x5 electron clusters,
41 # `gam35' for 3x5 photon clusters, and so on.
42 # SOURCE tells from where we should read the calibration constants.
43 # See common.py for a description of the possibilities.
44 # None means to use the default.
45 # CONFCLASS gives the Configurable class to use to create the tool.
46 # It may (and usually should) be defaulted.
47 #
48 # Additional keyword arguments may be passed to override any tool
49 # parameters/constants.
50 #
52  name = None,
53  suffix = None,
54  version = None,
55  key = CALOCORR_DEFAULT_KEY,
56  source = None,
57  confclass = None,
58  **kw):
59  # Make the tool.
60  return makecorr (flags,
61  versions = CaloTopoEMphimod_versions,
62  name = name,
63  basename = 'topophimod',
64  suffix = suffix,
65  version = version,
66  key = key,
67  sampling = None,
68  source = source,
69  confclass = confclass,
70  corrclass = CALOCORR_EMTOPO,
71  **kw)
72 
73 
74 
75 # ... phi modulation : barrel + endcap
76 # I think this was derived for 6-3-3 clusters.
77 # Currently applied for all emtopo clusters.
79  region = CALOCORR_COMBINED2
80  BarrelGranularity = 0.1
81  EndcapGranularity = 0.05
82  EtaFrontier = [ 1.5, 1.55, 2.5 ]
83 
84  P1b = [
85  -0.003018, -0.002832, -0.002661, -0.002509, -0.002378,
86  -0.002391, -0.002121, -0.002167, -0.001456, -0.000904,
87  -0.000721, -0.000666, -0.000912, -0.000395, 0.
88  ]
89  P2b = [
90  0.000377, 0.000661, 0.000140, 0.000425, 0.000476,
91  0.000457, 0.000255, 0.000059, 0.000083, 0.000792,
92  0.000427, 0.000153, -0.000525, 0.000428, 0.
93  ]
94  P3b = [
95  -0.000209, -0.000571, -0.000416, -0.000549, -0.000696,
96  -0.000422, -0.000422, -0.000040, -0.000167, 0.000329,
97  0.000545, 0.000434, 0.000337, 0.000854, 0.
98  ]
99  P4b = [
100  -0.000063, -0.000020, -0.000080, -0.000158, -0.000154,
101  -0.000040, 0.000273, 0.000152, 0.000067, -0.000015,
102  0.000401, -0.000601, -0.000302, 0.000845, 0.
103  ]
104  P1e = [
105  -0.002073, -0.002342, 0.000042, -0.000401, 0.000412,
106  0.001082, 0.001728, 0.002083, 0.002554, 0.003267,
107  0.003507, 0.003587, 0.003455, 0.002587, 0.002392,
108  0.001015, -0.000090, -0.002045, -0.004660
109  ]
110  P2e = [
111  0.000259, 0.000438, 0.000008, 0.000805, 0.000863,
112  -0.001590, -0.000420, -0.000060, -0.000674, 0.000052,
113  -0.000436, 0.000024, -0.000162, 0.000214, 0.000182,
114  0.000829, 0.000245, 0.000749, 0.001217
115  ]
116  P3e = [
117  0.001139, 0.001065, -0.000462, -0.000382, -0.000938,
118  -0.000569, -0.001691, -0.002208, -0.002703, -0.002319,
119  -0.002547, -0.001932, -0.002138, -0.002233, -0.000784,
120  -0.000421, 0.000124, 0.000936, 0.001676
121  ]
122  P4e = [
123  -0.000249, -0.001185, -0.001608, -0.000078, -0.000446,
124  -0.001075, -0.000420, -0.000101, -0.000349, 0.000215,
125  -0.000475, -0.000355, 0.000067, -0.000357, -0.000062,
126  -0.000185, -0.000613, -0.000351, -0.000796
127  ]
CaloTopoEMphimod.make_CaloTopoEMphimod
def make_CaloTopoEMphimod(flags, name=None, suffix=None, version=None, key=CALOCORR_DEFAULT_KEY, source=None, confclass=None, **kw)
Definition: CaloTopoEMphimod.py:51
CaloTopoEMphimod.CaloTopoEMphimod_v1_parms
Definition: CaloTopoEMphimod.py:78