Warning, file /include/Geant4/G4ErrorSurfaceTrajParam.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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 #ifndef G4ErrorSurfaceTrajParam_hh
0041 #define G4ErrorSurfaceTrajParam_hh
0042
0043 #include "G4Point3D.hh"
0044 #include "G4Vector3D.hh"
0045 #include "G4Plane3D.hh"
0046 #include "G4ThreeVector.hh"
0047
0048 #include "globals.hh"
0049 #include "G4Track.hh"
0050
0051 class G4ErrorSurfaceTrajParam
0052 {
0053 public:
0054 G4ErrorSurfaceTrajParam()
0055 : fInvP(0.)
0056 , fPV(0.)
0057 , fPW(0.)
0058 , fV(0.)
0059 , fW(0.)
0060 {}
0061 G4ErrorSurfaceTrajParam(const G4Point3D& pos, const G4Vector3D& mom,
0062 const G4Vector3D& vecV, const G4Vector3D& vecW);
0063 G4ErrorSurfaceTrajParam(const G4Point3D& pos, const G4Vector3D& mom,
0064 const G4Plane3D& plane);
0065
0066 G4ErrorSurfaceTrajParam(const G4ErrorSurfaceTrajParam&) = default;
0067 G4ErrorSurfaceTrajParam(G4ErrorSurfaceTrajParam&&) = default;
0068
0069
0070 virtual ~G4ErrorSurfaceTrajParam() {}
0071
0072 G4ErrorSurfaceTrajParam& operator=(const G4ErrorSurfaceTrajParam&) = default;
0073 G4ErrorSurfaceTrajParam& operator=(G4ErrorSurfaceTrajParam&&) = default;
0074
0075
0076 friend std::ostream& operator<<(std::ostream&,
0077 const G4ErrorSurfaceTrajParam& ts);
0078
0079
0080
0081 void SetParameters(const G4Point3D& pos, const G4Vector3D& mom,
0082 const G4Vector3D& vecV, const G4Vector3D& vecW);
0083 void SetParameters(const G4Point3D& pos, const G4Vector3D& mom,
0084 const G4Plane3D& plane);
0085
0086 G4Vector3D GetDirection() const { return fDir; }
0087 G4Vector3D GetPlaneNormal() const { return fVectorV.cross(fVectorW); }
0088 G4Vector3D GetVectorV() const { return fVectorV; }
0089 G4Vector3D GetVectorW() const { return fVectorW; }
0090 G4double GetPV() const { return fPV; }
0091 G4double GetPW() const { return fPW; }
0092 G4double GetV() const { return fV; }
0093 G4double GetW() const { return fW; }
0094 G4double GetInvP() const { return fInvP; }
0095
0096 private:
0097 G4ThreeVector fDir;
0098 G4Vector3D fVectorV;
0099 G4Vector3D fVectorW;
0100 G4double fInvP;
0101 G4double fPV;
0102 G4double fPW;
0103 G4double fV;
0104 G4double fW;
0105 };
0106
0107 #endif