29 from AthenaConfiguration.ComponentFactory
import CompFactory
30 from CaloClusterCorrection.constants
import \
31 CALOCORR_COOL, CALOCORR_DEFAULT_KEY, CALOCORR_SW
32 from CaloClusterCorrection.common
import makecorr
38 from CaloClusterCorrection.constants
import sw_valid_keys
as keys
39 cls = CompFactory.CaloScaleCluster
40 CaloSwRfac_versions = [
44 [
'v3', cls, [
'CaloSwRfac_v3.CaloSwRfac_v3_parms',
45 'caloswcorr_pool', CALOCORR_COOL], keys],
50 [
'v4', cls, [
'CaloSwRfac_v4.CaloSwRfac_v4_parms',
51 'caloswcorr_pool', CALOCORR_COOL], keys],
59 [
'v5', cls, [
'CaloSwRfac_v5.CaloSwRfac_v5_parms',
60 'caloswcorr_pool', CALOCORR_COOL], keys],
85 def make_CaloSwRfac (flags,
89 key = CALOCORR_DEFAULT_KEY,
94 return makecorr (flags,
95 versions = CaloSwRfac_versions,
103 confclass = confclass,
104 corrclass = CALOCORR_SW,