21 from AthenaConfiguration.ComponentFactory
import CompFactory
22 from CaloClusterCorrection.constants
import \
23 CALOCORR_COOL, CALOCORR_DEFAULT_KEY, CALOCORR_SW, \
24 EMB1, EME1, EMB2, EME2
25 from CaloClusterCorrection.common
import makecorr
31 from CaloClusterCorrection.constants
import sw_valid_keys
as keys
32 cls_g3 = {EMB1 : CompFactory.CaloSwEta1b_g3,
33 EMB2 : CompFactory.CaloSwEta2b_g3,
34 EME1 : CompFactory.CaloSwEta1e_g3,
35 EME2 : CompFactory.CaloSwEta2e_g3}
36 cls_v2 = CompFactory.CaloSwEtaoff_v2
37 cls_v3 = CompFactory.CaloSwEtaoff_v3
38 CaloSwEtaoff_versions = [
42 [
'g3', cls_g3, [
'CaloSwEtaoff_g3.CaloSwEtaoff_g3_parms',
43 'caloswcorr_pool', CALOCORR_COOL], keys],
49 [
'v2', cls_v2, [
'CaloSwEtaoff_v2.CaloSwEtaoff_v2_parms',
50 'caloswcorr_pool', CALOCORR_COOL], keys],
55 [
'v3', cls_v3, [
'CaloSwEtaoff_v3.CaloSwEtaoff_v3_parms',
56 'caloswcorr_pool', CALOCORR_COOL], keys],
61 [
'v4', cls_v3, [
'CaloSwEtaoff_v4.CaloSwEtaoff_v4_parms',
62 'caloswcorr_pool', CALOCORR_COOL], keys],
71 [
'v4_1', cls_v3, [
'CaloSwEtaoff_v4_1.CaloSwEtaoff_v4_1_parms',
72 'caloswcorr_pool', CALOCORR_COOL], keys],
81 [
'v5', cls_v3, [
'CaloSwEtaoff_v5.CaloSwEtaoff_v5_parms',
82 'caloswcorr_pool', CALOCORR_COOL], keys],
113 key = CALOCORR_DEFAULT_KEY,
118 return makecorr (flags,
119 versions = CaloSwEtaoff_versions,
127 confclass = confclass,
128 corrclass = CALOCORR_SW,