5 @file TileTopoClusterMakerConfig.py
6 @brief Python configuration of Tile topo cluster maker algorithm for the Run III
9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
15 kwargs.setdefault(
'name',
'TileTopoClusterAlg')
16 kwargs.setdefault(
'ClustersOutputName',
'TileTopoCluster')
18 from TileGeoModel.TileGMConfig
import TileGMCfg
21 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
24 from CaloTools.CaloNoiseCondAlgConfig
import CaloNoiseCondAlgCfg
29 from AthenaConfiguration.ComponentFactory
import CompFactory
30 topoClusterMaker = CompFactory.CaloTopoClusterMaker()
31 topoClusterMaker.CellsName =
'AllCalo'
32 topoClusterMaker.CalorimeterNames = [
'TILE']
35 topoClusterMaker.SeedSamplingNames = [
'TileBar0',
'TileBar1',
'TileBar2',
36 'TileExt0',
'TileExt1',
'TileExt2',
37 'TileGap1',
'TileGap2',
'TileGap3']
39 topoClusterMaker.NeighborOption =
'super3D'
40 topoClusterMaker.RestrictHECIWandFCalNeighbors =
False
41 topoClusterMaker.CellThresholdOnEorAbsEinSigma = 0.0
42 topoClusterMaker.NeighborThresholdOnEorAbsEinSigma = 2.0
43 topoClusterMaker.SeedThresholdOnEorAbsEinSigma = 4.0
45 topoClusterMaker.SeedCutsInAbsE =
True
46 topoClusterMaker.ClusterCutsInAbsEt =
True
47 topoClusterMaker.ClusterEtorAbsEtCut = 0.0 * MeV
48 topoClusterMaker.TwoGaussianNoise = flags.Calo.TopoCluster.doTwoGaussianNoise
50 kwargs[
'ClusterMakerTools'] = [topoClusterMaker]
53 topoClusterSpliter = CompFactory.CaloTopoClusterSplitter()
54 topoClusterSpliter.SamplingNames = [
'TileBar0',
'TileBar1',
'TileBar2',
55 'TileExt0',
'TileExt1',
'TileExt2' ,
56 'TileGap1',
'TileGap2',
'TileGap3']
58 topoClusterSpliter.ShareBorderCells =
True
59 topoClusterSpliter.RestrictHECIWandFCalNeighbors =
False
61 kwargs[
'ClusterMakerTools'] += [topoClusterSpliter]
64 clsuterMomentsMaker = CompFactory.CaloClusterMomentsMaker()
65 clsuterMomentsMaker.MaxAxisAngle = 30 * deg
66 clsuterMomentsMaker.MomentsNames = [
'FIRST_PHI'
102 kwargs[
'ClusterCorrectionTools'] = [clsuterMomentsMaker]
104 acc.addEventAlgo(CompFactory.CaloClusterMaker(**kwargs), primary =
True)
110 if __name__==
'__main__':
113 from AthenaCommon.Logging
import log
118 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
119 from AthenaConfiguration.TestDefaults
import defaultTestFiles
121 flags.Input.Files = defaultTestFiles.ESD
122 flags.Exec.MaxEvents = 3
127 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
128 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
134 cfg.printConfig(withDetails =
True, summariseProps =
True)
137 cfg.store(
open(
'TileTopoClusterMaker.pkl',
'wb') )
143 sys.exit(
not sc.isSuccess())