50 coords[0] = driftDistance;
54 cov(0,0) = driftDistanceError*driftDistanceError;
73 TVector3 wireDirection = wire2 - wire1;
74 wireDirection.SetMag(1.);
79 const TVector3& poca = rep->
getPos(st);
80 TVector3 dirInPoca = rep->
getMom(st);
82 const TVector3& pocaOnWire = wire1 + wireDirection.Dot(poca - wire1)*wireDirection;
85 if (fabs(wireDirection.Angle(dirInPoca)) < 0.01){
86 Exception exc(
"WireMeasurementNew::detPlane(): Cannot construct detector plane, direction is parallel to wire", __LINE__,__FILE__);
91 TVector3 U = wireDirection.Cross(dirInPoca);
121 double val = 0.5 * pow(std::max(0., 1 - mR/
maxDistance_), 2.);
126 std::vector<MeasurementOnPlane*> retVal;
127 retVal.push_back(mopL);
128 retVal.push_back(mopR);
133 if (dynamic_cast<const RKTrackRep*>(rep) == NULL) {
134 Exception exc(
"WireMeasurementNew default implementation can only handle state vectors of type RKTrackRep!", __LINE__,__FILE__);
virtual SharedPlanePtr constructPlane(const StateOnPlane &state) const
const AbsTrackRep * getRep() const
Contains the measurement and covariance in raw detector coordinates.
AbsHMatrix implementation for one-dimensional MeasurementOnPlane and RKTrackRep parameterization.
boost::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.
double wireEndPoint2_[3]
Wire end point 1 (X, Y, Z)
virtual TVector3 getMom(const StateOnPlane &state) const =0
Get the cartesian momentum vector of a state.
virtual const AbsHMatrix * constructHMatrix(const AbsTrackRep *) const
void setTrackPoint(TrackPoint *tp)
HMatrix for projecting from AbsTrackRep parameters to measured parameters in a DetPlane.
virtual TVector3 getPos(const StateOnPlane &state) const =0
Get the cartesian position of a state.
void setRawHitCoords(const TVectorD &coords)
Abstract base class for a track representation.
void setWireEndPoints(const TVector3 &endPoint1, const TVector3 &endPoint2)
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
Object containing AbsMeasurement and AbsFitterInfo objects.
void setWeight(double weight)
virtual std::vector< MeasurementOnPlane * > constructMeasurementsOnPlane(const StateOnPlane &state) const
const SharedPlanePtr & getPlane() const
A state with arbitrary dimension defined in a DetPlane.
virtual double extrapolateToLine(StateOnPlane &state, const TVector3 &linePoint, const TVector3 &lineDirection, bool stopAtBoundary=false, bool calcJacobianNoise=false) const =0
Extrapolates the state to the POCA to a line, and returns the extrapolation length and...
const TMatrixDSym & getRawHitCov() const
void setRawHitCov(const TMatrixDSym &cov)
void setLeftRightResolution(int lr)
const TVectorD & getRawHitCoords() const
Measured coordinates on a plane.
Defines for I/O streams used for error and debug printing.
double maxDistance_
Wire end point 2 (X, Y, Z)