ATLAS Offline Software
TileRawChannelD3PDObject.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 
9 TileRawChannelSGKey='TileRawChannelFlt'
10 
11 def makeTileRawChannelD3PDObject (name, prefix, object_name='TileRawChannelD3PDObject', getter = None,
12  sgkey = None,
13  label = None):
14  if sgkey is None: sgkey = TileRawChannelSGKey
15  if label is None: label = prefix
16 
17  if not getter:
19  (name + '_Getter',
20  TypeName = 'TileRawChannelContainer',
21  SGKey = sgkey,
22  Label = label)
23 
24  # create the selected cells
25  from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
26  return D3PD.VectorFillerTool (name,
27  Prefix = prefix,
28  Getter = getter,
29  ObjectName = object_name,
30  SaveMetadata = \
31  D3PDMakerFlags.SaveObjectMetadata)
32 
33 
34 
35 """ level of details:
36 0: amp, time, quality and pedestal
37 1: hardware id + amp, time, quality and pedestal
38 
39 """
40 
41 TileRawChannelD3PDObject = D3PDObject( makeTileRawChannelD3PDObject, 'tileraw_',
42  'TileRawChannelD3PDObject' )
43 
44 TileRawChannelD3PDObject.defineBlock (0, 'RawChannel',
46  SaveHardwareInfo=False,
47  SaveRawChannel= True,
48  )
49 
50 
51 
52 TileRawChannelD3PDObject.defineBlock (1, 'Hardware',
54  SaveHardwareInfo=True,
55  SaveRawChannel= False,
56  )
57 
58 
59 
60 
python.TileRawChannelD3PDObject.makeTileRawChannelD3PDObject
def makeTileRawChannelD3PDObject(name, prefix, object_name='TileRawChannelD3PDObject', getter=None, sgkey=None, label=None)
Definition: TileRawChannelD3PDObject.py:11
D3PD::SGTileRawChannelGetterTool
Definition: SGTileRawChannelGetterTool.h:21
D3PD::TileRawChannelFillerTool
Definition: TileRawChannelFillerTool.h:26
D3PD::VectorFillerTool
Object filler tool for a collection of objects, saved as vectors.
Definition: VectorFillerTool.h:70