ATLAS Offline Software
Loading...
Searching...
No Matches
TileCosmicMuonD3PDObject.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 D3PDMakerCoreComps.ContainedVectorMultiAssociation import ContainedVectorMultiAssociation
5from AthenaConfiguration.ComponentFactory import CompFactory
6
7D3PD = CompFactory.D3PD
8
9def makeTileCosmicMuonD3PDObject (name, prefix, object_name='TileCosmicMuonD3PDObject', getter = None,
10 sgkey = None,
11 label = None):
12 if sgkey is None: sgkey = 'TileCosmicMuonHT'
13 if label is None: label = prefix
14
15
16 print(" makeTileCosmicMuonD3PDObject: name = ", name)
17 print(" makeTileCosmicMuonD3PDObject: prefix = ", prefix)
18 print(" makeTileCosmicMuonD3PDObject: object_name = ", object_name)
19 print(" makeTileCosmicMuonD3PDObject: sgkey = ", sgkey)
20
21 if not getter:
23 (name + '_Getter',
24 TypeName = 'TileCosmicMuonContainer',
25 SGKey = sgkey,
26 Label = label)
27
28
29 from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
30 return D3PD.VectorFillerTool (name,
31 Prefix = prefix,
32 Getter = getter,
33 ObjectName = object_name,
34 SaveMetadata = \
35 D3PDMakerFlags.SaveObjectMetadata)
36
37
38
39TileCosmicMuonD3PDObject=D3PDObject(makeTileCosmicMuonD3PDObject,'TileTracks_','TileCosmicMuonD3PDObject')
40
41TileCosmicMuonD3PDObject.defineBlock (0, 'TileCosmicMuons',
43
44TileCosmicMuonTileCells=ContainedVectorMultiAssociation(TileCosmicMuonD3PDObject,
46 "cell",1)
47
48TileCosmicMuonTileCells.defineBlock (1, 'TileDetail0',
50 SaveCellDetails=True,
51 SavePositionInfo=False,
52 )
53
54TileCosmicMuonTileCells.defineBlock (2, 'TileDetail1',
56 SaveCellDetails=False,
57 SavePositionInfo=True,
58 )
59
60
61
62
63
void print(char *figname, TCanvas *c1)
Getter tool to retrieve DataVector/List collections from StoreGate.
Object filler tool for a collection of objects, saved as vectors.
makeTileCosmicMuonD3PDObject(name, prefix, object_name='TileCosmicMuonD3PDObject', getter=None, sgkey=None, label=None)