32 <<
"the z Segment and the phi segment have different chamber id"<<std::endl;
37 dirZInCh * (-posZInCh.
z())/
cos(dirZInCh.
theta());
46 dirZInCh.
y()/fabs(dirZInCh.
z()),
89 dirZInCh*(-posZInCh.
z()/
cos(dirZInCh.
theta()));
149 static bool isInitialized=
false;
154 if (!isInitialized) {
155 the4DProjectionMatrix[0][1] = 1;
156 the4DProjectionMatrix[1][2] = 1;
157 the4DProjectionMatrix[2][3] = 1;
158 the4DProjectionMatrix[3][4] = 1;
160 the2DPhiProjMatrix[0][1] = 1;
161 the2DPhiProjMatrix[1][3] = 1;
163 the2DZProjMatrix[0][2] = 1;
164 the2DZProjMatrix[1][4] = 1;
170 return the4DProjectionMatrix;
172 return the2DPhiProjMatrix;
174 return the2DZProjMatrix;
255 std::vector<const TrackingRecHit*> pointersOfRecHits;
260 return pointersOfRecHits;
267 std::vector<TrackingRecHit*> pointersOfRecHits;
272 return pointersOfRecHits;
const double Z[kNumberCalorimeter]
AlgebraicVector parameters() const
DTRecSegment4D()
Empty constructor.
DTSLRecSegment2D theZedSeg
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
Local3DVector LocalVector
virtual int degreesOfFreedom() const
return the DOF of the segment
const DTChamberRecSegment2D * phiSegment() const
The superPhi segment: 0 if no phi projection available.
virtual double chi2() const
the chi2 of the fit
virtual DTChamberId chamberId() const
The (specific) DetId of the chamber on which the segment resides.
virtual int degreesOfFreedom() const
Degrees of freedom of the segment fit.
void setCovMatrixForZed(const LocalPoint &posZInCh)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Geom::Theta< T > theta() const
virtual LocalError localPositionError() const
Local position error in Chamber frame.
uint32_t rawId() const
get the raw id
virtual LocalVector localDirection() const
Local direction in Chamber frame.
CLHEP::HepMatrix AlgebraicMatrix
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
~DTRecSegment4D()
Destructor.
Cos< T >::type cos(const T &t)
bool hasPhi() const
Does it have the Phi projection?
virtual AlgebraicMatrix projectionMatrix() const
The projection matrix relates the trajectory state parameters to the segment parameters().
virtual LocalPoint localPosition() const
Local position in Chamber frame.
virtual int dimension() const
Dimension (in parameter space)
AlgebraicSymMatrix covMatrix() const
the Covariance Matrix
virtual LocalPoint localPosition() const
local position in SL frame
AlgebraicSymMatrix theCovMatrix
Vector3DBase unit() const
bool hasZed() const
Does it have the Z projection?
CLHEP::HepVector AlgebraicVector
const DTSLRecSegment2D * zSegment() const
The Z segment: 0 if not zed projection available.
virtual AlgebraicSymMatrix parametersError() const
AlgebraicSymMatrix parametersError() const
Covariance matrix fo parameters()
virtual LocalVector localDirection() const
the local direction in SL frame
CLHEP::HepSymMatrix AlgebraicSymMatrix
DetId geographicalId() const
virtual double chi2() const
Chi2 of the segment fit.
virtual LocalError localDirectionError() const
Local direction error in the Chamber frame.
DTChamberRecSegment2D thePhiSeg