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__);
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);