ATLAS Offline Software
Loading...
Searching...
No Matches
TileL2Config Namespace Reference

Functions

 TileL2BuilderCfg (flags, **kwargs)
 TileRawChannelToL2Cfg (flags, **kwargs)
 TileRawChannelToL2OutputCfg (flags, streamName='RDO', **kwargs)

Variables

 flags = initConfigFlags()
 Files
 AtlasVersion
 GlobalTag
 ESDFileName
 acc = MainServicesCfg(flags)
 Dump
 withDetails
 True
 summariseProps
 sc = acc.run(maxEvents=3)

Detailed Description

Define methods to construct configured Tile L2 builder tool and algorithm

Function Documentation

◆ TileL2BuilderCfg()

TileL2Config.TileL2BuilderCfg ( flags,
** kwargs )
Return component accumulator with configured private Tile L2 builder tool

Arguments:
    flags  -- Athena configuration flags

Definition at line 10 of file TileL2Config.py.

10def TileL2BuilderCfg(flags, **kwargs):
11 """Return component accumulator with configured private Tile L2 builder tool
12
13 Arguments:
14 flags -- Athena configuration flags
15 """
16
17 kwargs.setdefault('name', 'TileL2Builder')
18
19 rawChannelContainer = 'TileRawChannelCnt'
20 if (flags.Input.isMC or flags.Overlay.DataOverlay):
21 rawChannelContainer = flags.Tile.RawChannelContainer
22 kwargs.setdefault('TileRawChannelContainer', rawChannelContainer)
23
24 acc = ComponentAccumulator()
25
26 from TileGeoModel.TileGMConfig import TileGMCfg
27 acc.merge( TileGMCfg(flags) )
28
29 from TileConditions.TileCablingSvcConfig import TileCablingSvcCfg
30 acc.merge( TileCablingSvcCfg(flags) )
31
32 from TileConditions.TileBadChannelsConfig import TileBadChannelsCondAlgCfg
33 acc.merge( TileBadChannelsCondAlgCfg(flags) )
34
35 from TileConditions.TileEMScaleConfig import TileEMScaleCondAlgCfg
36 acc.merge( TileEMScaleCondAlgCfg(flags) )
37
38 TileL2Builder=CompFactory.TileL2Builder
39 acc.setPrivateTools( TileL2Builder(**kwargs) )
40
41 return acc
42
43
44

◆ TileRawChannelToL2Cfg()

TileL2Config.TileRawChannelToL2Cfg ( flags,
** kwargs )
Return component accumulator with configured Tile raw channels to L2 algorithm

Arguments:
    flags  -- Athena configuration flags

Definition at line 45 of file TileL2Config.py.

45def TileRawChannelToL2Cfg(flags, **kwargs):
46 """Return component accumulator with configured Tile raw channels to L2 algorithm
47
48 Arguments:
49 flags -- Athena configuration flags
50 """
51
52 kwargs.setdefault('name', 'TileRawChannelToL2')
53
54 if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
55 kwargs.setdefault('TileL2Container', flags.Overlay.BkgPrefix + 'TileL2Cnt')
56 else:
57 kwargs.setdefault('TileL2Container', 'TileL2Cnt')
58
59 acc = ComponentAccumulator()
60
61 if 'TileL2Builder' not in kwargs:
62 l2Builder = acc.popToolsAndMerge( TileL2BuilderCfg(flags) )
63 kwargs['TileL2Builder'] = l2Builder
64
65
66 TileRawChannelToL2=CompFactory.TileRawChannelToL2
67 acc.addEventAlgo( TileRawChannelToL2(**kwargs), primary = True )
68
69 return acc
70
71
This class emulates the algorithms processed at the TileCal ROD DSP level to contribute to the LVL2 t...

◆ TileRawChannelToL2OutputCfg()

TileL2Config.TileRawChannelToL2OutputCfg ( flags,
streamName = 'RDO',
** kwargs )
Return component accumulator with configured Tile raw channels to L2 algorithm with Output stream

Arguments:
    flags  -- Athena configuration flags
    streamName -- name of output stream. Defaults to RDO.

Definition at line 72 of file TileL2Config.py.

72def TileRawChannelToL2OutputCfg(flags, streamName = 'RDO', **kwargs):
73 """Return component accumulator with configured Tile raw channels to L2 algorithm with Output stream
74
75 Arguments:
76 flags -- Athena configuration flags
77 streamName -- name of output stream. Defaults to RDO.
78 """
79
80 acc = TileRawChannelToL2Cfg(flags, **kwargs)
81 tileRawChanToL2Alg = acc.getPrimary()
82
83 if 'TileL2Container' in tileRawChanToL2Alg._properties:
84 tileL2Container = tileRawChanToL2Alg._properties['TileL2Container']
85 else:
86 tileL2Container = tileRawChanToL2Alg._descriptors['TileL2Container'].default
87
88 if flags.Output.doWriteRDO:
89 from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
90 acc.merge( OutputStreamCfg(flags, streamName, [f'TileL2Container#{tileL2Container}']) )
91
92 return acc
93
94

Variable Documentation

◆ acc

TileL2Config.acc = MainServicesCfg(flags)

Definition at line 115 of file TileL2Config.py.

◆ AtlasVersion

TileL2Config.AtlasVersion

Definition at line 107 of file TileL2Config.py.

◆ Dump

TileL2Config.Dump

Definition at line 121 of file TileL2Config.py.

◆ ESDFileName

TileL2Config.ESDFileName

Definition at line 110 of file TileL2Config.py.

◆ Files

TileL2Config.Files

Definition at line 106 of file TileL2Config.py.

◆ flags

TileL2Config.flags = initConfigFlags()

Definition at line 105 of file TileL2Config.py.

◆ GlobalTag

TileL2Config.GlobalTag

Definition at line 108 of file TileL2Config.py.

◆ sc

TileL2Config.sc = acc.run(maxEvents=3)

Definition at line 128 of file TileL2Config.py.

◆ summariseProps

TileL2Config.summariseProps

Definition at line 124 of file TileL2Config.py.

◆ True

TileL2Config.True

Definition at line 124 of file TileL2Config.py.

◆ withDetails

TileL2Config.withDetails

Definition at line 124 of file TileL2Config.py.