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

Classes

class  PrepareDataAlg
class  TestAlg
class  TileFragHash

Functions

 reldiff (a, b)
 exp_merge (base, d)
 TileRawChannelBuilderTestCfg (flags)

Variables

list digits_0
dict exp_chans_0
 exp_chans_1
 exp_chans_2
 exp_chans_3
 flags = initConfigFlags()
 Files
 RunType
 MaxEvents
 cfg = MainServicesCfg(flags)
 withDetails
 sc = cfg.run()

Function Documentation

◆ exp_merge()

TileRawChannelBuilderTestConfig.exp_merge ( base,
d )

Definition at line 114 of file TileRawChannelBuilderTestConfig.py.

114def exp_merge (base, d):
115 new = base.copy()
116 new.update (d)
117 return new
118
119
120# TileDQstatus errors

◆ reldiff()

TileRawChannelBuilderTestConfig.reldiff ( a,
b )

Definition at line 18 of file TileRawChannelBuilderTestConfig.py.

18def reldiff (a, b):
19 den = abs(a)+abs(b)
20 if den == 0: den = 1
21 return abs(a-b)/den
22
23
24

◆ TileRawChannelBuilderTestCfg()

TileRawChannelBuilderTestConfig.TileRawChannelBuilderTestCfg ( flags)

Definition at line 409 of file TileRawChannelBuilderTestConfig.py.

409def TileRawChannelBuilderTestCfg(flags):
410
411 acc = ComponentAccumulator()
412
413 from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
414 acc.merge( TileInfoLoaderCfg(flags) )
415
416 from TileConditions.TileEMScaleConfig import TileEMScaleCondAlgCfg
417 acc.merge( TileEMScaleCondAlgCfg(flags) )
418
419 from TileConditions.TileSampleNoiseConfig import TileSampleNoiseCondAlgCfg
420 acc.merge( TileSampleNoiseCondAlgCfg(flags) )
421
422 TileRawChannelBuilderTest = CompFactory.TileRawChannelBuilderTest
423 acc.addPublicTool( TileRawChannelBuilderTest('tool1') )
424
425 TileRawChannelNoiseFilter = CompFactory.TileRawChannelNoiseFilter
426 noisefilter = TileRawChannelNoiseFilter('noisefilter')
427 acc.addPublicTool( TileRawChannelBuilderTest('tool2', NoiseFilterTools=[noisefilter]) )
428
429 acc.addEventAlgo( PrepareDataAlg('prepalg1') )
430
431 from TileRecUtils.TileDQstatusConfig import TileDQstatusAlgCfg
432 acc.merge(TileDQstatusAlgCfg(flags, name='dqstat1',
433 TileRawChannelContainer='TRCDQ'))
434
435 acc.addEventAlgo( TestAlg('testalg1') )
436
437 return acc
438
439
This tool subtracts common-mode noise from all TileRawChannels in one container.

Variable Documentation

◆ cfg

TileRawChannelBuilderTestConfig.cfg = MainServicesCfg(flags)

Definition at line 459 of file TileRawChannelBuilderTestConfig.py.

◆ digits_0

list TileRawChannelBuilderTestConfig.digits_0

Definition at line 25 of file TileRawChannelBuilderTestConfig.py.

◆ exp_chans_0

dict TileRawChannelBuilderTestConfig.exp_chans_0

Definition at line 76 of file TileRawChannelBuilderTestConfig.py.

◆ exp_chans_1

TileRawChannelBuilderTestConfig.exp_chans_1
Initial value:
1= exp_merge (exp_chans_0, {
2 (3, 1, 18, 13, 3, 0) : [ 4.4, -26.5, 23.9, 70051.2],
3 (3, 1, 18, 15, 3, 0) : [ -0.1, -75.0, 3.7, 70051.0],
4 (3, 1, 18, 8, 2, 0) : [ -0.1, 75.0, 4.2, 70041.7],
5 (2, 1, 18, 10, 1, 1) : [ 64.1, 1.0, 3.5, 70036.9],
6 (2, 1, 18, 12, 0, 0) : [ -0.2, -75.0, 2.8, 70038.1],
7 (2, 1, 18, 12, 0, 1) : [ 0.5, -32.7, 1.9, 70040.3],
8 })

Definition at line 121 of file TileRawChannelBuilderTestConfig.py.

◆ exp_chans_2

TileRawChannelBuilderTestConfig.exp_chans_2
Initial value:
1= exp_merge (exp_chans_0, {
2 (1, 1, 0, 1, 1, 0) : [ -0.6, 22.1, 2.4, 43.7],
3 (1, 1, 0, 2, 0, 1) : [ 41.0, 0.1, 2.5, 46.5],
4 (1, 1, 0, 2, 1, 1) : [ 0.6, 12.9, 4.7, 43.9],
5})

Definition at line 132 of file TileRawChannelBuilderTestConfig.py.

◆ exp_chans_3

TileRawChannelBuilderTestConfig.exp_chans_3
Initial value:
1= exp_merge (exp_chans_0, {
2 (1, 1, 0, 1, 1, 0) : [ 0.125, 22.1, 2.4, 42.975],
3 (1, 1, 0, 1, 1, 1) : [ -0.475, 75.0, 2.7, 120031.477],
4 (1, 1, 0, 1, 0, 0) : [ -0.975, -13.3, 1.5, 120037.477],
5 (1, 1, 0, 2, 0, 1) : [ 41.725, 0.1, 2.5, 45.775],
6 (1, 1, 0, 2, 0, 0) : [ 30.525, -0.4, 2.0, 120033.180],
7 (1, 1, 0, 2, 1, 1) : [ 1.325, 12.9, 4.7, 43.175],
8})

Definition at line 140 of file TileRawChannelBuilderTestConfig.py.

◆ Files

TileRawChannelBuilderTestConfig.Files

Definition at line 451 of file TileRawChannelBuilderTestConfig.py.

◆ flags

TileRawChannelBuilderTestConfig.flags = initConfigFlags()

Definition at line 450 of file TileRawChannelBuilderTestConfig.py.

◆ MaxEvents

TileRawChannelBuilderTestConfig.MaxEvents

Definition at line 453 of file TileRawChannelBuilderTestConfig.py.

◆ RunType

TileRawChannelBuilderTestConfig.RunType

Definition at line 452 of file TileRawChannelBuilderTestConfig.py.

◆ sc

TileRawChannelBuilderTestConfig.sc = cfg.run()

Definition at line 471 of file TileRawChannelBuilderTestConfig.py.

◆ withDetails

TileRawChannelBuilderTestConfig.withDetails

Definition at line 468 of file TileRawChannelBuilderTestConfig.py.