4from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5from AthenaConfiguration.ComponentFactory
import CompFactory
6from DetDescrCnvSvc.DetDescrCnvSvcConfig
import DetDescrCnvSvcCfg
7from AtlasGeoModel.GeoModelConfig
import GeoModelCfg
8from AthenaCommon.Logging
import logging
10log = logging.getLogger(__name__)
14 """ Create the mapping maker for JTowers """
15 result = ComponentAccumulator()
16 result.merge(DetDescrCnvSvcCfg(flags))
17 result.merge(GeoModelCfg(flags))
19 CompFactory.LVL1.JTowerMappingDataCondAlg(
20 "JTowerMappingDataCondAlg",
21 MappingData=
"JTowerMappingData",
30 """ Create the mapping maker for GTowers """
31 result = ComponentAccumulator()
32 result.merge(DetDescrCnvSvcCfg(flags))
33 result.merge(GeoModelCfg(flags))
35 CompFactory.LVL1.GTowerMappingDataCondAlg(
36 "GTowerMappingDataCondAlg",
37 MappingData=
"GTowerMappingData",
46 """ Create the JTower building algorithm """
47 result = ComponentAccumulator()
51 CompFactory.LVL1.JGTowerBuilder(
55 InputSuperCells=superCellsIn,
56 EmulateSuperCellTiming=
False,
60 MappingData=
"JTowerMappingData",
61 OutputTowers=
"JTowers",
69 """ Create the GCaloTower building algorithm """
70 result = ComponentAccumulator()
74 CompFactory.LVL1.JGTowerBuilder(
78 InputSuperCells=superCellsIn,
79 EmulateSuperCellTiming=
False,
83 MappingData=
"GTowerMappingData",
84 OutputTowers=
"GCaloTowers",
92 """Create the algorithms required for the JTower configuration
94 Sequences the builder and the noise algorithm
96 result = ComponentAccumulator()
99 CompFactory.LVL1.JGTowerNoiseAlg(
100 "JTowerNoiseAlg", InputTowers=
"JTowers", DoJFEX=
True
107 """Create the algorithms required for the GTower configuration
109 Sequences the GCaloTower builder, then the GTower and noise algorithms
111 result = ComponentAccumulator()
114 CompFactory.LVL1.GTowersFromGCaloTowers(
115 "GTowersFromGCaloTowers",
116 InputTowers=
"GCaloTowers",
117 OutputTowers=
"GTowers",
118 MappingData=
"GTowerMappingData",
122 CompFactory.LVL1.JGTowerNoiseAlg(
124 InputTowers=
"GTowers",
132 """ Helper method to create all of the J/G tower containers commonly used """
133 result = ComponentAccumulator()
136 result.merge(
JTowersCfg(flags, superCellsIn=superCellsIn))
138 CompFactory.LVL1.JTowerRhoSubtractionAlg(
139 "JTowerRhoSubtractionAlg",
140 InputTowers=
"JTowers",
141 OutputTowers=
"JTowerRhoSubtracted",
149 CompFactory.LVL1.GTowerRhoSubtractionAlg(
150 "GTowerRhoSubtractionAlg",
151 InputTowers=
"GTowers",
152 OutputTowers=
"GTowerRhoSubtracted",
GTowersCfg(flags, superCellsIn)
GTowerMappingDataCondAlgCfg(flags)
AllJGTowerContainersCfg(flags, superCellsIn)
JTowerBuilderCfg(flags, superCellsIn)
GTowerBuilderCfg(flags, superCellsIn)
JTowersCfg(flags, superCellsIn)
JTowerMappingDataCondAlgCfg(flags)