ATLAS Offline Software
TileDigitD3PDObject.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 TileDigitSGKey='TileDigitsFlt'
9 
10 def makeTileDigitD3PDObject (name, prefix, object_name='TileDigitD3PDObject', getter = None,
11  sgkey = None,
12  label = None):
13  if sgkey is None: sgkey = TileDigitSGKey
14  if label is None: label = prefix
15 
16  if not getter:
18  (name + '_Getter',
19  TypeName = 'TileDigitsContainer',
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 """ level of details:
35 0: digits
36 1: digit+section+side+tower
37 
38 """
39 
40 TileDigitD3PDObject = D3PDObject (makeTileDigitD3PDObject, 'tiledigit_', 'TileDigitD3PDObject')
41 
42 TileDigitD3PDObject.defineBlock (0, 'Digits',
44  SaveOfflineInfo= False,
45  SaveHardwareInfo=True,
46  )
47 
48 
49 
50 TileDigitD3PDObject.defineBlock (1, 'SST',
52  SaveOfflineInfo= True,
53  SaveHardwareInfo=False,
54  )
55 
D3PD::SGTileDigitsGetterTool
Definition: SGTileDigitsGetterTool.h:22
D3PD::TileDigitFillerTool
Definition: TileDigitFillerTool.h:27
python.TileDigitD3PDObject.makeTileDigitD3PDObject
def makeTileDigitD3PDObject(name, prefix, object_name='TileDigitD3PDObject', getter=None, sgkey=None, label=None)
Definition: TileDigitD3PDObject.py:10
D3PD::VectorFillerTool
Object filler tool for a collection of objects, saved as vectors.
Definition: VectorFillerTool.h:70