31 std::cout <<
"genfit::MeasuredStateOnPlane ";
32 std::cout <<
"my address " <<
this <<
" my plane's address " << this->
sharedPlane_.get() <<
"; use count: " <<
sharedPlane_.use_count() << std::endl;
33 std::cout <<
" state vector: ";
state_.Print();
34 std::cout <<
" covariance matrix: ";
cov_.Print();
36 std::cout <<
" defined in plane ";
sharedPlane_->Print();
40 std::cout <<
" 3D position: "; pos.Print();
41 std::cout <<
" 3D momentum: "; mom.Print();
48 if (resetOffDiagonals) {
49 unsigned int dim =
cov_.GetNcols();
50 for (
unsigned int i=0; i<dim; ++i) {
51 for (
unsigned int j=0; j<dim; ++j) {
55 cov_(i,j) *= blowUpFac;
68 Exception e(
"KalmanFitterInfo::calcAverageState: forwardState and backwardState are not defined in the same plane.", __LINE__,__FILE__);
79 TMatrixDSym fCovInv, bCovInv, smoothed_cov;
87 retVal.
setCov(smoothed_cov);
91 static TMatrixDSym fCovInv, bCovInv;
virtual void getPosMomCov(const MeasuredStateOnPlane &state, TVector3 &pos, TVector3 &mom, TMatrixDSym &cov) const =0
Translates MeasuredStateOnPlane into 3D position, momentum and 6x6 covariance.
Exception class for error handling in GENFIT (provides storage for diagnostic information)
StateOnPlane with additional covariance matrix.
void setCov(const TMatrixDSym &cov)
const TMatrixDSym & getCov() const
void blowUpCov(double blowUpFac, bool resetOffDiagonals=true)
virtual void Print(Option_t *option="") const
A state with arbitrary dimension defined in a DetPlane.
const TVectorD & getState() const
SharedPlanePtr sharedPlane_
void setState(const TVectorD &state)
const AbsTrackRep * getRep() const
const SharedPlanePtr & getPlane() const
MeasuredStateOnPlane calcAverageState(const MeasuredStateOnPlane &forwardState, const MeasuredStateOnPlane &backwardState)
Calculate weighted average between two MeasuredStateOnPlanes.