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  testBeam = flags.Beam.Type is BeamType.TestBeam
26  kwargs.setdefault('MBTSContainer', 'MBTSContainer' if not testBeam and flags.GeoModel.Run in [LHCPeriod.Run1, LHCPeriod.Run2, LHCPeriod.Run3] else "")
27  kwargs.setdefault('E4prContainer', 'E4prContainer' if not testBeam and flags.GeoModel.Run is LHCPeriod.Run2 else "")
28 
29  kwargs['mergeChannels'] = mergeChannels
30  if flags.Common.ProductionStep is ProductionStep.PileUpPretracking:
31  kwargs.setdefault('EventInfo', flags.Overlay.BkgPrefix + "EventInfo")
32 
33  if kwargs['SkipGain'] not in [-1, 0, 1]:
34  raise(Exception("Invalid Tile gain requsted to be skipped: %s" % kwargs['SkipGain']))
35 
36  from TileRecUtils.TileDQstatusConfig import TileDQstatusAlgCfg
37  acc.merge( TileDQstatusAlgCfg(flags) )
38 
39  if not testBeam:
40  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
41  acc.merge(LArGMCfg(flags))
42 
43  from TileGeoModel.TileGMConfig import TileGMCfg
44  acc.merge(TileGMCfg(flags))
45 
46  from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
47  acc.merge( TileInfoLoaderCfg(flags) )
48 
49  from TileConditions.TileCablingSvcConfig import TileCablingSvcCfg
50  acc.merge(TileCablingSvcCfg(flags))
51 
52  from TileConditions.TileBadChannelsConfig import TileBadChannelsCondAlgCfg
53  acc.merge( TileBadChannelsCondAlgCfg(flags) )
54 
55  from TileConditions.TileEMScaleConfig import TileEMScaleCondAlgCfg
56  acc.merge( TileEMScaleCondAlgCfg(flags) )
57 
58  if 'TileCondToolTiming' not in kwargs:
59  from TileConditions.TileTimingConfig import TileCondToolTimingCfg
60  kwargs['TileCondToolTiming'] = acc.popToolsAndMerge( TileCondToolTimingCfg(flags) )
61 
62  if kwargs['CheckDCS']:
63  from TileConditions.TileDCSConfig import TileDCSCondAlgCfg
64  acc.merge( TileDCSCondAlgCfg(flags) )
65 
66  if not (flags.Input.isMC or flags.Overlay.DataOverlay) and mergeChannels and 'TileDSPRawChannelContainer' not in kwargs:
67  from TileRecUtils.TileRawChannelCorrectionConfig import TileRawChannelCorrectionAlgCfg
68  corrAlgAcc = TileRawChannelCorrectionAlgCfg(flags)
69  tileRawChannelCorrectionAlg = corrAlgAcc.getPrimary()
70  tileRawChannelContainerDSP = tileRawChannelCorrectionAlg.OutputRawChannelContainer
71  kwargs['TileDSPRawChannelContainer'] = tileRawChannelContainerDSP
72  acc.merge( corrAlgAcc )
73 
74  TileCellBuilder=CompFactory.TileCellBuilder
75  acc.setPrivateTools( TileCellBuilder(**kwargs) )
76 
77  return acc
78 
79 

Variable Documentation

◆ acc

TileCellBuilderConfig.acc

Definition at line 97 of file TileCellBuilderConfig.py.

◆ AtlasVersion

TileCellBuilderConfig.AtlasVersion

Definition at line 92 of file TileCellBuilderConfig.py.

◆ Files

TileCellBuilderConfig.Files

Definition at line 91 of file TileCellBuilderConfig.py.

◆ flags

TileCellBuilderConfig.flags

Definition at line 90 of file TileCellBuilderConfig.py.

◆ RunType

TileCellBuilderConfig.RunType

Definition at line 93 of file TileCellBuilderConfig.py.

◆ summariseProps

TileCellBuilderConfig.summariseProps

Definition at line 102 of file TileCellBuilderConfig.py.

◆ True

TileCellBuilderConfig.True

Definition at line 102 of file TileCellBuilderConfig.py.

◆ withDetails

TileCellBuilderConfig.withDetails

Definition at line 102 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:11
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