23 theProjectionMatrix[0][1]=1;
24 theProjectionMatrix[1][3]=1;
43 m[0][0] = theCovMatrix[0][0];
44 m[0][1] = theCovMatrix[0][1];
45 m[1][1] = theCovMatrix[1][1];
58 RecSegment(id), theChi2(0.0), theT0(0.), theVdrift(0.), theHits(hits){
64 std::vector<DTRecHit1D> &hits1D):
90 std::vector<const TrackingRecHit*> pointersOfRecHits;
92 for(std::vector<DTRecHit1D>::const_iterator rechit =
theHits.begin();
93 rechit !=
theHits.end(); rechit++)
94 pointersOfRecHits.push_back( &(*rechit) );
96 return pointersOfRecHits;
101 std::vector<TrackingRecHit*> pointersOfRecHits;
103 for(std::vector<DTRecHit1D>::iterator rechit =
theHits.begin();
104 rechit !=
theHits.end(); rechit++)
105 pointersOfRecHits.push_back( &(*rechit) );
107 return pointersOfRecHits;
LocalError localPositionError() const override
local position error in SL frame
void setChi2(const double &chi2)
AlgebraicSymMatrix parametersError() const override
std::vector< DTRecHit1D > theHits
void setCovMatrix(const AlgebraicSymMatrix &cov)
void update(std::vector< DTRecHit1D > &updatedRecHits)
static const AlgebraicMatrix theProjectionMatrix
CLHEP::HepMatrix AlgebraicMatrix
int degreesOfFreedom() const override
return the DOF of the segment
static const AlgebraicMatrix theProjectionMatrix
AlgebraicSymMatrix theCovMatrix
double chi2() const override
the chi2 of the fit
int dimension() const override
return 2. The dimension of the matrix
std::vector< DTRecHit1D > specificRecHits() const
Access to specific components.
AlgebraicSymMatrix covMatrix() const
the Covariance Matrix
static AlgebraicMatrix initTheProjectionMatrix()
LocalPoint localPosition() const override
local position in SL frame
void setT0(const double &t0)
static int position[264][3]
LocalVector localDirection() const override
the local direction in SL frame
void setPosition(const LocalPoint &pos)
CLHEP::HepSymMatrix AlgebraicSymMatrix
void setDirection(const LocalVector &dir)
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
void setVdrift(const double &vdrift)
ostream & operator<<(ostream &os, const DTRecSegment2D &seg)
double t0() const
Get the segment t0 (if recomputed, 0 is returned otherwise)
LocalError localDirectionError() const override
the local direction error (xx,xy,yy) in SL frame: only xx is not 0.
~DTRecSegment2D() override
Destructor.