00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #ifndef G4ErrorSurfaceTrajState_hh
00044 #define G4ErrorSurfaceTrajState_hh
00045
00046 #include "globals.hh"
00047
00048 #include "G4ErrorTrajState.hh"
00049 #include "G4ErrorSurfaceTrajParam.hh"
00050 #include "G4ErrorFreeTrajState.hh"
00051
00052 #include "G4Point3D.hh"
00053 #include "G4Vector3D.hh"
00054 #include "G4Plane3D.hh"
00055
00056 class G4ErrorSurfaceTrajState : public G4ErrorTrajState
00057 {
00058
00059 public:
00060
00061 G4ErrorSurfaceTrajState( const G4String& partType, const G4Point3D& pos,
00062 const G4Vector3D& mom, const G4Plane3D& plane,
00063 const G4ErrorTrajErr& errmat = G4ErrorTrajErr(5,0) );
00064
00065
00066
00067 G4ErrorSurfaceTrajState( const G4String& partType, const G4Point3D& pos,
00068 const G4Vector3D& mom, const G4Vector3D& vecV,
00069 const G4Vector3D& vecW,
00070 const G4ErrorTrajErr& errmat = G4ErrorTrajErr(5,0) );
00071
00072
00073
00074 G4ErrorSurfaceTrajState( G4ErrorFreeTrajState& tpSC, const G4Plane3D& plane );
00075
00076
00077 G4ErrorSurfaceTrajState( G4ErrorFreeTrajState& tpSC, const G4Vector3D& vecV,
00078 const G4Vector3D& vecW , G4ErrorMatrix &transfM);
00079
00080
00081 ~G4ErrorSurfaceTrajState(){}
00082 G4ErrorMatrix BuildErrorMatrix( G4ErrorFreeTrajState& tpSC, const G4Vector3D& vecV,
00083 const G4Vector3D& vecW );
00084
00085
00086 virtual void Dump( std::ostream& out = G4cout ) const;
00087
00088 friend
00089 std::ostream& operator<<(std::ostream&, const G4ErrorSurfaceTrajState& ts);
00090
00091
00092
00093 G4ErrorSurfaceTrajParam GetParameters() const
00094 { return fTrajParam; }
00095 void SetParameters( const G4Point3D& pos, const G4Vector3D& mom,
00096 const G4Vector3D& vecV, const G4Vector3D& vecW )
00097 {
00098 fPosition = pos;
00099 fMomentum = mom;
00100 fTrajParam.SetParameters( pos, mom, vecV, vecW );
00101 }
00102
00103 void SetParameters( const G4Point3D& pos, const G4Vector3D& mom,
00104 const G4Plane3D& plane )
00105 {
00106 fPosition = pos;
00107 fMomentum = mom;
00108 fTrajParam.SetParameters( pos, mom, plane );
00109 }
00110
00111 G4Vector3D GetVectorV() const
00112 { return fTrajParam.GetVectorV(); }
00113
00114 G4Vector3D GetVectorW() const
00115 { return fTrajParam.GetVectorW(); }
00116
00117 virtual void SetPosition( const G4Point3D pos )
00118 { SetParameters( pos, fMomentum, GetVectorV(), GetVectorW() ); }
00119
00120 virtual void SetMomentum( const G4Vector3D& mom )
00121 { SetParameters( fPosition, mom, GetVectorV(), GetVectorW() ); }
00122
00123 private:
00124
00125 void Init();
00126
00127
00128 private:
00129
00130 G4ErrorSurfaceTrajParam fTrajParam;
00131
00132 };
00133
00134 #endif