5 @file TileTowerBuilderConfig.py
6 @brief Python configuration of Tile Tower builder algorithm for the Run III
9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
10 from AthenaConfiguration.ComponentFactory
import CompFactory
15 kwargs.setdefault(
'name',
'TileTowerBldrAlg')
16 kwargs.setdefault(
'TowerContainerName',
'TileTower')
17 kwargs.setdefault(
'NumberOfPhiTowers', 64)
18 kwargs.setdefault(
'NumberOfEtaTowers', 34)
19 kwargs.setdefault(
'EtaMin', -1.7)
20 kwargs.setdefault(
'EtaMax', 1.7)
21 kwargs.setdefault(
'EnableChronoStat', flags.Concurrency.NumThreads == 0)
23 from TileGeoModel.TileGMConfig
import TileGMCfg
26 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
29 TileTowerBuilderTool=CompFactory.TileTowerBuilderTool
31 CellContainerName =
'AllCalo',
32 IncludedCalos = [
'TILE'])
34 kwargs[
'TowerBuilderTools'] = [ tileCmbTwrBldr ]
36 CaloTowerAlgorithm=CompFactory.CaloTowerAlgorithm
42 if __name__==
'__main__':
45 from AthenaCommon.Logging
import log
50 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
51 from AthenaConfiguration.TestDefaults
import defaultTestFiles
53 flags.Input.Files = defaultTestFiles.ESD
54 flags.Output.HISTFileName =
'TileTowerMonitorOutput.root'
55 flags.DQ.useTrigger =
False
56 flags.DQ.enableLumiAccess =
False
57 flags.Exec.MaxEvents = 3
62 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
63 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
69 cfg.printConfig(withDetails =
True, summariseProps =
True)
72 cfg.store(
open(
'TileTowerBuilder.pkl',
'wb') )
78 sys.exit(
not sc.isSuccess())