ATLAS Offline Software
TileCosmicMuonD3PDObject.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 D3PDMakerCoreComps.ContainedVectorMultiAssociation import ContainedVectorMultiAssociation
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 
7 D3PD = CompFactory.D3PD
8 
9 def 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 
39 TileCosmicMuonD3PDObject=D3PDObject(makeTileCosmicMuonD3PDObject,'TileTracks_','TileCosmicMuonD3PDObject')
40 
41 TileCosmicMuonD3PDObject.defineBlock (0, 'TileCosmicMuons',
43 
44 TileCosmicMuonTileCells=ContainedVectorMultiAssociation(TileCosmicMuonD3PDObject,
46  "cell",1)
47 
48 TileCosmicMuonTileCells.defineBlock (1, 'TileDetail0',
50  SaveCellDetails=True,
51  SavePositionInfo=False,
52  )
53 
54 TileCosmicMuonTileCells.defineBlock (2, 'TileDetail1',
56  SaveCellDetails=False,
57  SavePositionInfo=True,
58  )
59 
60 
61 
62 
63 
D3PD::TileCellDetailsFillerTool
Definition: TileCellDetailsFillerTool.h:26
D3PD::TileCosmicMuonTileCellAssociationTool
Definition: TileCosmicMuonTileCellAssociationTool.h:24
python.TileCosmicMuonD3PDObject.makeTileCosmicMuonD3PDObject
def makeTileCosmicMuonD3PDObject(name, prefix, object_name='TileCosmicMuonD3PDObject', getter=None, sgkey=None, label=None)
Definition: TileCosmicMuonD3PDObject.py:9
D3PD::SGDataVectorGetterTool
Getter tool to retrieve DataVector/List collections from StoreGate.
Definition: SGDataVectorGetterTool.h:55
D3PD::TileCosmicMuonFillerTool
Definition: TileCosmicMuonFillerTool.h:21
python.ContainedVectorMultiAssociation.ContainedVectorMultiAssociation
def ContainedVectorMultiAssociation(parent, assoctool, prefix='', level=0, blockname=None, nrowName='n', **kw)
Definition: ContainedVectorMultiAssociation.py:18
dbg::print
void print(std::FILE *stream, std::format_string< Args... > fmt, Args &&... args)
Definition: SGImplSvc.cxx:70
D3PD::VectorFillerTool
Object filler tool for a collection of objects, saved as vectors.
Definition: VectorFillerTool.h:70