CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
KinematicVertex.h
Go to the documentation of this file.
1 #ifndef KinematicVertex_H
2 #define KinematicVertex_H
3 
8 class KinematicTree;
9 
21 public:
22  friend class KinematicTree;
23 
29 
34  KinematicVertex(const VertexState state, float totalChiSq, float degreesOfFr);
35 
42  float totalChiSq,
43  float degreesOfFr);
44 
48  KinematicVertex(const CachingVertex<6>& vertex);
49 
50  ~KinematicVertex() override;
51 
57  bool operator==(const KinematicVertex& other) const;
58 
60 
67  bool operator<(const KinematicVertex& other) const;
79  bool vertexIsValid() const;
80 
87 
92 
93  VertexState vertexState() const;
94 
95  GlobalPoint position() const;
96 
97  GlobalError error() const;
98 
99  float chiSquared() const;
100 
101  float degreesOfFreedom() const;
102 
103  operator reco::Vertex();
104 
105 private:
106  void setTreePointer(KinematicTree* tr) const;
107 
108  //kinematic tree this
109  //vertex belongs to (can be 0)
110  mutable KinematicTree* tree;
111  mutable bool vl;
112 
114  // GlobalPoint theVertexPosition;
115  // GlobalError theVPositionError;
117  float theNDF;
119 };
120 
121 #endif
float degreesOfFreedom() const
bool vertexIsValid() const
void setTreePointer(KinematicTree *tr) const
GlobalPoint position() const
GlobalError error() const
ReferenceCountingPointer< KinematicVertex > vertexBeforeConstraint() const
VertexState theState
bool operator==(const KinematicVertex &other) const
KinematicTree * correspondingTree() const
ReferenceCountingPointer< KinematicVertex > pVertex
float chiSquared() const
VertexState vertexState() const
KinematicTree * tree
~KinematicVertex() override
bool operator<(const KinematicVertex &other) const