25 from AthenaConfiguration.ComponentFactory
import CompFactory
26 from CaloClusterCorrection.constants
import \
27 CALOCORR_NOPOOL, CALOCORR_DEFAULT_KEY, CALOCORR_SW
28 from CaloClusterCorrection.common
import makecorr
35 cls = CompFactory.CaloFillRectangularCluster
36 CaloSwLayers_versions = [
37 [
'wt', cls, [
'CaloSwLayers.CaloSwLayersWt_parms', CALOCORR_NOPOOL]],
38 [
'', cls, [
'CaloSwLayers.CaloSwLayers_parms', CALOCORR_NOPOOL]],
69 key = CALOCORR_DEFAULT_KEY,
75 if cells_name
is not None:
76 kw[
'cells_name'] = cells_name
78 return makecorr (flags,
79 versions = CaloSwLayers_versions,
87 confclass = confclass,
88 corrclass = CALOCORR_SW,
92 k = k.lstrip (string.ascii_letters +
'_')
93 k = k.rstrip (string.ascii_letters +
'_')
95 (eta, phi) = k.split (
'_')
97 (eta, phi) = (k[0], k[1])
98 return (int (eta), int (phi))
104 return _parse_key (k)[self.
idx]
109 eta_size = _etaphi_getter (0)
110 phi_size = _etaphi_getter (1)
115 eta_size = _etaphi_getter (0)
116 phi_size = _etaphi_getter (1)