ATLAS Offline Software
CaloSwDeadOTX_back.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/CaloSwDeadOTX_back.py
5 # Created: March, 2010, L. Carminati
6 # Purpose: Steering module for dead OTX correction in the back
7 #
8 
9 from AthenaConfiguration.ComponentFactory import CompFactory
10 from CaloClusterCorrection.constants import \
11  CALOCORR_COOL, CALOCORR_DEFAULT_KEY, CALOCORR_SW
12 from CaloClusterCorrection.common import makecorr
13 
14 #
15 # This table lists all available versions of this correction.
16 # See common.py for a description of the contents.
17 #
18 cls = CompFactory.CaloSwDeadOTX_back # CaloClusterCorrection
19 CaloSwDeadOTX_back_versions = [
20 #
21  ['v1', cls, ['CaloSwDeadOTX_back_v1.' +
22  'CaloSwDeadOTX_back_v1_parms',
23  'caloswcorr_pool', CALOCORR_COOL,
24  ],
25  ['ele55', 'ele35', 'ele37',
26  'gam55_conv', 'gam35_conv', 'gam37_conv',
27  'gam55_unconv', 'gam35_unconv', 'gam37_unconv',
28  'ele33', 'ele57', 'ele77',
29  'gam33_conv', 'gam57_conv', 'gam77_conv',
30  'gam33_unconv', 'gam57_unconv', 'gam77_unconv'] ]
31  ]
32 
33 #
34 # Create a new tool instance.
35 # FLAGS is the configuration flags instance.
36 # NAME is the base name for this tool. If defaulted, a name will
37 # be constructed from the name of the correction, the version, and the key.
38 # If SUFFIX is not None, it will be added onto the end of the tool name.
39 # VERSION is a string specifying which of several versions of the correction
40 # to choose. If defaulted, the latest version of the correction is chosen.
41 # KEY is a string to specify the type of cluster to which the correction
42 # applies. The convention is to use `ele55' for 5x5 electron clusters,
43 # `gam35' for 3x5 photon clusters, and so on.
44 # SOURCE tells from where we should read the calibration constants.
45 # See common.py for a description of the possibilities.
46 # CONFCLASS gives the Configurable class to use to create the tool.
47 # It may (and usually should) be defaulted.
48 #
49 # Additional keyword arguments may be passed to override any tool
50 # parameters/constants.
51 #
53  name = None,
54  suffix = None,
55  version = None,
56  key = CALOCORR_DEFAULT_KEY,
57  source = None,
58  confclass = None,
59  **kw):
60 
61  CaloAffectedTool = CompFactory.CaloAffectedTool # CaloTools
62  theAffectedTool = CaloAffectedTool("CaloAffectedForDeadOTX_back")
63 
64  # Make the tool.
65  return makecorr (flags,
66  versions = CaloSwDeadOTX_back_versions,
67  name = name,
68  basename = 'deadOTXback',
69  suffix = suffix,
70  version = version,
71  key = key,
72  sampling = None,
73  source = source,
74  confclass = confclass,
75  corrclass = CALOCORR_SW,
76  AffectedTool = theAffectedTool,
77  **kw)
CaloSwDeadOTX_back.make_CaloSwDeadOTX_back
def make_CaloSwDeadOTX_back(flags, name=None, suffix=None, version=None, key=CALOCORR_DEFAULT_KEY, source=None, confclass=None, **kw)
Definition: CaloSwDeadOTX_back.py:52
CaloAffectedTool
Tool to check if object is in an affected region.
Definition: CaloAffectedTool.h:27