25 from AthenaConfiguration.ComponentFactory
import CompFactory
26 from CaloClusterCorrection.constants
import \
27 CALOCORR_COOL, CALOCORR_DEFAULT_KEY, CALOCORR_SW
28 from CaloClusterCorrection.common
import makecorr
34 from CaloClusterCorrection.constants
import sw_valid_keys
as keys
35 cls = CompFactory.CaloSwLongWeights
36 CaloSwLongWeights_versions = [
43 [
'old', cls, [
'CaloSwLongWeights_old.CaloSwLongWeights_old_parms',
44 'caloswcorr_pool', CALOCORR_COOL], keys],
49 [
'904', cls, [
'CaloSwLongWeights_904.CaloSwLongWeights_904_parms',
50 'caloswcorr_pool', CALOCORR_COOL], keys],
55 [
'904gap', cls, [
'CaloSwLongWeights_904.CaloSwLongWeights_904gap_parms',
56 'caloswcorr_pool', CALOCORR_COOL], keys],
62 [
'v3', cls, [
'CaloSwLongWeights_v3.CaloSwLongWeights_v3_parms',
63 'caloswcorr_pool', CALOCORR_COOL], keys],
68 [
'v3_1', cls, [
'CaloSwLongWeights_v3.CaloSwLongWeights_v3_1_parms',
69 'caloswcorr_pool', CALOCORR_COOL], keys],
74 [
'v4', cls, [
'CaloSwLongWeights_v4.CaloSwLongWeights_v4_parms',
75 'caloswcorr_pool', CALOCORR_COOL], keys],
79 [
'v5', cls, [
'CaloSwLongWeights_v5.CaloSwLongWeights_v5_parms',
80 'caloswcorr_pool', CALOCORR_COOL], keys],
83 [
'CaloSwLongWeights_pi0_v1.CaloSwLongWeights_pi0_v1_parms'],keys],
87 [
'v6', cls, [
'CaloSwLongWeights_v6.CaloSwLongWeights_v6_parms',
88 'caloswcorr_pool', CALOCORR_COOL],
89 keys + [
'gam55_conv',
'gam35_conv',
'gam37_conv']],
94 [
'CaloSwLongWeights_atlfast_v1.CaloSwLongWeights_atlfast_v1_parms',
95 'caloswcorr_pool', CALOCORR_COOL], keys],
125 key = CALOCORR_DEFAULT_KEY,
130 return makecorr (flags,
131 versions = CaloSwLongWeights_versions,
139 confclass = confclass,
140 corrclass = CALOCORR_SW,