17 from AthenaConfiguration.ComponentFactory
import CompFactory
18 from CaloClusterCorrection.constants
import \
19 CALOCORR_COOL, CALOCORR_DEFAULT_KEY, CALOCORR_SW
20 from CaloClusterCorrection.common
import makecorr
26 from CaloClusterCorrection.constants
import sw_valid_keys
as keys
27 cls = CompFactory.CaloSwCalibHitsCalibration
28 CaloSwCalibHitsCalibration_versions = [
31 [
'v1', cls, [
'CaloSwCalibHitsCalibration_v1.' +
32 'CaloSwCalibHitsCalibration_v1_parms',
33 'caloswcorr_pool', CALOCORR_COOL], keys],
34 [
'v2', cls, [
'CaloSwCalibHitsCalibration_v2.' +
35 'CaloSwCalibHitsCalibration_v2_parms',
36 'caloswcorr_pool', CALOCORR_COOL], keys],
39 [
'v5', cls, [
'CaloSwCalibHitsCalibration_v5.' +
40 'CaloSwCalibHitsCalibration_v5_parms',
41 'caloswcorr_pool', CALOCORR_COOL], keys],
45 [
'v5_1', cls, [
'CaloSwCalibHitsCalibration_v5_1.' +
46 'CaloSwCalibHitsCalibration_v5_1_parms',
47 'caloswcorr_pool', CALOCORR_COOL], keys],
51 [
'v8leakdata', cls, [
'CaloSwCalibHitsCalibration_v8leakdata.' +
52 'CaloSwCalibHitsCalibration_v8leakdata_parms',
53 'caloswcorr_pool', CALOCORR_COOL],
54 [
'ele55',
'ele35',
'ele37',
55 'gam55_conv',
'gam35_conv',
'gam37_conv',
56 'gam55_unconv',
'gam35_unconv',
'gam37_unconv',
57 'ele33',
'ele57',
'ele77',
58 'gam33_conv',
'gam57_conv',
'gam77_conv',
59 'gam33_unconv',
'gam57_unconv',
'gam77_unconv'] ],
63 [
'v8', cls, [
'CaloSwCalibHitsCalibration_v8.' +
64 'CaloSwCalibHitsCalibration_v8_parms',
65 'caloswcorr_pool', CALOCORR_COOL],
66 [
'ele55',
'ele35',
'ele37',
67 'gam55_conv',
'gam35_conv',
'gam37_conv',
68 'gam55_unconv',
'gam35_unconv',
'gam37_unconv',
69 'ele33',
'ele57',
'ele77',
70 'gam33_conv',
'gam57_conv',
'gam77_conv',
71 'gam33_unconv',
'gam57_unconv',
'gam77_unconv'] ],
75 [
'v9leakdata', cls, [
'CaloSwCalibHitsCalibration_v9leakdata.' +
76 'CaloSwCalibHitsCalibration_v9leakdata_parms',
77 'caloswcorr_pool', CALOCORR_COOL],
78 [
'ele55',
'ele35',
'ele37',
79 'gam55_conv',
'gam35_conv',
'gam37_conv',
80 'gam55_unconv',
'gam35_unconv',
'gam37_unconv',
81 'ele33',
'ele57',
'ele77',
82 'gam33_conv',
'gam57_conv',
'gam77_conv',
83 'gam33_unconv',
'gam57_unconv',
'gam77_unconv'] ],
87 [
'v9', cls, [
'CaloSwCalibHitsCalibration_v9.' +
88 'CaloSwCalibHitsCalibration_v9_parms',
89 'caloswcorr_pool', CALOCORR_COOL],
90 [
'ele55',
'ele35',
'ele37',
91 'gam55_conv',
'gam35_conv',
'gam37_conv',
92 'gam55_unconv',
'gam35_unconv',
'gam37_unconv',
93 'ele33',
'ele57',
'ele77',
94 'gam33_conv',
'gam57_conv',
'gam77_conv',
95 'gam33_unconv',
'gam57_unconv',
'gam77_unconv'] ],
99 [
'v6leakdata', cls, [
'CaloSwCalibHitsCalibration_v6leakdata.' +
100 'CaloSwCalibHitsCalibration_v6leakdata_parms',
101 'caloswcorr_pool', CALOCORR_COOL],
102 [
'ele55',
'ele35',
'ele37',
103 'gam55_conv',
'gam35_conv',
'gam37_conv',
104 'gam55_unconv',
'gam35_unconv',
'gam37_unconv',
105 'ele33',
'ele57',
'ele77',
106 'gam33_conv',
'gam57_conv',
'gam77_conv',
107 'gam33_unconv',
'gam57_unconv',
'gam77_unconv'] ],
111 [
'v6', cls, [
'CaloSwCalibHitsCalibration_v6.' +
112 'CaloSwCalibHitsCalibration_v6_parms',
113 'caloswcorr_pool', CALOCORR_COOL],
114 [
'ele55',
'ele35',
'ele37',
115 'gam55_conv',
'gam35_conv',
'gam37_conv',
116 'gam55_unconv',
'gam35_unconv',
'gam37_unconv',
117 'ele33',
'ele57',
'ele77',
118 'gam33_conv',
'gam57_conv',
'gam77_conv',
119 'gam33_unconv',
'gam57_unconv',
'gam77_unconv'] ]
147 key = CALOCORR_DEFAULT_KEY,
152 return makecorr (flags,
153 versions = CaloSwCalibHitsCalibration_versions,
155 basename =
'calhits',
161 confclass = confclass,
162 corrclass = CALOCORR_SW,