10 from AthenaConfiguration.ComponentFactory
import CompFactory
11 from CaloClusterCorrection.constants
import \
12 CALOCORR_COOL, CALOCORR_DEFAULT_KEY, CALOCORR_EMTOPO, CALOCORR_COMBINED2
13 from CaloClusterCorrection.common
import makecorr
20 from CaloClusterCorrection.constants
import topoem_valid_keys
as keys
21 cls = CompFactory.CaloTopoEMphioff
22 CaloTopoEMphioff_versions = [
25 [
'v1', cls, [
'CaloTopoEMphioff.CaloTopoEMphioff_v1_parms',
26 'calotopoemcorr_pool', CALOCORR_COOL], keys],
29 [
'v2', cls, [
'CaloTopoEMphioff.CaloTopoEMphioff_v2_parms',
30 'calotopoemcorr_pool', CALOCORR_COOL
60 key = CALOCORR_DEFAULT_KEY,
65 return makecorr (flags,
66 versions = CaloTopoEMphioff_versions,
68 basename =
'topophioff',
74 confclass = confclass,
75 corrclass = CALOCORR_EMTOPO,
84 region = CALOCORR_COMBINED2
86 0.003568, 0.003794, 0.003693, 0.004167, 0.003905,
87 0.003608, 0.003133, 0.003018, 0.009932, 0.014734,
88 0.022201, 0.029784, 0.035050, 0.034313, 0.025003,
89 0.036740, 0.036417, 0.030943, 0.031863, 0.029199,
90 0.029680, 0.030302, 0.027069, -0.000001, -0.000001
93 0.000151, 0.000151, 0.000183, 0.000246, 0.000384,
94 0.000463, 0.000543, 0.000654, 0.000260, 0.000338,
95 0.000426, 0.000592, 0.000861, 0.000965, 0.001584,
96 0.000329, 0.000303, 0.000321, 0.000347, 0.000351,
97 0.000370, 0.000431, 0.000513, 0.000517, 0.000790
100 EtaFrontier = [ 0.8, 1.5, 2.3, 2.5 ]
102 EndcapOffset = 2*math.pi/256/6
110 for (k,v)
in CaloTopoEMphioff_v1_parms.__dict__.items():
112 setattr (CaloTopoEMphioff_v2_parms, k, v)
113 CaloTopoEMphioff_v2_parms.EndcapOffset = 0