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

Functions

 TileRawChannelMakerCfg (flags, **kwargs)
 TileRawChannelMakerDigiHSTruthCfg (flags, **kwargs)
 TileRawChannelOutputCfg (flags, tileRawChannelMaker, streamName)
 TileRawChannelMakerOutputCfg (flags, streamName='ESD', **kwargs)
 TileRawChannelMakerDigiHSTruthOutputCfg (flags, streamName='ESD', **kwargs)

Variables

 flags = initConfigFlags()
 Files
 AtlasVersion
 GlobalTag
 RunType
 doFit
 doOF1
 doWiener
 doOpt2
 doOptATLAS
 doTileNN
 correctTimeJumps
 NoiseFilter
 ESDFileName
 MaxEvents
 acc = MainServicesCfg(flags)
 withDetails
 True
 summariseProps
 sc = acc.run()

Detailed Description

Define method to construct configured Tile raw channel maker algorithm

Function Documentation

◆ TileRawChannelMakerCfg()

TileRawChannelMakerCfg ( flags,
** kwargs )
Return component accumulator with configured Tile raw channel maker algorithm

Arguments:
    flags  -- Athena configuration flags

Definition at line 10 of file TileRawChannelMakerConfig.py.

10def TileRawChannelMakerCfg(flags, **kwargs):
11 """Return component accumulator with configured Tile raw channel maker algorithm
12
13 Arguments:
14 flags -- Athena configuration flags
15 """
16
17 acc = ComponentAccumulator()
18
19 from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
20 acc.merge( TileInfoLoaderCfg(flags) )
21
22 kwargs.setdefault('name', 'TileRChMaker')
23 name = kwargs['name']
24
25 if flags.Common.ProductionStep in [ProductionStep.PileUpPresampling, ProductionStep.PileUpPretracking, ProductionStep.MinbiasPreprocessing]:
26 kwargs.setdefault('TileDigitsContainer', flags.Overlay.BkgPrefix + 'TileDigitsCnt')
27 else:
28 kwargs.setdefault('TileDigitsContainer', 'TileDigitsCnt')
29
30 from AthenaCommon.Logging import logging
31 mlog = logging.getLogger( 'TileRawChannelMakerCfg' )
32
33 if flags.Tile.doOverflowFit:
34 kwargs.setdefault('FitOverflow', True)
35 from TileRecUtils.TileRawChannelBuilderFitConfig import TileRawChannelBuilderFitOverflowCfg
36 tileRawChannelBuilderFitOverflow = acc.popToolsAndMerge( TileRawChannelBuilderFitOverflowCfg(flags) )
37 kwargs.setdefault('TileRawChannelBuilderFitOverflow', tileRawChannelBuilderFitOverflow)
38 else:
39 kwargs.setdefault('FitOverflow', False)
40
41 tileRawChannelBuilder = []
42
43 if flags.Tile.doFit:
44 from TileRecUtils.TileRawChannelBuilderFitConfig import TileRawChannelBuilderFitFilterCfg
45 tileRawChannelBuilderFitFilter = acc.popToolsAndMerge( TileRawChannelBuilderFitFilterCfg(flags) )
46 tileRawChannelBuilder += [tileRawChannelBuilderFitFilter]
47 mlog.info(" adding now TileRawChannelBuilderFitFilter with name %s to the algorithm: %s",
48 tileRawChannelBuilderFitFilter.name, name)
49
50 if flags.Tile.doMF:
51 from TileRecUtils.TileRawChannelBuilderMFConfig import TileRawChannelBuilderMFCfg
52 tileRawChannelBuilderMF = acc.popToolsAndMerge( TileRawChannelBuilderMFCfg(flags) )
53 tileRawChannelBuilder += [tileRawChannelBuilderMF]
54 mlog.info(" adding now TileRawChannelBuilderMF with name %s to the algorithm: %s",
55 tileRawChannelBuilderMF.name, name)
56
57 if flags.Tile.doOF1:
58 from TileRecUtils.TileRawChannelBuilderOptConfig import TileRawChannelBuilderOF1Cfg
59 tileRawChannelBuilderOF1 = acc.popToolsAndMerge( TileRawChannelBuilderOF1Cfg(flags) )
60 tileRawChannelBuilder += [tileRawChannelBuilderOF1]
61 mlog.info(" adding now TileRawChannelBuilderOpt2Filter with name %s to the algorithm: %s",
62 tileRawChannelBuilderOF1.name, name)
63
64 if flags.Tile.doWiener:
65 from TileRecUtils.TileRawChannelBuilderWienerConfig import TileRawChannelBuilderWienerCfg
66 tileRawChannelBuilderWiener = acc.popToolsAndMerge( TileRawChannelBuilderWienerCfg(flags) )
67 tileRawChannelBuilder += [tileRawChannelBuilderWiener]
68 mlog.info(" adding now TileRawChannelBuilderWienerFilter with name %s to the algorithm: %s",
69 tileRawChannelBuilderWiener.name, name)
70
71 if flags.Tile.doOpt2:
72 from TileRecUtils.TileRawChannelBuilderOptConfig import TileRawChannelBuilderOpt2Cfg
73 tileRawChannelBuilderOpt2 = acc.popToolsAndMerge( TileRawChannelBuilderOpt2Cfg(flags) )
74 tileRawChannelBuilder += [tileRawChannelBuilderOpt2]
75 mlog.info(" adding now TileRawChannelBuilderOpt2Filter with name %s to the algorithm: %s",
76 tileRawChannelBuilderOpt2.name, name)
77
78 if flags.Tile.doOptATLAS:
79 from TileRecUtils.TileRawChannelBuilderOptConfig import TileRawChannelBuilderOptATLASCfg
80 tileRawChannelBuilderOptATLAS = acc.popToolsAndMerge( TileRawChannelBuilderOptATLASCfg(flags) )
81 tileRawChannelBuilder += [tileRawChannelBuilderOptATLAS]
82 mlog.info(" adding now TileRawChannelBuilderOpt2Filter with name %s to the algorithm: %s",
83 tileRawChannelBuilderOptATLAS.name, name)
84
85 if flags.Tile.doTileNN:
86 from TileRecUtils.TileRawChannelNNMakerConfig import TileRawChannelNNMakerCfg
87 acc.merge( TileRawChannelNNMakerCfg(flags) )
88 mlog.info(" adding now TileRawChannelNNMaker as a separate algorithm alongside: %s", name)
89
90 kwargs.setdefault('TileRawChannelBuilder', tileRawChannelBuilder)
91
92 if flags.Common.isOverlay and flags.Concurrency.NumThreads > 0:
93 kwargs.setdefault('Cardinality', flags.Concurrency.NumThreads)
94
95 TileRawChannelMaker=CompFactory.TileRawChannelMaker
96 acc.addEventAlgo(TileRawChannelMaker(**kwargs), primary = True)
97
98 return acc
99
100

◆ TileRawChannelMakerDigiHSTruthCfg()

TileRawChannelMakerDigiHSTruthCfg ( flags,
** kwargs )
Return component accumulator with configured Tile raw channel maker algorithm for HS

Arguments:
    flags  -- Athena configuration flags

Definition at line 101 of file TileRawChannelMakerConfig.py.

101def TileRawChannelMakerDigiHSTruthCfg(flags, **kwargs):
102 """Return component accumulator with configured Tile raw channel maker algorithm for HS
103
104 Arguments:
105 flags -- Athena configuration flags
106 """
107
108 kwargs.setdefault('name', 'TileRChMaker_DigiHSTruth')
109 kwargs.setdefault('TileDigitsContainer', 'TileDigitsCnt_DigiHSTruth')
110
111 acc = TileRawChannelMakerCfg(flags, **kwargs)
112 rawChannelMaker = acc.getPrimary()
113
114 rawChannelbuilders = rawChannelMaker.TileRawChannelBuilder
115
116 for rawChannelBuilder in rawChannelbuilders:
117 rawChannelBuilder.TileRawChannelContainer = f'{rawChannelBuilder.TileRawChannelContainer}_DigiHSTruth'
118
119 return acc
120
121

◆ TileRawChannelMakerDigiHSTruthOutputCfg()

TileRawChannelMakerDigiHSTruthOutputCfg ( flags,
streamName = 'ESD',
** kwargs )
Return component accumulator with configured Tile raw channel maker algorithm and Output stream

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

Definition at line 157 of file TileRawChannelMakerConfig.py.

157def TileRawChannelMakerDigiHSTruthOutputCfg(flags, streamName = 'ESD', **kwargs):
158 """Return component accumulator with configured Tile raw channel maker algorithm and Output stream
159
160 Arguments:
161 flags -- Athena configuration flags
162 streamName -- name of output stream. Defaults to ESD.
163 """
164
165 acc = TileRawChannelMakerDigiHSTruthCfg(flags, **kwargs)
166 acc.merge( TileRawChannelOutputCfg(flags, acc.getPrimary(), streamName) )
167
168 return acc
169
170

◆ TileRawChannelMakerOutputCfg()

TileRawChannelMakerOutputCfg ( flags,
streamName = 'ESD',
** kwargs )
Return component accumulator with configured Tile raw channel maker algorithm and Output stream

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

Definition at line 143 of file TileRawChannelMakerConfig.py.

143def TileRawChannelMakerOutputCfg(flags, streamName = 'ESD', **kwargs):
144 """Return component accumulator with configured Tile raw channel maker algorithm and Output stream
145
146 Arguments:
147 flags -- Athena configuration flags
148 streamName -- name of output stream. Defaults to ESD.
149 """
150
151 acc = TileRawChannelMakerCfg(flags, **kwargs)
152 acc.merge( TileRawChannelOutputCfg(flags, acc.getPrimary(), streamName) )
153
154 return acc
155
156

◆ TileRawChannelOutputCfg()

TileRawChannelOutputCfg ( flags,
tileRawChannelMaker,
streamName )
Return component accumulator with configured Output stream for Tile raw channel maker algorithm

Arguments:
    flags  -- Athena configuration flags
    tileRawChannelMaker -- Tile raw channel maker algorithm
    streamName -- name of output stream.

Definition at line 122 of file TileRawChannelMakerConfig.py.

122def TileRawChannelOutputCfg(flags, tileRawChannelMaker, streamName):
123 """Return component accumulator with configured Output stream for Tile raw channel maker algorithm
124
125 Arguments:
126 flags -- Athena configuration flags
127 tileRawChannelMaker -- Tile raw channel maker algorithm
128 streamName -- name of output stream.
129 """
130
131 outputItemList = []
132 rawChannelbuilders = tileRawChannelMaker.TileRawChannelBuilder
133
134 for rawChannelBuilder in rawChannelbuilders:
135 outputItemList += [f'TileRawChannelContainer#{rawChannelBuilder.TileRawChannelContainer}']
136
137 from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
138 acc = OutputStreamCfg(flags, streamName, ItemList = outputItemList)
139
140 return acc
141
142

Variable Documentation

◆ acc

TileRawChannelMakerConfig.acc = MainServicesCfg(flags)

Definition at line 201 of file TileRawChannelMakerConfig.py.

◆ AtlasVersion

TileRawChannelMakerConfig.AtlasVersion

Definition at line 183 of file TileRawChannelMakerConfig.py.

◆ correctTimeJumps

TileRawChannelMakerConfig.correctTimeJumps

Definition at line 192 of file TileRawChannelMakerConfig.py.

◆ doFit

TileRawChannelMakerConfig.doFit

Definition at line 186 of file TileRawChannelMakerConfig.py.

◆ doOF1

TileRawChannelMakerConfig.doOF1

Definition at line 187 of file TileRawChannelMakerConfig.py.

◆ doOpt2

TileRawChannelMakerConfig.doOpt2

Definition at line 189 of file TileRawChannelMakerConfig.py.

◆ doOptATLAS

TileRawChannelMakerConfig.doOptATLAS

Definition at line 190 of file TileRawChannelMakerConfig.py.

◆ doTileNN

TileRawChannelMakerConfig.doTileNN

Definition at line 191 of file TileRawChannelMakerConfig.py.

◆ doWiener

TileRawChannelMakerConfig.doWiener

Definition at line 188 of file TileRawChannelMakerConfig.py.

◆ ESDFileName

TileRawChannelMakerConfig.ESDFileName

Definition at line 194 of file TileRawChannelMakerConfig.py.

◆ Files

TileRawChannelMakerConfig.Files

Definition at line 182 of file TileRawChannelMakerConfig.py.

◆ flags

TileRawChannelMakerConfig.flags = initConfigFlags()

Definition at line 181 of file TileRawChannelMakerConfig.py.

◆ GlobalTag

TileRawChannelMakerConfig.GlobalTag

Definition at line 184 of file TileRawChannelMakerConfig.py.

◆ MaxEvents

TileRawChannelMakerConfig.MaxEvents

Definition at line 195 of file TileRawChannelMakerConfig.py.

◆ NoiseFilter

TileRawChannelMakerConfig.NoiseFilter

Definition at line 193 of file TileRawChannelMakerConfig.py.

◆ RunType

TileRawChannelMakerConfig.RunType

Definition at line 185 of file TileRawChannelMakerConfig.py.

◆ sc

TileRawChannelMakerConfig.sc = acc.run()

Definition at line 212 of file TileRawChannelMakerConfig.py.

◆ summariseProps

TileRawChannelMakerConfig.summariseProps

Definition at line 209 of file TileRawChannelMakerConfig.py.

◆ True

TileRawChannelMakerConfig.True

Definition at line 209 of file TileRawChannelMakerConfig.py.

◆ withDetails

TileRawChannelMakerConfig.withDetails

Definition at line 209 of file TileRawChannelMakerConfig.py.