ATLAS Offline Software
CaloTopoEMetaoff.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/CaloTopoEMetaoff.py
5 # Created: Mar 2007, sss, from earlier job options.
6 # Purpose: Steering module + corrections for eta offset 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 # This table lists all available versions of this correction.
17 # See common.py for a description of the contents.
18 #
19 from CaloClusterCorrection.constants import topoem_valid_keys as keys
20 cls = CompFactory.CaloTopoEMsshape # CaloClusterCorrection
21 CaloTopoEMetaoff_versions = [
22 
23  # v1 --- from the original job options file.
24  ['v1', cls, ['CaloTopoEMetaoff.CaloTopoEMetaoff_v1_parms',
25  'calotopoemcorr_pool', CALOCORR_COOL], keys],
26 
27  ]
28 
29 
30 #
31 # Create a new tool instance.
32 # FLAGS is the configuration flags instance.
33 # NAME is the base name for this tool. If defaulted, a name will
34 # be constructed from the name of the correction, the version, and the key.
35 # If SUFFIX is not None, it will be added onto the end of the tool name.
36 # VERSION is a string specifying which of several versions of the correction
37 # to choose. If defaulted, the latest version of the correction is chosen.
38 # KEY is a string to specify the type of cluster to which the correction
39 # applies. The convention is to use `ele55' for 5x5 electron clusters,
40 # `gam35' for 3x5 photon clusters, and so on.
41 # SOURCE tells from where we should read the calibration constants.
42 # See common.py for a description of the possibilities.
43 # None means to use the default.
44 # CONFCLASS gives the Configurable class to use to create the tool.
45 # It may (and usually should) be defaulted.
46 #
47 # Additional keyword arguments may be passed to override any tool
48 # parameters/constants.
49 #
51  name = None,
52  suffix = None,
53  version = None,
54  key = CALOCORR_DEFAULT_KEY,
55  source = None,
56  confclass = None,
57  **kw):
58  # Make the tool.
59  return makecorr (flags,
60  versions = CaloTopoEMetaoff_versions,
61  name = name,
62  basename = 'topoetaoff',
63  suffix = suffix,
64  version = version,
65  key = key,
66  sampling = None,
67  source = source,
68  confclass = confclass,
69  corrclass = CALOCORR_EMTOPO,
70  **kw)
71 
72 
73 
74 # ... s-shapes : barrel + endcap, S2
75 # I think this was derived for 6-3-3 clusters.
76 # Currently applied for all emtopo clusters.
78  region = CALOCORR_COMBINED2
79  Granularity = 0.1
80  EtaFrontier = [ 1.4, 1.5, 2.5 ]
81  P0 = [
82  -0.9892, -0.9713, -0.9438, -0.9250, -0.9403,
83  -0.9298, -0.9410, -0.9926, -0.9758, -0.9662,
84  -0.9866, -1.0061, -0.9970, -0.9739, -1.0000,
85  -0.8058, -0.9600, -0.9551, -1.0209, -1.1195,
86  -1.2160, -1.2755, -1.4796, -1.2666, -1.7747
87  ]
88  P1 = [
89  5.8053, 5.9395, 6.0614, 6.1413, 6.0782,
90  6.1650, 5.9474, 5.3771, 5.7169, 5.4273,
91  5.2548, 5.0040, 4.9485, 5.1636, 5.0000,
92  6.0134, 4.9725, 5.0041, 4.5225, 4.1565,
93  3.7802, 3.4394, 3.0471, 3.4170, 2.8284
94  ]
95  P2 = [
96  2.4509, 2.4091, 2.3431, 2.3011, 2.3374,
97  2.3280, 2.3262, 2.4251, 2.4053, 2.3446,
98  2.3905, 2.4099, 2.3752, 2.3787, 2.0000,
99  1.9980, 2.2829, 2.2696, 2.3523, 2.5219,
100  2.6509, 2.6739, 2.9549, 2.6459, 3.4399
101  ]
102  P3 = [
103  0.197, 0.184, 0.291, 0.493, 0.687,
104  0.977, 1.335, 1.721, 1.110, 1.668,
105  2.295, 2.761, 2.847, 3.797, 4.000,
106  -0.446, -0.443, -0.379, -0.261, -0.025,
107  -0.169, -0.065, -0.090, -0.227, -3.554
108  ]
109  P4 = [
110  -0.115, -0.094, -0.143, -0.245, -0.343,
111  -0.470, -0.678, -0.835, -0.494, -0.898,
112  -1.232, -1.531, -1.666, -2.224, -2.000,
113  0.502, 0.442, 0.299, 0.205, 0.139,
114  0.192, 0.123, 0.199, 0.179, 0.773
115  ]
CaloTopoEMetaoff.CaloTopoEMetaoff_v1_parms
Definition: CaloTopoEMetaoff.py:77
CaloTopoEMetaoff.make_CaloTopoEMetaoff
def make_CaloTopoEMetaoff(flags, name=None, suffix=None, version=None, key=CALOCORR_DEFAULT_KEY, source=None, confclass=None, **kw)
Definition: CaloTopoEMetaoff.py:50