11 """Return component accumulator with configured Tile raw channel maker algorithm
14 flags -- Athena configuration flags
19 from TileConditions.TileInfoLoaderConfig
import TileInfoLoaderCfg
22 kwargs.setdefault(
'name',
'TileRChMaker')
25 if flags.Common.ProductionStep
in [ProductionStep.PileUpPresampling, ProductionStep.PileUpPretracking]:
26 kwargs.setdefault(
'TileDigitsContainer', flags.Overlay.BkgPrefix +
'TileDigitsCnt')
28 kwargs.setdefault(
'TileDigitsContainer',
'TileDigitsCnt')
30 from AthenaCommon.Logging
import logging
31 mlog = logging.getLogger(
'TileRawChannelMakerCfg' )
33 if flags.Tile.doOverflowFit:
34 kwargs.setdefault(
'FitOverflow',
True)
35 from TileRecUtils.TileRawChannelBuilderFitConfig
import TileRawChannelBuilderFitOverflowCfg
37 kwargs.setdefault(
'TileRawChannelBuilderFitOverflow', tileRawChannelBuilderFitOverflow)
39 kwargs.setdefault(
'FitOverflow',
False)
41 tileRawChannelBuilder = []
44 from TileRecUtils.TileRawChannelBuilderFitConfig
import TileRawChannelBuilderFitFilterCfg
46 tileRawChannelBuilder += [tileRawChannelBuilderFitFilter]
47 mlog.info(
" adding now TileRawChannelBuilderFitFilter with name %s to the algorithm: %s",
48 tileRawChannelBuilderFitFilter.name, name)
51 from TileRecUtils.TileRawChannelBuilderOptConfig
import TileRawChannelBuilderOF1Cfg
53 tileRawChannelBuilder += [tileRawChannelBuilderOF1]
54 mlog.info(
" adding now TileRawChannelBuilderOpt2Filter with name %s to the algorithm: %s",
55 tileRawChannelBuilderOF1.name, name)
57 if flags.Tile.doWiener:
58 from TileRecUtils.TileRawChannelBuilderWienerConfig
import TileRawChannelBuilderWienerCfg
60 tileRawChannelBuilder += [tileRawChannelBuilderWiener]
61 mlog.info(
" adding now TileRawChannelBuilderWienerFilter with name %s to the algorithm: %s",
62 tileRawChannelBuilderWiener.name, name)
65 from TileRecUtils.TileRawChannelBuilderOptConfig
import TileRawChannelBuilderOpt2Cfg
67 tileRawChannelBuilder += [tileRawChannelBuilderOpt2]
68 mlog.info(
" adding now TileRawChannelBuilderOpt2Filter with name %s to the algorithm: %s",
69 tileRawChannelBuilderOpt2.name, name)
71 if flags.Tile.doOptATLAS:
72 from TileRecUtils.TileRawChannelBuilderOptConfig
import TileRawChannelBuilderOptATLASCfg
74 tileRawChannelBuilder += [tileRawChannelBuilderOptATLAS]
75 mlog.info(
" adding now TileRawChannelBuilderOpt2Filter with name %s to the algorithm: %s",
76 tileRawChannelBuilderOptATLAS.name, name)
78 kwargs.setdefault(
'TileRawChannelBuilder', tileRawChannelBuilder)
80 if flags.Common.isOverlay
and flags.Concurrency.NumThreads > 0:
81 kwargs.setdefault(
'Cardinality', flags.Concurrency.NumThreads)
83 TileRawChannelMaker=CompFactory.TileRawChannelMaker