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):
65 RecSegment(id), thePosition(position),theDirection(direction),
66 theCovMatrix(covMatrix),theChi2(chi2),theT0(0.),theVdrift(0.),theHits(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;
virtual LocalError localPositionError() const
local position error in SL frame
void setChi2(const double &chi2)
virtual ~DTRecSegment2D()
Destructor.
virtual int degreesOfFreedom() const
return the DOF of the segment
virtual double chi2() const
the chi2 of the fit
virtual LocalError localDirectionError() const
the local direction error (xx,xy,yy) in SL frame: only xx is not 0.
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
static int position[TOTALCHAMBERS][3]
CLHEP::HepMatrix AlgebraicMatrix
static const AlgebraicMatrix theProjectionMatrix
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
AlgebraicSymMatrix theCovMatrix
std::vector< DTRecHit1D > specificRecHits() const
Access to specific components.
static AlgebraicMatrix initTheProjectionMatrix()
virtual LocalPoint localPosition() const
local position in SL frame
virtual AlgebraicSymMatrix parametersError() const
void setT0(const double &t0)
virtual int dimension() const
return 2. The dimension of the matrix
void setPosition(const LocalPoint &pos)
virtual LocalVector localDirection() const
the local direction in SL frame
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)