ATLAS Offline Software
Functions | Variables
python.TileInfoLoaderConfig Namespace Reference

Functions

def TileInfoLoaderCfg (flags, **kwargs)
 

Variables

 flags
 
 Files
 
 acc
 
 withDetails
 
 True
 
 summariseProps
 

Function Documentation

◆ TileInfoLoaderCfg()

def python.TileInfoLoaderConfig.TileInfoLoaderCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile info loader service

Arguments:
    flags  -- Athena configuration flags

Definition at line 12 of file TileInfoLoaderConfig.py.

12 def TileInfoLoaderCfg(flags, **kwargs):
13  """Return component accumulator with configured Tile info loader service
14 
15  Arguments:
16  flags -- Athena configuration flags
17  """
18 
19  from AthenaCommon.Logging import logging
20  msg = logging.getLogger('TileInfoLoaderCfg')
21 
22  from TileConditions.TileCablingSvcConfig import TileCablingSvcCfg
23  acc = ComponentAccumulator()
24  acc.merge (TileCablingSvcCfg(flags))
25 
26  kwargs.setdefault('LoadWienerFilterWeights', flags.Tile.doWiener)
27 
28  if 'NoiseScaleIndex' not in kwargs:
29  if flags.Tile.doOpt2 and not flags.Tile.doOptATLAS:
30  msg.info("Adjusting TileInfo to return cell noise for Opt.Filter with iterations")
31  kwargs['NoiseScaleIndex'] = 2 # Noise for Optimal Filter with iterations
32  else:
33  msg.info("Adjusting TileInfo to return cell noise for Opt.Filter without iterations")
34  kwargs['NoiseScaleIndex'] = 1 # Noise for Optimal Filter without iterations
35 
36  kwargs.setdefault('TileNoise', flags.Digitization.DoCaloNoise)
37  if kwargs['TileNoise']:
38  msg.info("Switching ON noise in Tile Digitization" )
39  else:
40  msg.info("Switching OFF noise in Tile Digitization" )
41 
42 
43  TileInfoLoader=CompFactory.TileInfoLoader
44  acc.addService(TileInfoLoader(**kwargs), primary = True, create=True)
45 
46  return acc
47 
48 

Variable Documentation

◆ acc

python.TileInfoLoaderConfig.acc

Definition at line 63 of file TileInfoLoaderConfig.py.

◆ Files

python.TileInfoLoaderConfig.Files

Definition at line 60 of file TileInfoLoaderConfig.py.

◆ flags

python.TileInfoLoaderConfig.flags

Definition at line 59 of file TileInfoLoaderConfig.py.

◆ summariseProps

python.TileInfoLoaderConfig.summariseProps

Definition at line 66 of file TileInfoLoaderConfig.py.

◆ True

python.TileInfoLoaderConfig.True

Definition at line 66 of file TileInfoLoaderConfig.py.

◆ withDetails

python.TileInfoLoaderConfig.withDetails

Definition at line 66 of file TileInfoLoaderConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TileInfoLoader
Definition: TileInfoLoader.h:53
python.TileInfoLoaderConfig.TileInfoLoaderCfg
def TileInfoLoaderCfg(flags, **kwargs)
Definition: TileInfoLoaderConfig.py:12
python.TileCablingSvcConfig.TileCablingSvcCfg
def TileCablingSvcCfg(flags)
Definition: TileCablingSvcConfig.py:11