DataFormats
TrackerRecHit2D
interface
VectorHit2D.h
Go to the documentation of this file.
1
#ifndef DataFormats_TrackerRecHit2D_VectorHit2D_h
2
#define DataFormats_TrackerRecHit2D_VectorHit2D_h
3
4
#include "
DataFormats/GeometryVector/interface/LocalVector.h
"
5
#include "
DataFormats/GeometryVector/interface/LocalPoint.h
"
6
#include "
DataFormats/CLHEP/interface/AlgebraicObjects.h
"
7
#include "
DataFormats/GeometrySurface/interface/LocalError.h
"
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
:
13
VectorHit2D
() :
thePosition
(),
theDirection
(),
theCovMatrix
(),
theChi2
() {}
14
VectorHit2D
(
const
LocalPoint
&
pos
,
const
LocalVector
&
dir
,
const
AlgebraicSymMatrix22
&
covMatrix
,
const
double
&
chi2
)
15
:
thePosition
(
pos
),
16
theDirection
(
dir
),
17
theCovMatrix
(
covMatrix
),
18
theLocalError
(
theCovMatrix
[0][0],
theCovMatrix
[0][1],
theCovMatrix
[1][1]),
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
:
29
LocalPoint
thePosition
;
30
LocalVector
theDirection
;
31
AlgebraicSymMatrix22
theCovMatrix
;
32
LocalError
theLocalError
;
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
Generated for CMSSW Reference Manual by
1.8.16