43 from AthenaConfiguration.ComponentFactory
import CompFactory
44 from CaloClusterCorrection.constants
import \
45 CALOCORR_COOL, CALOCORR_DEFAULT_KEY, CALOCORR_SW
46 from CaloClusterCorrection.common
import makecorr
52 from CaloClusterCorrection.constants
import sw_valid_keys
as keys
53 cls_g3 = CompFactory.CaloSwPhimod_g3
54 cls_v2 = CompFactory.CaloSwPhimod_v2
55 CaloSwPhimod_versions = [
59 [
'g3', cls_g3, [
'CaloSwPhimod_g3.CaloSwPhimod_g3_parms',
60 'caloswcorr_pool', CALOCORR_COOL], keys],
67 [
'v2', cls_v2, [
'CaloSwPhimod_v2.CaloSwPhimod_v2_parms',
68 'caloswcorr_pool', CALOCORR_COOL], keys],
73 [
'v3', cls_v2, [
'CaloSwPhimod_v2.CaloSwPhimod_v3_parms',
74 'caloswcorr_pool', CALOCORR_COOL], keys],
79 [
'v4', cls_v2, [
'CaloSwPhimod_v4.CaloSwPhimod_v4_parms',
80 'caloswcorr_pool', CALOCORR_COOL], keys],
84 [
'v4data', cls_v2, [
'CaloSwPhimod_v4data.CaloSwPhimod_v4data_parms',
85 'caloswcorr_pool', CALOCORR_COOL], keys],
113 key = CALOCORR_DEFAULT_KEY,
118 return makecorr (flags,
119 versions = CaloSwPhimod_versions,
127 confclass = confclass,
128 corrclass = CALOCORR_SW,