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
Vector3DBase< float, LocalTag >
VectorHit2D::chi2
float chi2() const
Definition: VectorHit2D.h:25
AlgebraicObjects.h
VectorHit2D::theDimension
static constexpr int theDimension
Definition: VectorHit2D.h:34
VectorHit2D::theLocalError
LocalError theLocalError
Definition: VectorHit2D.h:32
VectorHit2D::dimension
int dimension() const
Definition: VectorHit2D.h:26
pos
Definition: PixelAliasList.h:18
VectorHit2D::covMatrix
const AlgebraicSymMatrix22 & covMatrix() const
Definition: VectorHit2D.h:24
VectorHit2D::VectorHit2D
VectorHit2D()
Definition: VectorHit2D.h:13
LocalError.h
VectorHit2D::localPosition
const LocalPoint & localPosition() const
Definition: VectorHit2D.h:21
VectorHit2D::VectorHit2D
VectorHit2D(const LocalPoint &pos, const LocalVector &dir, const AlgebraicSymMatrix22 &covMatrix, const double &chi2)
Definition: VectorHit2D.h:14
Point3DBase< float, LocalTag >
VectorHit2D::theDirection
LocalVector theDirection
Definition: VectorHit2D.h:30
VectorHit2D::theChi2
float theChi2
Definition: VectorHit2D.h:33
LocalError
Definition: LocalError.h:12
VectorHit2D
Definition: VectorHit2D.h:11
VectorHit2D::thePosition
LocalPoint thePosition
Definition: VectorHit2D.h:29
LocalPoint.h
VectorHit2D::theCovMatrix
AlgebraicSymMatrix22 theCovMatrix
Definition: VectorHit2D.h:31
VectorHit2D::localDirection
const LocalVector & localDirection() const
Definition: VectorHit2D.h:22
VectorHit2D::localDirectionError
const LocalError & localDirectionError() const
Definition: VectorHit2D.h:23
LocalVector.h
AlgebraicSymMatrix22
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > AlgebraicSymMatrix22
Definition: AlgebraicROOTObjects.h:20
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23