12 """Return component accumulator with configured Tile hits to TTL1 algorithm
15 flags -- Athena configuration flags
18 kwargs.setdefault(
'name',
'TileHitToTTL1')
19 kwargs.setdefault(
'TileHitContainer',
'TileHitCnt')
20 kwargs.setdefault(
'maskBadChannels',
True)
24 from TileConditions.TileInfoLoaderConfig
import TileInfoLoaderCfg
27 from TileConditions.TileSamplingFractionConfig
import TileSamplingFractionCondAlgCfg
30 from TileConditions.TileCablingSvcConfig
import TileCablingSvcCfg
33 if 'RndmSvc' not in kwargs:
34 from RngComps.RngCompsConfig
import AthRNGSvcCfg
35 kwargs[
'RndmSvc'] = acc.getPrimaryAndMerge(
AthRNGSvcCfg(flags)).name
37 if kwargs[
'maskBadChannels']:
38 from TileConditions.TileBadChannelsConfig
import TileBadChannelsCondAlgCfg
41 from TileConditions.TileEMScaleConfig
import TileEMScaleCondAlgCfg
44 if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
45 kwargs.setdefault(
'TileTTL1Container', flags.Overlay.BkgPrefix +
'TileTTL1Cnt')
46 if flags.Detector.EnableMBTS:
47 kwargs.setdefault(
'TileMBTSTTL1Container', flags.Overlay.BkgPrefix +
'TileTTL1MBTS')
49 kwargs.setdefault(
'TileMBTSTTL1Container',
'')
50 elif flags.Common.isOverlay:
51 kwargs.setdefault(
'TileTTL1Container', flags.Overlay.SigPrefix +
'TileTTL1Cnt')
52 if flags.Detector.EnableMBTS:
53 kwargs.setdefault(
'TileMBTSTTL1Container', flags.Overlay.SigPrefix +
'TileTTL1MBTS')
55 kwargs.setdefault(
'TileMBTSTTL1Container',
'')
57 kwargs.setdefault(
'TileTTL1Container',
'TileTTL1Cnt')
58 if flags.Detector.EnableMBTS:
59 kwargs.setdefault(
'TileMBTSTTL1Container',
'TileTTL1MBTS')
61 kwargs.setdefault(
'TileMBTSTTL1Container',
'')
63 TileHitToTTL1=CompFactory.TileHitToTTL1