File indexing completed on 2025-01-18 09:58:14
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042 #ifndef G4ErrorSurfaceTrajState_hh
0043 #define G4ErrorSurfaceTrajState_hh
0044
0045 #include "globals.hh"
0046
0047 #include "G4ErrorTrajState.hh"
0048 #include "G4ErrorSurfaceTrajParam.hh"
0049 #include "G4ErrorFreeTrajState.hh"
0050
0051 #include "G4Point3D.hh"
0052 #include "G4Vector3D.hh"
0053 #include "G4Plane3D.hh"
0054
0055 class G4ErrorSurfaceTrajState : public G4ErrorTrajState
0056 {
0057 public:
0058 G4ErrorSurfaceTrajState(const G4String& partType, const G4Point3D& pos,
0059 const G4Vector3D& mom, const G4Plane3D& plane,
0060 const G4ErrorTrajErr& errmat = G4ErrorTrajErr(5, 0));
0061
0062
0063
0064 G4ErrorSurfaceTrajState(const G4String& partType, const G4Point3D& pos,
0065 const G4Vector3D& mom, const G4Vector3D& vecV,
0066 const G4Vector3D& vecW,
0067 const G4ErrorTrajErr& errmat = G4ErrorTrajErr(5, 0));
0068
0069
0070
0071 G4ErrorSurfaceTrajState(G4ErrorFreeTrajState& tpSC, const G4Plane3D& plane);
0072
0073
0074 G4ErrorSurfaceTrajState(G4ErrorFreeTrajState& tpSC, const G4Vector3D& vecV,
0075 const G4Vector3D& vecW, G4ErrorMatrix& transfM);
0076
0077
0078 ~G4ErrorSurfaceTrajState() {}
0079 G4ErrorMatrix BuildErrorMatrix(G4ErrorFreeTrajState& tpSC,
0080 const G4Vector3D& vecV,
0081 const G4Vector3D& vecW);
0082
0083
0084 virtual void Dump(std::ostream& out = G4cout) const;
0085
0086 friend std::ostream& operator<<(std::ostream&,
0087 const G4ErrorSurfaceTrajState& ts);
0088
0089
0090
0091 G4ErrorSurfaceTrajParam GetParameters() const { return fTrajParam; }
0092 void SetParameters(const G4Point3D& pos, const G4Vector3D& mom,
0093 const G4Vector3D& vecV, const G4Vector3D& vecW)
0094 {
0095 fPosition = pos;
0096 fMomentum = mom;
0097 fTrajParam.SetParameters(pos, mom, vecV, vecW);
0098 }
0099
0100 void SetParameters(const G4Point3D& pos, const G4Vector3D& mom,
0101 const G4Plane3D& plane)
0102 {
0103 fPosition = pos;
0104 fMomentum = mom;
0105 fTrajParam.SetParameters(pos, mom, plane);
0106 }
0107
0108 G4Vector3D GetVectorV() const { return fTrajParam.GetVectorV(); }
0109
0110 G4Vector3D GetVectorW() const { return fTrajParam.GetVectorW(); }
0111
0112 virtual void SetPosition(const G4Point3D pos)
0113 {
0114 SetParameters(pos, fMomentum, GetVectorV(), GetVectorW());
0115 }
0116
0117 virtual void SetMomentum(const G4Vector3D& mom)
0118 {
0119 SetParameters(fPosition, mom, GetVectorV(), GetVectorW());
0120 }
0121
0122 private:
0123 void Init();
0124
0125
0126 private:
0127 G4ErrorSurfaceTrajParam fTrajParam;
0128 };
0129
0130 #endif