20 #include "FullMeasurement.h"
22 #include <Exception.h>
23 #include <RKTrackRep.h>
24 #include <HMatrixUnit.h>
31 FullMeasurement::FullMeasurement(
int nDim)
32 : AbsMeasurement(nDim), plane_()
38 FullMeasurement::FullMeasurement(
const MeasuredStateOnPlane& state,
int detId,
int hitId, TrackPoint* trackPoint)
39 : AbsMeasurement(state.getState(), state.getCov(), detId, hitId, trackPoint), plane_(state.getPlane())
41 assert(rawHitCoords_.GetNrows() == (
int)state.getRep()->getDim());
47 Exception exc(
"FullMeasurement::constructPlane(): No plane has been set!", __LINE__,__FILE__);
54 std::vector<MeasurementOnPlane*> FullMeasurement::constructMeasurementsOnPlane(
const StateOnPlane& state)
const {
58 state.getPlane(), state.getRep(), constructHMatrix(state.getRep()));
60 std::vector<MeasurementOnPlane*> retVal;
61 retVal.push_back(mop);
68 if (
dynamic_cast<const RKTrackRep*
>(rep) ==
nullptr) {
69 Exception exc(
"SpacepointMeasurement default implementation can only handle state vectors of type RKTrackRep!", __LINE__,__FILE__);
77 void FullMeasurement::Streamer(TBuffer &R__b)
82 typedef ::genfit::FullMeasurement thisClass;
84 if (R__b.IsReading()) {
85 Version_t R__v = R__b.ReadVersion(&R__s, &R__c);
if (R__v) { }
88 baseClass0::Streamer(R__b);
93 plane_.reset(
new DetPlane());
94 plane_->Streamer(R__b);
96 R__b.CheckByteCount(R__s, R__c, thisClass::IsA());
98 R__c = R__b.WriteVersion(thisClass::IsA(), kTRUE);
101 baseClass0::Streamer(R__b);
104 plane_->Streamer(R__b);
108 R__b.SetByteCount(R__c, kTRUE);
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 5-dimensional MeasurementOnPlane and RKTrackRep parameterization.
Measured coordinates on a plane.
AbsTrackRep with 5D track parameterization in plane coordinates: (q/p, u', v', u, v)
A state with arbitrary dimension defined in a DetPlane.
Defines for I/O streams used for error and debug printing.
std::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.