4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from DetDescrCnvSvc.DetDescrCnvSvcConfig
import DetDescrCnvSvcCfg
7 from AtlasGeoModel.GeoModelConfig
import GeoModelCfg
8 from AthenaCommon.Logging
import logging
10 log = logging.getLogger(__name__)
14 """ Create the mapping maker for JTowers """
19 CompFactory.LVL1.JTowerMappingDataCondAlg(
20 "JTowerMappingDataCondAlg",
21 MappingData=
"JTowerMappingData",
30 """ Create the mapping maker for GTowers """
35 CompFactory.LVL1.GTowerMappingDataCondAlg(
36 "GTowerMappingDataCondAlg",
37 MappingData=
"GTowerMappingData",
46 """ Create the JTower building algorithm """
51 CompFactory.LVL1.JGTowerBuilder(
55 InputSuperCells=superCellsIn,
56 EmulateSuperCellTiming=
False,
60 MappingData=
"JTowerMappingData",
61 OutputTowers=
"JTowers",
69 """ Create the GCaloTower building algorithm """
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
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
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 """
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",