ATLAS Offline Software
Functions | Variables
TileHitVecToCntConfig Namespace Reference

Functions

def getTileFirstXing ()
 
def getTileLastXing ()
 
def TileRangeCfg (flags, name='TileRange', **kwargs)
 
def TileHitVecToCntToolCfg (flags, **kwargs)
 
def TileHitVecToCntCfg (flags, **kwargs)
 
def TileHitOutputCfg (flags, **kwargs)
 
def TileHitVecToCntOutputCfg (flags, **kwargs)
 

Variables

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

Function Documentation

◆ getTileFirstXing()

def TileHitVecToCntConfig.getTileFirstXing ( )
Return the earliest bunch crossing time for which interactions will be sent to the TileHitVecToCntTool

Definition at line 12 of file TileHitVecToCntConfig.py.

12 def getTileFirstXing():
13  """Return the earliest bunch crossing time for which interactions will be sent to the TileHitVecToCntTool"""
14  return -200
15 
16 

◆ getTileLastXing()

def TileHitVecToCntConfig.getTileLastXing ( )
Return the latest bunch crossing time for which interactions will be sent to the TileHitVecToCntTool

Definition at line 17 of file TileHitVecToCntConfig.py.

17 def getTileLastXing():
18  """Return the latest bunch crossing time for which interactions will be sent to the TileHitVecToCntTool"""
19  return 150
20 
21 

◆ TileHitOutputCfg()

def TileHitVecToCntConfig.TileHitOutputCfg (   flags,
**  kwargs 
)
Return component accumulator with Output Stream configuration for Tile hits

Arguments:
    flags  -- Athena configuration flags

Definition at line 133 of file TileHitVecToCntConfig.py.

133 def TileHitOutputCfg(flags, **kwargs):
134  """Return component accumulator with Output Stream configuration for Tile hits
135 
136  Arguments:
137  flags -- Athena configuration flags
138  """
139 
140  if flags.Output.doWriteRDO:
141  acc = OutputStreamCfg(flags, 'RDO', ['TileHitContainer#*'])
142  else:
143  acc = ComponentAccumulator()
144 
145  return acc
146 
147 

◆ TileHitVecToCntCfg()

def TileHitVecToCntConfig.TileHitVecToCntCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile hit vector to container algorithm

Arguments:
    flags  -- Athena configuration flags

Definition at line 105 of file TileHitVecToCntConfig.py.

105 def TileHitVecToCntCfg(flags, **kwargs):
106  """Return component accumulator with configured Tile hit vector to container algorithm
107 
108  Arguments:
109  flags -- Athena configuration flags
110  """
111 
112  acc = ComponentAccumulator()
113 
114  if 'DigitizationTool' not in kwargs:
115  tool = acc.popToolsAndMerge( TileHitVecToCntToolCfg(flags) )
116  kwargs.setdefault('DigitizationTool', tool)
117 
118  # choose which alg to attach to, following PileUpToolsCfg
119  if flags.Common.isOverlay:
120  if flags.Concurrency.NumThreads > 0:
121  kwargs.setdefault('Cardinality', flags.Concurrency.NumThreads)
122 
123  kwargs.setdefault('name', 'TileHitVecToCnt')
124  Alg = CompFactory.TileHitVecToCnt
125  acc.addEventAlgo(Alg(**kwargs))
126  else:
127  kwargs["PileUpTools"] = [kwargs.pop("DigitizationTool")]
128  acc.merge(PileUpToolsCfg(flags, **kwargs))
129 
130  return acc
131 
132 

◆ TileHitVecToCntOutputCfg()

def TileHitVecToCntConfig.TileHitVecToCntOutputCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile hit vector to container algorithm and Output Stream

Arguments:
    flags  -- Athena configuration flags

Definition at line 148 of file TileHitVecToCntConfig.py.

148 def TileHitVecToCntOutputCfg(flags, **kwargs):
149  """Return component accumulator with configured Tile hit vector to container algorithm and Output Stream
150 
151  Arguments:
152  flags -- Athena configuration flags
153  """
154 
155  acc = TileHitVecToCntCfg(flags, **kwargs)
156  acc.merge(TileHitOutputCfg(flags))
157 
158  return acc
159 
160 
161 

◆ TileHitVecToCntToolCfg()

def TileHitVecToCntConfig.TileHitVecToCntToolCfg (   flags,
**  kwargs 
)
Return component accumulator with configured private Tile hit vector to container tool

Arguments:
    flags  -- Athena configuration flags

Definition at line 33 of file TileHitVecToCntConfig.py.

33 def TileHitVecToCntToolCfg(flags, **kwargs):
34  """Return component accumulator with configured private Tile hit vector to container tool
35 
36  Arguments:
37  flags -- Athena configuration flags
38  """
39 
40  kwargs.setdefault('name', 'TileHitVecToCntTool')
41  kwargs.setdefault('RndmEvtOverlay', flags.Common.isOverlay)
42  if flags.Common.isOverlay:
43  kwargs.setdefault('OnlyUseContainerName', False)
44  else:
45  kwargs.setdefault('OnlyUseContainerName', flags.Digitization.PileUp)
46 
47  acc = ComponentAccumulator()
48 
49  from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
50  acc.merge( TileInfoLoaderCfg(flags) )
51 
52  from TileConditions.TileSamplingFractionConfig import TileSamplingFractionCondAlgCfg
53  acc.merge( TileSamplingFractionCondAlgCfg(flags) )
54 
55  from TileConditions.TileCablingSvcConfig import TileCablingSvcCfg
56  acc.merge(TileCablingSvcCfg(flags))
57 
58  if flags.Detector.EnableMBTS:
59  kwargs.setdefault('TileHitVectors', ['TileHitVec', 'MBTSHits'])
60  else:
61  kwargs.setdefault('TileHitVectors', ['TileHitVec'])
62  kwargs.setdefault('TileHitContainer', 'TileHitCnt')
63 
64  if flags.Common.isOverlay and not flags.Sim.DoFullChain:
65  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
66  acc.merge(SGInputLoaderCfg(flags, [f'TileHitVector#{vec}' for vec in kwargs['TileHitVectors']]))
67 
68  kwargs.setdefault('DoHSTruthReconstruction', flags.Digitization.EnableCaloHSTruthRecoInputs)
69  if kwargs['DoHSTruthReconstruction']:
70  kwargs.setdefault('TileHitContainer_DigiHSTruth', 'TileHitCnt_DigiHSTruth')
71  else:
72  kwargs.setdefault('TileHitContainer_DigiHSTruth', '')
73 
74  if 'RndmSvc' not in kwargs:
75  from RngComps.RngCompsConfig import AthRNGSvcCfg
76  kwargs['RndmSvc'] = acc.getPrimaryAndMerge(AthRNGSvcCfg(flags)).name
77 
78  if kwargs['RndmEvtOverlay']:
79  kwargs.setdefault('PileUp', False)
80  else:
81  kwargs.setdefault('PileUp', flags.Digitization.PileUp)
82 
83  if flags.Beam.Type is BeamType.Cosmics:
84  CosmicTriggerTimeTool=CompFactory.CosmicTriggerTimeTool
85  kwargs.setdefault('TriggerTimeTool', CosmicTriggerTimeTool())
86  kwargs.setdefault('HitTimeFlag', 2)
87  kwargs.setdefault('UseTriggerTime', True)
88 
89  if flags.Digitization.PileUp:
90  intervals = []
91  if flags.Digitization.DoXingByXingPileUp: # PileUpTool approach
92  kwargs.setdefault("FirstXing", getTileFirstXing() )
93  kwargs.setdefault("LastXing", getTileLastXing() )
94  else:
95  intervals += [acc.popToolsAndMerge(TileRangeCfg(flags))]
96  kwargs.setdefault("PileUpMergeSvc", acc.getPrimaryAndMerge(PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
97  else:
98  kwargs.setdefault("PileUpMergeSvc", '')
99 
100  acc.setPrivateTools(CompFactory.TileHitVecToCntTool(**kwargs))
101 
102  return acc
103 
104 

◆ TileRangeCfg()

def TileHitVecToCntConfig.TileRangeCfg (   flags,
  name = 'TileRange',
**  kwargs 
)
Return a PileUpXingFolder tool for Tile

Definition at line 22 of file TileHitVecToCntConfig.py.

22 def TileRangeCfg(flags, name = 'TileRange', **kwargs):
23  """Return a PileUpXingFolder tool for Tile"""
24  item_list = ['TileHitVector#TileHitVec']
25  if flags.Detector.EnableMBTS:
26  item_list += ['TileHitVector#MBTSHits']
27  kwargs.setdefault('FirstXing', getTileFirstXing() )
28  kwargs.setdefault('LastXing', getTileLastXing() )
29  kwargs.setdefault('ItemList', item_list )
30  return PileUpXingFolderCfg(flags, name, **kwargs)
31 
32 

Variable Documentation

◆ acc

TileHitVecToCntConfig.acc

Definition at line 184 of file TileHitVecToCntConfig.py.

◆ Dump

TileHitVecToCntConfig.Dump

Definition at line 197 of file TileHitVecToCntConfig.py.

◆ Files

TileHitVecToCntConfig.Files

Definition at line 173 of file TileHitVecToCntConfig.py.

◆ flags

TileHitVecToCntConfig.flags

Definition at line 172 of file TileHitVecToCntConfig.py.

◆ GlobalTag

TileHitVecToCntConfig.GlobalTag

Definition at line 175 of file TileHitVecToCntConfig.py.

◆ inputKey

TileHitVecToCntConfig.inputKey

Definition at line 192 of file TileHitVecToCntConfig.py.

◆ MaxEvents

TileHitVecToCntConfig.MaxEvents

Definition at line 177 of file TileHitVecToCntConfig.py.

◆ outputKey

TileHitVecToCntConfig.outputKey

Definition at line 193 of file TileHitVecToCntConfig.py.

◆ PileUp

TileHitVecToCntConfig.PileUp

Definition at line 176 of file TileHitVecToCntConfig.py.

◆ RDOFileName

TileHitVecToCntConfig.RDOFileName

Definition at line 174 of file TileHitVecToCntConfig.py.

◆ sc

TileHitVecToCntConfig.sc

Definition at line 202 of file TileHitVecToCntConfig.py.

◆ summariseProps

TileHitVecToCntConfig.summariseProps

Definition at line 198 of file TileHitVecToCntConfig.py.

◆ True

TileHitVecToCntConfig.True

Definition at line 198 of file TileHitVecToCntConfig.py.

◆ withDetails

TileHitVecToCntConfig.withDetails

Definition at line 198 of file TileHitVecToCntConfig.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
TileHitVecToCntConfig.TileRangeCfg
def TileRangeCfg(flags, name='TileRange', **kwargs)
Definition: TileHitVecToCntConfig.py:22
TileHitVecToCntConfig.getTileFirstXing
def getTileFirstXing()
Definition: TileHitVecToCntConfig.py:12
python.TileSamplingFractionConfig.TileSamplingFractionCondAlgCfg
def TileSamplingFractionCondAlgCfg(flags, **kwargs)
Definition: TileSamplingFractionConfig.py:9
TileHitVecToCntConfig.TileHitVecToCntToolCfg
def TileHitVecToCntToolCfg(flags, **kwargs)
Definition: TileHitVecToCntConfig.py:33
python.TileInfoLoaderConfig.TileInfoLoaderCfg
def TileInfoLoaderCfg(flags, **kwargs)
Definition: TileInfoLoaderConfig.py:12
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
TileHitVecToCntConfig.TileHitVecToCntCfg
def TileHitVecToCntCfg(flags, **kwargs)
Definition: TileHitVecToCntConfig.py:105
python.PileUpToolsConfig.PileUpToolsCfg
def PileUpToolsCfg(flags, **kwargs)
Definition: PileUpToolsConfig.py:14
TileHitVecToCntConfig.getTileLastXing
def getTileLastXing()
Definition: TileHitVecToCntConfig.py:17
TileHitVecToCntConfig.TileHitVecToCntOutputCfg
def TileHitVecToCntOutputCfg(flags, **kwargs)
Definition: TileHitVecToCntConfig.py:148
python.PileUpMergeSvcConfig.PileUpXingFolderCfg
def PileUpXingFolderCfg(flags, name="PileUpXingFolder", **kwargs)
Definition: PileUpMergeSvcConfig.py:35
TileHitVecToCntConfig.TileHitOutputCfg
def TileHitOutputCfg(flags, **kwargs)
Definition: TileHitVecToCntConfig.py:133
python.PileUpMergeSvcConfig.PileUpMergeSvcCfg
def PileUpMergeSvcCfg(flags, name="PileUpMergeSvc", Intervals=[], **kwargs)
Definition: PileUpMergeSvcConfig.py:10
python.TileCablingSvcConfig.TileCablingSvcCfg
def TileCablingSvcCfg(flags)
Definition: TileCablingSvcConfig.py:11
CosmicTriggerTimeTool
Definition: CosmicTriggerTimeTool.h:15
RngCompsConfig.AthRNGSvcCfg
def AthRNGSvcCfg(flags, name="AthRNGSvc")
Definition: RngCompsConfig.py:51