GENFIT
Rev:NoNumberAvailable
|
Go to the documentation of this file.
46 :
AbsMeasurement(rawHitCoords, rawHitCov, detId, hitId, trackPoint), maxDistance_(2), leftRight_(0)
60 TVector3 wireDirection = wire2 - wire1;
61 wireDirection.SetMag(1.);
66 const TVector3& poca = rep->
getPos(st);
67 TVector3 dirInPoca = rep->
getMom(st);
69 const TVector3& pocaOnWire = wire1 + wireDirection.Dot(poca - wire1)*wireDirection;
72 if (fabs(wireDirection.Angle(dirInPoca)) < 0.01){
73 Exception exc(
"WireMeasurement::detPlane(): Cannot construct detector plane, direction is parallel to wire", __LINE__,__FILE__);
78 TVector3 U = dirInPoca.Cross(wireDirection);
109 double val = 0.5 * pow(std::max(0., 1 - mR/
maxDistance_), 2.);
114 std::vector<MeasurementOnPlane*> retVal;
115 retVal.push_back(mopL);
116 retVal.push_back(mopR);
121 if (dynamic_cast<const RKTrackRep*>(rep) == NULL) {
122 Exception exc(
"WireMeasurement default implementation can only handle state vectors of type RKTrackRep!", __LINE__,__FILE__);
void setWeight(double weight)
boost::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.
HMatrix for projecting from AbsTrackRep parameters to measured parameters in a DetPlane.
Exception class for error handling in GENFIT (provides storage for diagnostic information)
Defines for I/O streams used for error and debug printing.
Abstract base class for a track representation.
virtual SharedPlanePtr constructPlane(const StateOnPlane &state) const
Contains the measurement and covariance in raw detector coordinates.
Object containing AbsMeasurement and AbsFitterInfo objects.
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,...
Measured coordinates on a plane.
virtual TVector3 getMom(const StateOnPlane &state) const =0
Get the cartesian momentum vector of a state.
virtual std::vector< MeasurementOnPlane * > constructMeasurementsOnPlane(const StateOnPlane &state) const
WireMeasurement(int nDim=7)
const SharedPlanePtr & getPlane() const
virtual const AbsHMatrix * constructHMatrix(const AbsTrackRep *) const
virtual TVector3 getPos(const StateOnPlane &state) const =0
Get the cartesian position of a state.
AbsHMatrix implementation for one-dimensional MeasurementOnPlane and RKTrackRep parameterization.
const AbsTrackRep * getRep() const
void setLeftRightResolution(int lr)