20 from AthenaConfiguration.ComponentFactory
import CompFactory
21 from CaloClusterCorrection.constants
import \
22 CALOCORR_COOL, CALOCORR_DEFAULT_KEY, CALOCORR_SW
23 from CaloClusterCorrection.common
import makecorr
29 from CaloClusterCorrection.constants
import sw_valid_keys
as keys
30 cls_g3 = CompFactory.CaloSwGap_g3
31 cls_v2 = CompFactory.CaloSwGap_v2
32 cls_v3 = CompFactory.CaloSwGap_v3
33 CaloSwGap_versions = [
36 [
'g3', cls_g3, [
'CaloSwGap_g3.CaloSwGap_g3_parms',
37 'caloswcorr_pool', CALOCORR_COOL], keys],
42 [
'v2', cls_v2, [
'CaloSwGap_v2.CaloSwGap_v2_parms',
43 'caloswcorr_pool', CALOCORR_COOL], keys],
49 [
'v3', cls_v2, [
'CaloSwGap_v3.CaloSwGap_v3_parms',
50 'caloswcorr_pool', CALOCORR_COOL], keys],
55 [
'v3_1', cls_v2, [
'CaloSwGap_v3.CaloSwGap_v3_1_parms',
56 'caloswcorr_pool', CALOCORR_COOL], keys],
59 [
'v4', cls_v2, [
'CaloSwGap_v4.CaloSwGap_v4_parms',
60 'caloswcorr_pool', CALOCORR_COOL], keys],
65 [
'v5', cls_v3, [
'CaloSwGap_v5.CaloSwGap_v5_parms',
66 'caloswcorr_pool', CALOCORR_COOL], keys],
69 [
'v6', cls_v3, [
'CaloSwGap_v6.CaloSwGap_v6_parms',
70 'caloswcorr_pool', CALOCORR_COOL], keys],
99 def make_CaloSwGap (flags,
103 key = CALOCORR_DEFAULT_KEY,
109 if cells_name
is not None:
110 kw[
'cells_name'] = cells_name
113 return makecorr (flags,
114 versions = CaloSwGap_versions,
122 confclass = confclass,
123 corrclass = CALOCORR_SW,