54 TVector3 wireDirection = wire2 - wire1;
55 wireDirection.SetMag(1.);
61 TVector3 dirInPoca = rep->
getMom(st);
66 if (fabs(wireDirection.Angle(dirInPoca)) < 0.01){
67 Exception exc(
"WireMeasurement::detPlane(): Cannot construct detector plane, direction is parallel to wire", __LINE__,__FILE__);
72 TVector3 U = dirInPoca.Cross(wireDirection);
112 std::vector<MeasurementOnPlane*> retVal;
113 retVal.push_back(mopL);
114 retVal.push_back(mopR);
119 if (dynamic_cast<const RKTrackRep*>(rep) == NULL) {
120 Exception exc(
"WirePointMeasurement default implementation can only handle state vectors of type RKTrackRep!", __LINE__,__FILE__);
const AbsTrackRep * getRep() const
boost::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.
virtual std::vector< MeasurementOnPlane * > constructMeasurementsOnPlane(const StateOnPlane &state) const
virtual TVector3 getMom(const StateOnPlane &state) const =0
Get the cartesian momentum vector of a state.
const TVectorD & getState() const
HMatrix for projecting from AbsTrackRep parameters to measured parameters in a DetPlane.
WirePointMeasurement(int nDim=8)
Class for measurements in wire detectors (Straw tubes and drift chambers) which do not measure the co...
AbsHMatrix implementation for two-dimensional MeasurementOnPlane and RKTrackRep parameterization.
Abstract base class for a track representation.
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
Object containing AbsMeasurement and AbsFitterInfo objects.
void setWeight(double weight)
const SharedPlanePtr & getPlane() const
virtual const AbsHMatrix * constructHMatrix(const AbsTrackRep *) 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...
virtual SharedPlanePtr constructPlane(const StateOnPlane &state) const
Measured coordinates on a plane.
const TMatrixDSym & getCov() const
Defines for I/O streams used for error and debug printing.