ATLAS Offline Software
TileHitD3PDObject.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from D3PDMakerCoreComps.D3PDObject import D3PDObject
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 D3PD = CompFactory.D3PD
7 
8 TileHitSGKey='TileHitVec'
9 
10 def makeTileHitD3PDObject (name, prefix, object_name='TileHitD3PDObject', getter = None,
11  sgkey = None,
12  label = None):
13  if sgkey is None: sgkey = TileHitSGKey
14  if label is None: label = prefix
15 
16  if not getter:
17  getter = D3PD.SGTileHitGetterTool \
18  (name + '_Getter',
19  TypeName = 'TileHitVector',
20  SGKey = sgkey,
21  Label = label)
22 
23  # create the selected cells
24  from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
25  return D3PD.VectorFillerTool (name,
26  Prefix = prefix,
27  Getter = getter,
28  ObjectName = object_name,
29  SaveMetadata = \
30  D3PDMakerFlags.SaveObjectMetadata)
31 
32 
33 
34 
35 TileHitD3PDObject = D3PDObject (makeTileHitD3PDObject, 'TileHit_', 'TileHitD3PDObject')
36 
37 TileHitD3PDObject.defineBlock (0, 'TileHitDetails',
39 MBTSHitD3PDObject = D3PDObject (makeTileHitD3PDObject, 'MBTSHit_', 'MBTSHitD3PDObject', None, 'MBTSHits')
40 MBTSHitD3PDObject.defineBlock (0, 'MBTSHitDetails',D3PD.TileHitFillerTool)
D3PD::TileHitFillerTool
Definition: TileHitFillerTool.h:22
python.TileHitD3PDObject.makeTileHitD3PDObject
def makeTileHitD3PDObject(name, prefix, object_name='TileHitD3PDObject', getter=None, sgkey=None, label=None)
Definition: TileHitD3PDObject.py:10
D3PD::SGTileHitGetterTool
Definition: SGTileHitGetterTool.h:22
D3PD::VectorFillerTool
Object filler tool for a collection of objects, saved as vectors.
Definition: VectorFillerTool.h:70