ATLAS Offline Software
Functions | Variables
TileCellBuilderConfig Namespace Reference

Functions

def TileCellBuilderCfg (flags, mergeChannels=True, **kwargs)
 

Variables

 flags
 
 Files
 
 AtlasVersion
 
 RunType
 
 acc
 
 withDetails
 
 True
 
 summariseProps
 

Function Documentation

◆ TileCellBuilderCfg()

def TileCellBuilderConfig.TileCellBuilderCfg (   flags,
  mergeChannels = True,
**  kwargs 
)
Return component accumulator with configured private Tile Cell builder tool

Arguments:
    flags  -- Athena configuration flags
    SkipGain - skip given gain. Defaults to -1 [use all gains]. Possible values: 0 [LG], 1 [HG].
    mergeChannels -- merge DSP results with offline reco results. Defaults to True.

Definition at line 11 of file TileCellBuilderConfig.py.

11 def TileCellBuilderCfg(flags, mergeChannels=True, **kwargs):
12  """Return component accumulator with configured private Tile Cell builder tool
13 
14  Arguments:
15  flags -- Athena configuration flags
16  SkipGain - skip given gain. Defaults to -1 [use all gains]. Possible values: 0 [LG], 1 [HG].
17  mergeChannels -- merge DSP results with offline reco results. Defaults to True.
18  """
19 
20  acc = ComponentAccumulator()
21  kwargs.setdefault('CheckDCS', flags.Tile.useDCS)
22  kwargs.setdefault('TileRawChannelContainer', flags.Tile.RawChannelContainer)
23  kwargs.setdefault('SkipGain', -1) # Never skip any gain by default
24 
25  kwargs.setdefault('MBTSContainer', 'MBTSContainer' if flags.GeoModel.Run in [LHCPeriod.Run1, LHCPeriod.Run2, LHCPeriod.Run3] else "")
26  kwargs.setdefault('E4prContainer', 'E4prContainer' if flags.GeoModel.Run is LHCPeriod.Run2 else "")
27 
28  kwargs['mergeChannels'] = mergeChannels
29  if flags.Common.ProductionStep is ProductionStep.PileUpPretracking:
30  kwargs.setdefault('EventInfo', flags.Overlay.BkgPrefix + "EventInfo")
31 
32  if kwargs['SkipGain'] not in [-1, 0, 1]:
33  raise(Exception("Invalid Tile gain requsted to be skipped: %s" % kwargs['SkipGain']))
34 
35  from TileRecUtils.TileDQstatusConfig import TileDQstatusAlgCfg
36  acc.merge( TileDQstatusAlgCfg(flags) )
37 
38  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
39  acc.merge(LArGMCfg(flags))
40 
41  from TileGeoModel.TileGMConfig import TileGMCfg
42  acc.merge(TileGMCfg(flags))
43 
44  from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
45  acc.merge( TileInfoLoaderCfg(flags) )
46 
47  from TileConditions.TileCablingSvcConfig import TileCablingSvcCfg
48  acc.merge(TileCablingSvcCfg(flags))
49 
50  from TileConditions.TileBadChannelsConfig import TileBadChannelsCondAlgCfg
51  acc.merge( TileBadChannelsCondAlgCfg(flags) )
52 
53  from TileConditions.TileEMScaleConfig import TileEMScaleCondAlgCfg
54  acc.merge( TileEMScaleCondAlgCfg(flags) )
55 
56  if 'TileCondToolTiming' not in kwargs:
57  from TileConditions.TileTimingConfig import TileCondToolTimingCfg
58  kwargs['TileCondToolTiming'] = acc.popToolsAndMerge( TileCondToolTimingCfg(flags) )
59 
60  if kwargs['CheckDCS']:
61  from TileConditions.TileDCSConfig import TileDCSCondAlgCfg
62  acc.merge( TileDCSCondAlgCfg(flags) )
63 
64  if not (flags.Input.isMC or flags.Overlay.DataOverlay) and mergeChannels and 'TileDSPRawChannelContainer' not in kwargs:
65  from TileRecUtils.TileRawChannelCorrectionConfig import TileRawChannelCorrectionAlgCfg
66  corrAlgAcc = TileRawChannelCorrectionAlgCfg(flags)
67  tileRawChannelCorrectionAlg = corrAlgAcc.getPrimary()
68  tileRawChannelContainerDSP = tileRawChannelCorrectionAlg.OutputRawChannelContainer
69  kwargs['TileDSPRawChannelContainer'] = tileRawChannelContainerDSP
70  acc.merge( corrAlgAcc )
71 
72  TileCellBuilder=CompFactory.TileCellBuilder
73  acc.setPrivateTools( TileCellBuilder(**kwargs) )
74 
75  return acc
76 
77 

Variable Documentation

◆ acc

TileCellBuilderConfig.acc

Definition at line 95 of file TileCellBuilderConfig.py.

◆ AtlasVersion

TileCellBuilderConfig.AtlasVersion

Definition at line 90 of file TileCellBuilderConfig.py.

◆ Files

TileCellBuilderConfig.Files

Definition at line 89 of file TileCellBuilderConfig.py.

◆ flags

TileCellBuilderConfig.flags

Definition at line 88 of file TileCellBuilderConfig.py.

◆ RunType

TileCellBuilderConfig.RunType

Definition at line 91 of file TileCellBuilderConfig.py.

◆ summariseProps

TileCellBuilderConfig.summariseProps

Definition at line 100 of file TileCellBuilderConfig.py.

◆ True

TileCellBuilderConfig.True

Definition at line 100 of file TileCellBuilderConfig.py.

◆ withDetails

TileCellBuilderConfig.withDetails

Definition at line 100 of file TileCellBuilderConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TileTimingConfig.TileCondToolTimingCfg
def TileCondToolTimingCfg(flags, **kwargs)
Definition: TileTimingConfig.py:77
TileCellBuilderConfig.TileCellBuilderCfg
def TileCellBuilderCfg(flags, mergeChannels=True, **kwargs)
Definition: TileCellBuilderConfig.py:11
python.TileInfoLoaderConfig.TileInfoLoaderCfg
def TileInfoLoaderCfg(flags, **kwargs)
Definition: TileInfoLoaderConfig.py:12
TileDQstatusConfig.TileDQstatusAlgCfg
def TileDQstatusAlgCfg(flags, **kwargs)
Definition: TileDQstatusConfig.py:31
python.TileBadChannelsConfig.TileBadChannelsCondAlgCfg
def TileBadChannelsCondAlgCfg(flags, **kwargs)
Definition: TileBadChannelsConfig.py:10
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
python.TileEMScaleConfig.TileEMScaleCondAlgCfg
def TileEMScaleCondAlgCfg(flags, **kwargs)
Definition: TileEMScaleConfig.py:10
python.TileDCSConfig.TileDCSCondAlgCfg
def TileDCSCondAlgCfg(flags, **kwargs)
Definition: TileDCSConfig.py:8
TileCellBuilder
This class creates Cells from RawChannels and stores them in a container.
Definition: TileCellBuilder.h:109
TileRawChannelCorrectionConfig.TileRawChannelCorrectionAlgCfg
def TileRawChannelCorrectionAlgCfg(flags, **kwargs)
Definition: TileRawChannelCorrectionConfig.py:151
python.TileCablingSvcConfig.TileCablingSvcCfg
def TileCablingSvcCfg(flags)
Definition: TileCablingSvcConfig.py:11
TileGMConfig.TileGMCfg
def TileGMCfg(flags)
Definition: TileGMConfig.py:7