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 134 of file TileHitVecToCntConfig.py.

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

◆ 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 106 of file TileHitVecToCntConfig.py.

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

◆ 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 149 of file TileHitVecToCntConfig.py.

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

◆ 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  kwargs.setdefault("OnlyUseContainerName", flags.Digitization.PileUp)
100  TileHitVecToCntTool=CompFactory.TileHitVecToCntTool
101  acc.setPrivateTools(TileHitVecToCntTool(**kwargs))
102 
103  return acc
104 
105 

◆ 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 185 of file TileHitVecToCntConfig.py.

◆ Dump

TileHitVecToCntConfig.Dump

Definition at line 198 of file TileHitVecToCntConfig.py.

◆ Files

TileHitVecToCntConfig.Files

Definition at line 174 of file TileHitVecToCntConfig.py.

◆ flags

TileHitVecToCntConfig.flags

Definition at line 173 of file TileHitVecToCntConfig.py.

◆ GlobalTag

TileHitVecToCntConfig.GlobalTag

Definition at line 176 of file TileHitVecToCntConfig.py.

◆ inputKey

TileHitVecToCntConfig.inputKey

Definition at line 193 of file TileHitVecToCntConfig.py.

◆ MaxEvents

TileHitVecToCntConfig.MaxEvents

Definition at line 178 of file TileHitVecToCntConfig.py.

◆ outputKey

TileHitVecToCntConfig.outputKey

Definition at line 194 of file TileHitVecToCntConfig.py.

◆ PileUp

TileHitVecToCntConfig.PileUp

Definition at line 177 of file TileHitVecToCntConfig.py.

◆ RDOFileName

TileHitVecToCntConfig.RDOFileName

Definition at line 175 of file TileHitVecToCntConfig.py.

◆ sc

TileHitVecToCntConfig.sc

Definition at line 203 of file TileHitVecToCntConfig.py.

◆ summariseProps

TileHitVecToCntConfig.summariseProps

Definition at line 199 of file TileHitVecToCntConfig.py.

◆ True

TileHitVecToCntConfig.True

Definition at line 199 of file TileHitVecToCntConfig.py.

◆ withDetails

TileHitVecToCntConfig.withDetails

Definition at line 199 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:106
python.PileUpToolsConfig.PileUpToolsCfg
def PileUpToolsCfg(flags, **kwargs)
Definition: PileUpToolsConfig.py:14
TileHitVecToCntTool
This AlgTool merges TileHits from different AthenaHitVectors and stores the result in a TileHitContai...
Definition: TileHitVecToCntTool.h:84
TileHitVecToCntConfig.getTileLastXing
def getTileLastXing()
Definition: TileHitVecToCntConfig.py:17
TileHitVecToCntConfig.TileHitVecToCntOutputCfg
def TileHitVecToCntOutputCfg(flags, **kwargs)
Definition: TileHitVecToCntConfig.py:149
python.PileUpMergeSvcConfig.PileUpXingFolderCfg
def PileUpXingFolderCfg(flags, name="PileUpXingFolder", **kwargs)
Definition: PileUpMergeSvcConfig.py:35
TileHitVecToCntConfig.TileHitOutputCfg
def TileHitOutputCfg(flags, **kwargs)
Definition: TileHitVecToCntConfig.py:134
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