23#include <RKTrackRep.h>
34 :
AbsMeasurement(nDim), weightedPlaneContruction_(true), G_(3), cutCov_(true)
42 bool weightedPlaneContruction,
bool cutCov)
43 :
AbsMeasurement(rawHitCoords, rawHitCov, detId, hitId, trackPoint),
44 weightedPlaneContruction_(weightedPlaneContruction), cutCov_(cutCov)
76 TMatrixDSym& V = mop->
getCov();
78 const TVector3& o(state.
getPlane()->getO());
79 const TVector3& u(state.
getPlane()->getU());
80 const TVector3& v(state.
getPlane()->getV());
114 std::vector<MeasurementOnPlane*> retVal;
115 retVal.push_back(mop);
121 if (
dynamic_cast<const RKTrackRep*
>(rep) == NULL) {
122 Exception exc(
"SpacepointMeasurement default implementation can only handle state vectors of type RKTrackRep!", __LINE__,__FILE__);
137void SpacepointMeasurement::Streamer(TBuffer &R__b)
141 if (R__b.IsReading()) {
142 R__b.ReadClassBuffer(genfit::SpacepointMeasurement::Class(),
this);
147 R__b.WriteClassBuffer(genfit::SpacepointMeasurement::Class(),
this);
HMatrix for projecting from AbsTrackRep parameters to measured parameters in a DetPlane.
Contains the measurement and covariance in raw detector coordinates.
Abstract base class for a track representation.
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.
AbsTrackRep with 5D track parameterization in plane coordinates: (q/p, u', v', u, v)
bool weightedPlaneContruction_
virtual SharedPlanePtr constructPlane(const StateOnPlane &state) const
Contruct the virtual detector plane.
bool cutCov_
inverse of 3x3 cov
virtual const AbsHMatrix * constructHMatrix(const AbsTrackRep *) const
virtual std::vector< MeasurementOnPlane * > constructMeasurementsOnPlane(const StateOnPlane &state) const
SpacepointMeasurement(int nDim=3)
A state with arbitrary dimension defined in a DetPlane.
const TVectorD & getState() const
double extrapolateToPoint(const TVector3 &point, bool stopAtBoundary=false, bool calcJacobianNoise=false)
const AbsTrackRep * getRep() const
const SharedPlanePtr & getPlane() const
Object containing AbsMeasurement and AbsFitterInfo objects.
boost::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.