Import Geant4 11.0.0.beta source tree
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
// Holds the 5 independent variables of the trajectory for a
|
||||
// G4ErrorSurfaceTrajState object. It is not used for anything but for
|
||||
// printing, but anyhow it is updated everytime the position and momentum
|
||||
// are updated
|
||||
// are updated
|
||||
|
||||
// History:
|
||||
// - Created: P. Arce
|
||||
@@ -51,55 +51,57 @@
|
||||
class G4ErrorSurfaceTrajParam
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4ErrorSurfaceTrajParam()
|
||||
: fInvP(0.), fPV(0.), fPW(0.), fV(0.), fW(0.) {}
|
||||
G4ErrorSurfaceTrajParam( const G4Point3D& pos, const G4Vector3D& mom,
|
||||
const G4Vector3D& vecV, const G4Vector3D& vecW );
|
||||
G4ErrorSurfaceTrajParam( const G4Point3D& pos, const G4Vector3D& mom,
|
||||
const G4Plane3D& plane );
|
||||
: fInvP(0.)
|
||||
, fPV(0.)
|
||||
, fPW(0.)
|
||||
, fV(0.)
|
||||
, fW(0.)
|
||||
{}
|
||||
G4ErrorSurfaceTrajParam(const G4Point3D& pos, const G4Vector3D& mom,
|
||||
const G4Vector3D& vecV, const G4Vector3D& vecW);
|
||||
G4ErrorSurfaceTrajParam(const G4Point3D& pos, const G4Vector3D& mom,
|
||||
const G4Plane3D& plane);
|
||||
|
||||
G4ErrorSurfaceTrajParam(const G4ErrorSurfaceTrajParam&) = default;
|
||||
G4ErrorSurfaceTrajParam(G4ErrorSurfaceTrajParam&&) = default;
|
||||
// The copy and move constructors
|
||||
G4ErrorSurfaceTrajParam(G4ErrorSurfaceTrajParam&&) = default;
|
||||
// The copy and move constructors
|
||||
|
||||
virtual ~G4ErrorSurfaceTrajParam(){}
|
||||
virtual ~G4ErrorSurfaceTrajParam() {}
|
||||
|
||||
G4ErrorSurfaceTrajParam& operator = (const G4ErrorSurfaceTrajParam&) = default;
|
||||
G4ErrorSurfaceTrajParam& operator = (G4ErrorSurfaceTrajParam&&) = default;
|
||||
// The copy and move assignment operators
|
||||
G4ErrorSurfaceTrajParam& operator=(const G4ErrorSurfaceTrajParam&) = default;
|
||||
G4ErrorSurfaceTrajParam& operator=(G4ErrorSurfaceTrajParam&&) = default;
|
||||
// The copy and move assignment operators
|
||||
|
||||
friend
|
||||
std::ostream& operator<<(std::ostream&, const G4ErrorSurfaceTrajParam& ts);
|
||||
|
||||
// Get and Set methods
|
||||
friend std::ostream& operator<<(std::ostream&,
|
||||
const G4ErrorSurfaceTrajParam& ts);
|
||||
|
||||
void SetParameters( const G4Point3D& pos, const G4Vector3D& mom,
|
||||
const G4Vector3D& vecV, const G4Vector3D& vecW );
|
||||
void SetParameters( const G4Point3D& pos, const G4Vector3D& mom,
|
||||
const G4Plane3D& plane );
|
||||
// Get and Set methods
|
||||
|
||||
void SetParameters(const G4Point3D& pos, const G4Vector3D& mom,
|
||||
const G4Vector3D& vecV, const G4Vector3D& vecW);
|
||||
void SetParameters(const G4Point3D& pos, const G4Vector3D& mom,
|
||||
const G4Plane3D& plane);
|
||||
|
||||
G4Vector3D GetDirection() const { return fDir; }
|
||||
G4Vector3D GetPlaneNormal() const { return fVectorV.cross(fVectorW); }
|
||||
G4Vector3D GetVectorV() const { return fVectorV; }
|
||||
G4Vector3D GetVectorW() const { return fVectorW; }
|
||||
G4double GetPV() const{ return fPV; }
|
||||
G4double GetPW() const{ return fPW; }
|
||||
G4double GetV() const{ return fV; }
|
||||
G4double GetW() const{ return fW; }
|
||||
G4double GetInvP() const{ return fInvP; }
|
||||
G4double GetPV() const { return fPV; }
|
||||
G4double GetPW() const { return fPW; }
|
||||
G4double GetV() const { return fV; }
|
||||
G4double GetW() const { return fW; }
|
||||
G4double GetInvP() const { return fInvP; }
|
||||
|
||||
private:
|
||||
|
||||
G4ThreeVector fDir;
|
||||
G4Vector3D fVectorV; //one of the vectors defining the plane
|
||||
G4Vector3D fVectorW; //one of the vectors defining the plane
|
||||
G4double fInvP; // inverse of momentum
|
||||
G4double fPV; // projection of momentum in one direction
|
||||
G4double fPW; // projection of momentum in one direction
|
||||
G4double fV; // projection of position in one direction
|
||||
G4double fW; // projection of position in one direction
|
||||
|
||||
G4Vector3D fVectorV; // one of the vectors defining the plane
|
||||
G4Vector3D fVectorW; // one of the vectors defining the plane
|
||||
G4double fInvP; // inverse of momentum
|
||||
G4double fPV; // projection of momentum in one direction
|
||||
G4double fPW; // projection of momentum in one direction
|
||||
G4double fV; // projection of position in one direction
|
||||
G4double fW; // projection of position in one direction
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user