23#include <RKTrackRep.h>
57 TVector3 wireDirection = wire2 - wire1;
58 wireDirection.SetMag(1.);
66 TVector3 dirInPoca = rep->
getMom(st);
71 if (fabs(wireDirection.Angle(dirInPoca)) < 0.01){
72 Exception exc(
"WireMeasurement::detPlane(): Cannot construct detector plane, direction is parallel to wire", __LINE__,__FILE__);
77 TVector3 U = dirInPoca.Cross(wireDirection);
117 std::vector<MeasurementOnPlane*> retVal;
118 retVal.push_back(mopL);
119 retVal.push_back(mopR);
124 if (
dynamic_cast<const RKTrackRep*
>(rep) == NULL) {
125 Exception exc(
"WirePointMeasurement default implementation can only handle state vectors of type RKTrackRep!", __LINE__,__FILE__);
HMatrix for projecting from AbsTrackRep parameters to measured parameters in a DetPlane.
Abstract base class for a track representation.
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 TVector3 getMom(const StateOnPlane &state) const =0
Get the cartesian momentum vector of a state.
Exception class for error handling in GENFIT (provides storage for diagnostic information)
AbsHMatrix implementation for two-dimensional MeasurementOnPlane and RKTrackRep parameterization.
const TMatrixDSym & getCov() const
Measured coordinates on a plane.
void setWeight(double weight)
AbsTrackRep with 5D track parameterization in plane coordinates: (q/p, u', v', u, v)
A state with arbitrary dimension defined in a DetPlane.
const TVectorD & getState() const
const AbsTrackRep * getRep() const
const SharedPlanePtr & getPlane() const
Object containing AbsMeasurement and AbsFitterInfo objects.
Class for measurements in wire detectors (Straw tubes and drift chambers) which do not measure the co...
virtual SharedPlanePtr constructPlane(const StateOnPlane &state) const
virtual const AbsHMatrix * constructHMatrix(const AbsTrackRep *) const
virtual std::vector< MeasurementOnPlane * > constructMeasurementsOnPlane(const StateOnPlane &state) const
WirePointMeasurement(int nDim=8)
boost::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.