ATLAS Offline Software
Functions | Variables
TileHitToTTL1Config Namespace Reference

Functions

def TileHitToTTL1Cfg (flags, **kwargs)
 
def TileHitToTTL1CosmicsCfg (flags, **kwargs)
 
def TileTTL1OutputCfg (flags, TileHitToTTL1)
 
def TileHitToTTL1OutputCfg (flags, **kwargs)
 
def TileHitToTTL1CosmicsOutputCfg (flags, **kwargs)
 

Variables

 flags
 
 Files
 
 GlobalTag
 
 PileUp
 
 RDOFileName
 
 MaxEvents
 
 acc
 
 inputKey
 
 outputKey
 
 withDetails
 
 True
 
 summariseProps
 
 sc
 

Function Documentation

◆ TileHitToTTL1Cfg()

def TileHitToTTL1Config.TileHitToTTL1Cfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile hits to TTL1 algorithm

Arguments:
    flags  -- Athena configuration flags

Definition at line 11 of file TileHitToTTL1Config.py.

11 def TileHitToTTL1Cfg(flags, **kwargs):
12  """Return component accumulator with configured Tile hits to TTL1 algorithm
13 
14  Arguments:
15  flags -- Athena configuration flags
16  """
17 
18  kwargs.setdefault('name', 'TileHitToTTL1')
19  kwargs.setdefault('TileHitContainer', 'TileHitCnt')
20  kwargs.setdefault('maskBadChannels', True)
21 
22  acc = TileHitVecToCntCfg(flags)
23 
24  from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
25  acc.merge( TileInfoLoaderCfg(flags) )
26 
27  from TileConditions.TileSamplingFractionConfig import TileSamplingFractionCondAlgCfg
28  acc.merge( TileSamplingFractionCondAlgCfg(flags) )
29 
30  from TileConditions.TileCablingSvcConfig import TileCablingSvcCfg
31  acc.merge(TileCablingSvcCfg(flags))
32 
33  if 'RndmSvc' not in kwargs:
34  from RngComps.RngCompsConfig import AthRNGSvcCfg
35  kwargs['RndmSvc'] = acc.getPrimaryAndMerge(AthRNGSvcCfg(flags)).name
36 
37  if kwargs['maskBadChannels']:
38  from TileConditions.TileBadChannelsConfig import TileBadChannelsCondAlgCfg
39  acc.merge( TileBadChannelsCondAlgCfg(flags) )
40 
41  from TileConditions.TileEMScaleConfig import TileEMScaleCondAlgCfg
42  acc.merge( TileEMScaleCondAlgCfg(flags) )
43 
44  if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
45  kwargs.setdefault('TileTTL1Container', flags.Overlay.BkgPrefix + 'TileTTL1Cnt')
46  if flags.Detector.EnableMBTS:
47  kwargs.setdefault('TileMBTSTTL1Container', flags.Overlay.BkgPrefix + 'TileTTL1MBTS')
48  else:
49  kwargs.setdefault('TileMBTSTTL1Container', '')
50  elif flags.Common.isOverlay:
51  kwargs.setdefault('TileTTL1Container', flags.Overlay.SigPrefix + 'TileTTL1Cnt')
52  if flags.Detector.EnableMBTS:
53  kwargs.setdefault('TileMBTSTTL1Container', flags.Overlay.SigPrefix + 'TileTTL1MBTS')
54  else:
55  kwargs.setdefault('TileMBTSTTL1Container', '')
56  else:
57  kwargs.setdefault('TileTTL1Container', 'TileTTL1Cnt')
58  if flags.Detector.EnableMBTS:
59  kwargs.setdefault('TileMBTSTTL1Container', 'TileTTL1MBTS')
60  else:
61  kwargs.setdefault('TileMBTSTTL1Container', '')
62 
63  TileHitToTTL1=CompFactory.TileHitToTTL1
64  acc.addEventAlgo(TileHitToTTL1(**kwargs), primary = True)
65 
66  return acc
67 
68 

◆ TileHitToTTL1CosmicsCfg()

def TileHitToTTL1Config.TileHitToTTL1CosmicsCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile hits to TTL1 algorithm for cosmics

Arguments:
    flags  -- Athena configuration flags

Definition at line 69 of file TileHitToTTL1Config.py.

69 def TileHitToTTL1CosmicsCfg(flags, **kwargs):
70  """Return component accumulator with configured Tile hits to TTL1 algorithm for cosmics
71 
72  Arguments:
73  flags -- Athena configuration flags
74  """
75 
76  kwargs.setdefault('name', 'TileHitToTTL1_Cosmics')
77  kwargs.setdefault('TileTTL1Type', 'Cosmics')
78  kwargs.setdefault('TileTTL1Container', 'TileTTL1CosmicsCnt')
79  if flags.Detector.EnableMBTS:
80  kwargs.setdefault('TileMBTSTTL1Container', 'TileMBTSTTL1CosmicsContainer')
81  else:
82  kwargs.setdefault('TileMBTSTTL1Container', '')
83 
84  return TileHitToTTL1Cfg(flags, **kwargs)
85 
86 

◆ TileHitToTTL1CosmicsOutputCfg()

def TileHitToTTL1Config.TileHitToTTL1CosmicsOutputCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile hits to TTL1 algorithm for cosmics and Output Stream

Arguments:
    flags  -- Athena configuration flags

Definition at line 128 of file TileHitToTTL1Config.py.

128 def TileHitToTTL1CosmicsOutputCfg(flags, **kwargs):
129  """Return component accumulator with configured Tile hits to TTL1 algorithm for cosmics and Output Stream
130 
131  Arguments:
132  flags -- Athena configuration flags
133  """
134 
135  acc = TileHitToTTL1CosmicsCfg(flags, **kwargs)
136  acc.merge( TileTTL1OutputCfg(flags, acc.getPrimary()) )
137 
138  return acc
139 
140 

◆ TileHitToTTL1OutputCfg()

def TileHitToTTL1Config.TileHitToTTL1OutputCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile hits to TTL1 algorithm and Output Stream

Arguments:
    flags  -- Athena configuration flags

Definition at line 115 of file TileHitToTTL1Config.py.

115 def TileHitToTTL1OutputCfg(flags, **kwargs):
116  """Return component accumulator with configured Tile hits to TTL1 algorithm and Output Stream
117 
118  Arguments:
119  flags -- Athena configuration flags
120  """
121 
122  acc = TileHitToTTL1Cfg(flags, **kwargs)
123  acc.merge( TileTTL1OutputCfg(flags, acc.getPrimary()) )
124 
125  return acc
126 
127 

◆ TileTTL1OutputCfg()

def TileHitToTTL1Config.TileTTL1OutputCfg (   flags,
  TileHitToTTL1 
)

Definition at line 87 of file TileHitToTTL1Config.py.

87 def TileTTL1OutputCfg(flags, TileHitToTTL1):
88 
89  if hasattr(TileHitToTTL1, 'TileTTL1Container'):
90  tileTTL1Container = TileHitToTTL1.TileTTL1Container
91  else:
92  tileTTL1Container = TileHitToTTL1.getDefaultProperty('TileTTL1Container')
93  tileTTL1Container = str(tileTTL1Container).split('+').pop()
94  outputItemList = ['TileTTL1Container#' + tileTTL1Container]
95 
96  if hasattr(TileHitToTTL1, 'TileMBTSTTL1Container'):
97  mbtsTTL1Container = TileHitToTTL1.TileMBTSTTL1Container
98  else:
99  mbtsTTL1Container = TileHitToTTL1.getDefaultProperty('TileMBTSTTL1Container')
100  mbtsTTL1Container = str(mbtsTTL1Container).split('+').pop()
101  outputItemList += ['TileTTL1Container#' + mbtsTTL1Container]
102 
103  acc = ComponentAccumulator()
104  if flags.Output.doWriteRDO:
105  if flags.Digitization.EnableTruth:
106  outputItemList += ["CaloCalibrationHitContainer#*"]
107  from DigitizationConfig.TruthDigitizationOutputConfig import TruthDigitizationOutputCfg
108  acc.merge(TruthDigitizationOutputCfg(flags))
109  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
110  acc.merge(OutputStreamCfg(flags, streamName = 'RDO', ItemList = outputItemList))
111 
112  return acc
113 
114 

Variable Documentation

◆ acc

TileHitToTTL1Config.acc

Definition at line 162 of file TileHitToTTL1Config.py.

◆ Files

TileHitToTTL1Config.Files

Definition at line 152 of file TileHitToTTL1Config.py.

◆ flags

TileHitToTTL1Config.flags

Definition at line 151 of file TileHitToTTL1Config.py.

◆ GlobalTag

TileHitToTTL1Config.GlobalTag

Definition at line 153 of file TileHitToTTL1Config.py.

◆ inputKey

TileHitToTTL1Config.inputKey

Definition at line 170 of file TileHitToTTL1Config.py.

◆ MaxEvents

TileHitToTTL1Config.MaxEvents

Definition at line 156 of file TileHitToTTL1Config.py.

◆ outputKey

TileHitToTTL1Config.outputKey

Definition at line 171 of file TileHitToTTL1Config.py.

◆ PileUp

TileHitToTTL1Config.PileUp

Definition at line 154 of file TileHitToTTL1Config.py.

◆ RDOFileName

TileHitToTTL1Config.RDOFileName

Definition at line 155 of file TileHitToTTL1Config.py.

◆ sc

TileHitToTTL1Config.sc

Definition at line 179 of file TileHitToTTL1Config.py.

◆ summariseProps

TileHitToTTL1Config.summariseProps

Definition at line 176 of file TileHitToTTL1Config.py.

◆ True

TileHitToTTL1Config.True

Definition at line 176 of file TileHitToTTL1Config.py.

◆ withDetails

TileHitToTTL1Config.withDetails

Definition at line 176 of file TileHitToTTL1Config.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
python.TruthDigitizationOutputConfig.TruthDigitizationOutputCfg
def TruthDigitizationOutputCfg(flags)
Definition: TruthDigitizationOutputConfig.py:9
TileHitToTTL1Config.TileTTL1OutputCfg
def TileTTL1OutputCfg(flags, TileHitToTTL1)
Definition: TileHitToTTL1Config.py:87
python.TileSamplingFractionConfig.TileSamplingFractionCondAlgCfg
def TileSamplingFractionCondAlgCfg(flags, **kwargs)
Definition: TileSamplingFractionConfig.py:9
python.TileInfoLoaderConfig.TileInfoLoaderCfg
def TileInfoLoaderCfg(flags, **kwargs)
Definition: TileInfoLoaderConfig.py:12
python.TileBadChannelsConfig.TileBadChannelsCondAlgCfg
def TileBadChannelsCondAlgCfg(flags, **kwargs)
Definition: TileBadChannelsConfig.py:10
TileHitVecToCntConfig.TileHitVecToCntCfg
def TileHitVecToCntCfg(flags, **kwargs)
Definition: TileHitVecToCntConfig.py:105
python.TileEMScaleConfig.TileEMScaleCondAlgCfg
def TileEMScaleCondAlgCfg(flags, **kwargs)
Definition: TileEMScaleConfig.py:10
TileHitToTTL1Config.TileHitToTTL1OutputCfg
def TileHitToTTL1OutputCfg(flags, **kwargs)
Definition: TileHitToTTL1Config.py:115
TileHitToTTL1Config.TileHitToTTL1Cfg
def TileHitToTTL1Cfg(flags, **kwargs)
Definition: TileHitToTTL1Config.py:11
str
Definition: BTagTrackIpAccessor.cxx:11
TileHitToTTL1
This algorithm builds TileTTL1 objects from TileHits.
Definition: TileHitToTTL1.h:72
TileHitToTTL1Config.TileHitToTTL1CosmicsOutputCfg
def TileHitToTTL1CosmicsOutputCfg(flags, **kwargs)
Definition: TileHitToTTL1Config.py:128
TileHitToTTL1Config.TileHitToTTL1CosmicsCfg
def TileHitToTTL1CosmicsCfg(flags, **kwargs)
Definition: TileHitToTTL1Config.py:69
Trk::split
@ split
Definition: LayerMaterialProperties.h:38
python.TileCablingSvcConfig.TileCablingSvcCfg
def TileCablingSvcCfg(flags)
Definition: TileCablingSvcConfig.py:11
RngCompsConfig.AthRNGSvcCfg
def AthRNGSvcCfg(flags, name="AthRNGSvc")
Definition: RngCompsConfig.py:51