1 package org.lcsim.event.base;
2
3 import hep.physics.matrix.SymmetricMatrix;
4 import hep.physics.vec.Hep3Vector;
5 import java.util.Collections;
6 import java.util.Map;
7 import org.lcsim.event.ReconstructedParticle;
8 import org.lcsim.event.Vertex;
9
10
11
12
13
14
15 public class BaseVertex implements Vertex
16 {
17 protected boolean _isPrimary ;
18 protected String _type ;
19 protected double _chi2 ;
20 protected double _probability ;
21 protected SymmetricMatrix _covarianceMatrix;
22 protected Hep3Vector _position;
23 protected ReconstructedParticle _aParticle ;
24
25
26
27 protected BaseVertex()
28 {
29 }
30 public BaseVertex(boolean isPrimary, String type, double chi2, double prob, SymmetricMatrix cov, Hep3Vector pos, ReconstructedParticle rp)
31 {
32 _isPrimary = isPrimary;
33 _type = type;
34 _chi2 = chi2;
35 _probability = prob;
36 _covarianceMatrix = cov;
37 _position = pos;
38 _aParticle = rp;
39 }
40
41 public double getProbability()
42 {
43 return _probability;
44 }
45
46 public ReconstructedParticle getAssociatedParticle()
47 {
48 return _aParticle;
49 }
50
51 public Map<String, Double> getParameters()
52 {
53 return Collections.<String, Double>emptyMap();
54 }
55
56 public Hep3Vector getPosition()
57 {
58 return _position;
59 }
60
61 public String getAlgorithmType()
62 {
63 return _type;
64 }
65
66
67
68
69
70
71
72
73
74 public SymmetricMatrix getCovMatrix()
75 {
76 return _covarianceMatrix;
77 }
78
79 public boolean isPrimary()
80 {
81 return _isPrimary;
82 }
83
84 public double getChi2()
85 {
86 return _chi2;
87 }
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125 }