38 float segmDistance = -1;
39 if(sl == 1 || sl == 3) segmDistance = fabs(wirePosInChamber.
x() - segPosAtZWire.
x());
40 else if(sl == 2) segmDistance = fabs(segPosAtZWire.
y() - wirePosInChamber.
y());
43 float recHitWireDist = fabs( recHit1D.
localPosition().
x() - wireX );
46 float residualOnDistance = recHitWireDist - segmDistance;
48 return residualOnDistance;
float wirePosition(int wireNumber) const
Returns the x position in the layer of a given wire number.
DTChamberId chamberId() const
Return the corresponding ChamberId.
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
Geom::Theta< T > theta() const
const DTLayer * layer(DTLayerId id) const
Return a layer given its id.
virtual LocalVector localDirection() const
Local direction in Chamber frame.
const DTTopology & specificTopology() const
Cos< T >::type cos(const T &t)
virtual LocalPoint localPosition() const
Local position in Chamber frame.
virtual LocalPoint localPosition() const
Return the 3-dimensional local position.
int wire() const
Return the wire number.
int superlayer() const
Return the superlayer number (deprecated method name)
float compute(const DTGeometry *, const DTRecHit1D &, const DTRecSegment4D &)
const DTChamber * chamber(DTChamberId id) const
Return a DTChamber given its id.
DTLayerId layerId() const
Return the corresponding LayerId.
DTWireId wireId() const
Return the wireId.