CMS 3D CMS Logo

VectorHit2D.h
Go to the documentation of this file.
1 #ifndef DataFormats_TrackerRecHit2D_VectorHit2D_h
2 #define DataFormats_TrackerRecHit2D_VectorHit2D_h
3 
8 
9 //Stores geometric information about VectorHits, their convariance matrix and chi2 of the compatability of the two hits
10 
11 class VectorHit2D {
12 public:
15  : thePosition(pos),
19  theChi2(chi2) {}
20 
21  const LocalPoint& localPosition() const { return thePosition; }
22  const LocalVector& localDirection() const { return theDirection; }
23  const LocalError& localDirectionError() const { return theLocalError; }
24  const AlgebraicSymMatrix22& covMatrix() const { return theCovMatrix; }
25  float chi2() const { return theChi2; }
26  int dimension() const { return theDimension; }
27 
28 private:
33  float theChi2;
34  static constexpr int theDimension = 2;
35 };
36 #endif
const AlgebraicSymMatrix22 & covMatrix() const
Definition: VectorHit2D.h:24
int dimension() const
Definition: VectorHit2D.h:26
static constexpr int theDimension
Definition: VectorHit2D.h:34
LocalError theLocalError
Definition: VectorHit2D.h:32
const LocalPoint & localPosition() const
Definition: VectorHit2D.h:21
LocalVector theDirection
Definition: VectorHit2D.h:30
float theChi2
Definition: VectorHit2D.h:33
LocalPoint thePosition
Definition: VectorHit2D.h:29
VectorHit2D(const LocalPoint &pos, const LocalVector &dir, const AlgebraicSymMatrix22 &covMatrix, const double &chi2)
Definition: VectorHit2D.h:14
const LocalVector & localDirection() const
Definition: VectorHit2D.h:22
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > AlgebraicSymMatrix22
float chi2() const
Definition: VectorHit2D.h:25
AlgebraicSymMatrix22 theCovMatrix
Definition: VectorHit2D.h:31
const LocalError & localDirectionError() const
Definition: VectorHit2D.h:23