File indexing completed on 2025-08-05 08:18:23
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #ifndef genfit_ReferenceStateOnPlane_h
0025 #define genfit_ReferenceStateOnPlane_h
0026
0027 #include "StateOnPlane.h"
0028
0029
0030 namespace genfit {
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043 class ReferenceStateOnPlane : public StateOnPlane {
0044
0045 public:
0046
0047 ReferenceStateOnPlane();
0048 ReferenceStateOnPlane(const TVectorD& state,
0049 const SharedPlanePtr& plane,
0050 const AbsTrackRep* rep);
0051 ReferenceStateOnPlane(const TVectorD& state,
0052 const SharedPlanePtr& plane,
0053 const AbsTrackRep* rep,
0054 const TVectorD& auxInfo);
0055 ReferenceStateOnPlane(const StateOnPlane& state);
0056 ReferenceStateOnPlane(const ReferenceStateOnPlane&) = default;
0057
0058 StateOnPlane& operator=(ReferenceStateOnPlane other);
0059 void swap(ReferenceStateOnPlane& other);
0060
0061 virtual ~ReferenceStateOnPlane() {}
0062
0063 void setForwardSegmentLength(double len) {forwardSegmentLength_ = len;}
0064 void setBackwardSegmentLength(double len) {backwardSegmentLength_ = len;}
0065 void setForwardTransportMatrix(const TMatrixD& mat) {forwardTransportMatrix_.ResizeTo(mat); forwardTransportMatrix_=mat;}
0066 void setBackwardTransportMatrix(const TMatrixD& mat) {backwardTransportMatrix_.ResizeTo(mat); backwardTransportMatrix_=mat;}
0067 void setTransportMatrix(const TMatrixD& mat, int direction) {if (direction >= 0) setForwardTransportMatrix(mat); else setBackwardTransportMatrix(mat);}
0068 void setForwardNoiseMatrix(const TMatrixDSym& mat) {forwardNoiseMatrix_.ResizeTo(mat); forwardNoiseMatrix_=mat;}
0069 void setBackwardNoiseMatrix(const TMatrixDSym& mat) {backwardNoiseMatrix_.ResizeTo(mat); backwardNoiseMatrix_=mat;}
0070 void setNoiseMatrix(const TMatrixDSym& mat, int direction) {if (direction >= 0) setForwardNoiseMatrix(mat); else setBackwardNoiseMatrix(mat);}
0071 void setForwardDeltaState(const TVectorD& mat) {forwardDeltaState_.ResizeTo(mat); forwardDeltaState_=mat;}
0072 void setBackwardDeltaState(const TVectorD& mat) {backwardDeltaState_.ResizeTo(mat); backwardDeltaState_=mat;}
0073 void setDeltaState(const TVectorD& mat, int direction) {if (direction >= 0) setForwardDeltaState(mat); else setBackwardDeltaState(mat);}
0074
0075
0076 double getForwardSegmentLength() const {return forwardSegmentLength_;}
0077 double getBackwardSegmentLength() const {return backwardSegmentLength_;}
0078 const TMatrixD& getForwardTransportMatrix() const {return forwardTransportMatrix_;}
0079 const TMatrixD& getBackwardTransportMatrix() const {return backwardTransportMatrix_;}
0080 const TMatrixD& getTransportMatrix(int direction) const {if (direction >= 0) return forwardTransportMatrix_; return backwardTransportMatrix_;}
0081 const TMatrixDSym& getForwardNoiseMatrix() const {return forwardNoiseMatrix_;}
0082 const TMatrixDSym& getBackwardNoiseMatrix() const {return backwardNoiseMatrix_;}
0083 const TMatrixDSym& getNoiseMatrix(int direction) const {if (direction >= 0) return forwardNoiseMatrix_; return backwardNoiseMatrix_;}
0084 const TVectorD& getForwardDeltaState() const {return forwardDeltaState_;}
0085 const TVectorD& getBackwardDeltaState() const {return backwardDeltaState_;}
0086 const TVectorD& getDeltaState(int direction) const {if (direction >= 0) return forwardDeltaState_; return backwardDeltaState_;}
0087
0088 void resetForward();
0089 void resetBackward();
0090
0091 virtual void Print(Option_t* option = "") const override;
0092
0093 protected:
0094
0095 double forwardSegmentLength_;
0096 double backwardSegmentLength_;
0097 TMatrixD forwardTransportMatrix_;
0098 TMatrixD backwardTransportMatrix_;
0099 TMatrixDSym forwardNoiseMatrix_;
0100 TMatrixDSym backwardNoiseMatrix_;
0101 TVectorD forwardDeltaState_;
0102 TVectorD backwardDeltaState_;
0103
0104
0105 public:
0106
0107 ClassDefOverride(ReferenceStateOnPlane,1)
0108
0109 };
0110
0111 }
0112
0113
0114 #endif