ATLAS Offline Software
Functions | Variables
TileRawChannelBuilderConfig Namespace Reference

Functions

def TileRawChannelBuilderCfg (flags, name, TileRawChannelBuilder, **kwargs)
 

Variables

 flags
 
 Files
 
 AtlasVersion
 
 RunType
 
 NoiseFilter
 
 acc
 
 TileRawChannelBuilderFitFilter
 
 rchBuilderFitAcc
 
 name
 
 TileRawChannelBuilder
 
 TileRawChannelBuilderOpt2Filter
 
 rchBuilderOpt2Acc
 
 withDetails
 
 True
 
 summariseProps
 

Function Documentation

◆ TileRawChannelBuilderCfg()

def TileRawChannelBuilderConfig.TileRawChannelBuilderCfg (   flags,
  name,
  TileRawChannelBuilder,
**  kwargs 
)
Return component accumulator with configured private base Tile raw channel builder tool

Arguments:
    flags  -- Athena configuration flags
    name -- name of Tile raw channel builder
    TileRawChannelbuilder -- concrete Tile raw channel builder tool.

Definition at line 9 of file TileRawChannelBuilderConfig.py.

9 def TileRawChannelBuilderCfg(flags, name, TileRawChannelBuilder, **kwargs):
10  """Return component accumulator with configured private base Tile raw channel builder tool
11 
12  Arguments:
13  flags -- Athena configuration flags
14  name -- name of Tile raw channel builder
15  TileRawChannelbuilder -- concrete Tile raw channel builder tool.
16  """
17 
18  acc = ComponentAccumulator()
19 
20  runType = flags.Tile.RunType
21 
22  createContainer = ( kwargs.get('TileRawChannelContainer', "") != "" )
23 
24  if createContainer:
25  from TileRecUtils.TileDQstatusConfig import TileDQstatusAlgCfg
26  acc.merge( TileDQstatusAlgCfg(flags) )
27  else:
28  kwargs['TileDQstatus'] = ""
29 
30  from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
31  acc.merge( TileInfoLoaderCfg(flags) )
32 
33  from TileConditions.TileCablingSvcConfig import TileCablingSvcCfg
34  acc.merge( TileCablingSvcCfg(flags) )
35 
36  kwargs['RunType'] = runType.getIntValue()
37  kwargs['calibrateEnergy'] = False
38 
39  kwargs.setdefault('AmpMinForAmpCorrection', flags.Tile.AmpMinForAmpCorrection)
40  kwargs.setdefault('TimeMinForAmpCorrection', flags.Tile.TimeMinForAmpCorrection)
41  kwargs.setdefault('TimeMaxForAmpCorrection', flags.Tile.TimeMaxForAmpCorrection)
42 
43  tileRawChannelContainerDSP = ""
44  if createContainer:
45  if 'NoiseFilterTools' not in kwargs:
46  from TileRecUtils.TileRawChannelCorrectionConfig import TileRawChannelCorrectionToolsCfg
47  correctionTools = acc.popToolsAndMerge( TileRawChannelCorrectionToolsCfg(flags) )
48  kwargs['NoiseFilterTools'] = correctionTools
49 
50  if not (flags.Input.isMC or flags.Overlay.DataOverlay) and len(kwargs['NoiseFilterTools']) > 0:
51  tileRawChannelContainerDSP = 'TileRawChannelCntCorrected'
52  from TileRecUtils.TileRawChannelCorrectionConfig import TileRawChannelCorrectionAlgCfg
53  acc.merge( TileRawChannelCorrectionAlgCfg(flags) )
54 
55  kwargs.setdefault('DSPContainer', tileRawChannelContainerDSP)
56 
57  acc.setPrivateTools( TileRawChannelBuilder(name, **kwargs) )
58 
59  return acc
60 
61 

Variable Documentation

◆ acc

TileRawChannelBuilderConfig.acc

Definition at line 81 of file TileRawChannelBuilderConfig.py.

◆ AtlasVersion

TileRawChannelBuilderConfig.AtlasVersion

Definition at line 74 of file TileRawChannelBuilderConfig.py.

◆ Files

TileRawChannelBuilderConfig.Files

Definition at line 73 of file TileRawChannelBuilderConfig.py.

◆ flags

TileRawChannelBuilderConfig.flags

Definition at line 72 of file TileRawChannelBuilderConfig.py.

◆ name

TileRawChannelBuilderConfig.name

Definition at line 85 of file TileRawChannelBuilderConfig.py.

◆ NoiseFilter

TileRawChannelBuilderConfig.NoiseFilter

Definition at line 76 of file TileRawChannelBuilderConfig.py.

◆ rchBuilderFitAcc

TileRawChannelBuilderConfig.rchBuilderFitAcc

Definition at line 84 of file TileRawChannelBuilderConfig.py.

◆ rchBuilderOpt2Acc

TileRawChannelBuilderConfig.rchBuilderOpt2Acc

Definition at line 90 of file TileRawChannelBuilderConfig.py.

◆ RunType

TileRawChannelBuilderConfig.RunType

Definition at line 75 of file TileRawChannelBuilderConfig.py.

◆ summariseProps

TileRawChannelBuilderConfig.summariseProps

Definition at line 96 of file TileRawChannelBuilderConfig.py.

◆ TileRawChannelBuilder

TileRawChannelBuilderConfig.TileRawChannelBuilder

Definition at line 86 of file TileRawChannelBuilderConfig.py.

◆ TileRawChannelBuilderFitFilter

TileRawChannelBuilderConfig.TileRawChannelBuilderFitFilter

Definition at line 83 of file TileRawChannelBuilderConfig.py.

◆ TileRawChannelBuilderOpt2Filter

TileRawChannelBuilderConfig.TileRawChannelBuilderOpt2Filter

Definition at line 89 of file TileRawChannelBuilderConfig.py.

◆ True

TileRawChannelBuilderConfig.True

Definition at line 96 of file TileRawChannelBuilderConfig.py.

◆ withDetails

TileRawChannelBuilderConfig.withDetails

Definition at line 96 of file TileRawChannelBuilderConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TileInfoLoaderConfig.TileInfoLoaderCfg
def TileInfoLoaderCfg(flags, **kwargs)
Definition: TileInfoLoaderConfig.py:12
TileDQstatusConfig.TileDQstatusAlgCfg
def TileDQstatusAlgCfg(flags, **kwargs)
Definition: TileDQstatusConfig.py:31
TileRawChannelBuilder
Definition: TileRawChannelBuilder.h:59
TileRawChannelBuilderConfig.TileRawChannelBuilderCfg
def TileRawChannelBuilderCfg(flags, name, TileRawChannelBuilder, **kwargs)
Definition: TileRawChannelBuilderConfig.py:9
TileRawChannelCorrectionConfig.TileRawChannelCorrectionAlgCfg
def TileRawChannelCorrectionAlgCfg(flags, **kwargs)
Definition: TileRawChannelCorrectionConfig.py:151
python.TileCablingSvcConfig.TileCablingSvcCfg
def TileCablingSvcCfg(flags)
Definition: TileCablingSvcConfig.py:11
TileRawChannelCorrectionConfig.TileRawChannelCorrectionToolsCfg
def TileRawChannelCorrectionToolsCfg(flags, **kwargs)
Definition: TileRawChannelCorrectionConfig.py:126