16 flags = D3PDMakerFlags.Track):
17
18
19 object.defineBlock (flagTestLOD('vertexPositionLevelOfDetails>=1', flags),
20 'Position',
22 Vars = ['x', 'y', 'z'])
23
24
25 CovarianceAssoc = SimpleAssociation \
26 (object,
28 level = flagTestLOD('vertexPositionLevelOfDetails>=2', flags))
29
30
31 CovarianceAssoc.defineBlock (
32 flagTestLOD('vertexPositionLevelOfDetails>=2', flags),
33 'Error',
35 Error = deferFlag ('storeDiagonalCovarianceAsErrors', flags),
36 DiagCovariance = deferFlag('not storeDiagonalCovarianceAsErrors',flags),
37 OffDiagCovariance = False,
38 IsPosition = True)
39
40 CovarianceAssoc.defineBlock (flagTestLOD('vertexPositionLevelOfDetails>=3', flags),
41 'Covariance',
43 Error = False,
44 DiagCovariance = False,
45 OffDiagCovariance = True,
46 IsPosition = True)
47
48
49 object.defineBlock (flagTestLOD('storeVertexType', flags),
50 'Type',
52 Vars = ['type = vertexType'])
53
54
55 object.defineBlock (flagTestLOD('storeVertexFitQuality', flags),
56 'FitQuality',
58 Vars = ['chi2 = chiSquared', 'ndof = numberDoF'])
59
60
61 object.defineBlock (flagTestLOD('storeVertexKinematics', flags),
62 'Kine',
64
65
66 TrackAssoc = ContainedVectorMultiAssociation \
67 (object,
69 trackPrefix,
70 level = flagTestLOD ('storeVertexTrackAssociation or storeVertexTrackIndexAssociation',
71 flags))
72
73 TrackAssoc.defineBlock (
74 flagTestLOD ('storeVertexTrackAssociation or storeVertexTrackIndexAssociation', flags),
75 'TrkFitQuality',
77 Vars = ['chi2 = chiSquared'])
78
79 PerigeeAssoc = SimpleAssociation \
80 (TrackAssoc,
82 def _trackToVertexHook (c, flags, acc, *args, **kw):
83 from TrackToVertex.TrackToVertexConfig import InDetTrackToVertexCfg
84 c.Associator.TrackToVertexTool = acc.popToolsAndMerge (InDetTrackToVertexCfg (flags))
85 return
86 PerigeeAssoc.defineHook (_trackToVertexHook)
87 PerigeeAssoc.defineBlock (flagTestLOD ('storeVertexTrackAssociation or storeVertexTrackIndexAssociation', flags),
88 'Trk',
90
91 TrackAssoc.defineBlock (
92 flagTestLOD ('storeVertexTrackIndexAssociation', flags),
93 'TrackAssocIndex',
95 Target = trackTarget)
96 return
97
98
Associate from a VxCandidate to its perigee at primary vertex.