ATLAS Offline Software
Loading...
Searching...
No Matches
LArRawChannelD3PDObject.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from D3PDMakerCoreComps.D3PDObject import D3PDObject
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6D3PD = CompFactory.D3PD
7
8
9LArRawChannelSGKey='LArRawChannels'
10
11def makeLArRawChannelD3PDObject (name, prefix, object_name='LArRawChannelD3PDObject', getter = None,
12 sgkey = None,
13 label = None):
14 if sgkey is None: sgkey = LArRawChannelSGKey
15 if label is None: label = prefix
16
17 if not getter:
18 getter = D3PD.LArRawChannelContainerGetterTool(name + '_Getter',
19 TypeName = 'LArRawChannelContainer',
20 SGKey = LArRawChannelSGKey)
21
22 # create the selected cells
23 return D3PD.VectorFillerTool (name,
24 Prefix = prefix,
25 Getter = getter,
26 ObjectName = object_name)
27
28LArRawChannelD3PDObject = D3PDObject (makeLArRawChannelD3PDObject, 'larrawchannel_', 'LArRawChannelD3PDObject')
29
30LArRawChannelD3PDObject.defineBlock (0, 'Digits',
Object filler tool for a collection of objects, saved as vectors.
makeLArRawChannelD3PDObject(name, prefix, object_name='LArRawChannelD3PDObject', getter=None, sgkey=None, label=None)