39 m[0][0] = theCovMatrix[0][0];
40 m[0][1] = theCovMatrix[0][1];
41 m[1][1] = theCovMatrix[1][1];
53 RecSegment(id), theChi2(0.0), theT0(0.), theVdrift(0.), theHits(hits){
59 std::vector<DTRecHit1D> &hits1D):
60 RecSegment(id), thePosition(position),theDirection(direction),
61 theCovMatrix(covMatrix),theChi2(chi2),theT0(0.),theVdrift(0.),theHits(hits1D){}
85 std::vector<const TrackingRecHit*> pointersOfRecHits;
87 for(std::vector<DTRecHit1D>::const_iterator rechit =
theHits.begin();
88 rechit !=
theHits.end(); rechit++)
89 pointersOfRecHits.push_back( &(*rechit) );
91 return pointersOfRecHits;
96 std::vector<TrackingRecHit*> pointersOfRecHits;
98 for(std::vector<DTRecHit1D>::iterator rechit =
theHits.begin();
99 rechit !=
theHits.end(); rechit++)
100 pointersOfRecHits.push_back( &(*rechit) );
102 return pointersOfRecHits;
static bool isInitialized
virtual LocalError localPositionError() const
local position error in SL frame
void setChi2(const double &chi2)
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 int position[TOTALCHAMBERS][3]
CLHEP::HepMatrix AlgebraicMatrix
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 theProjectionMatrix
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)