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