19#include "BDSTransform3D.hh"
21#include "G4RotationMatrix.hh"
23#include "G4ThreeVector.hh"
26BDSTransform3D::BDSTransform3D(
const G4String& nameIn,
34 rotationMatrix(G4RotationMatrix()),
35 dx(dxIn), dy(dyIn), dz(dzIn),
36 dPhi(dPhiIn), dTheta(dThetaIn), dPsi(dPsiIn),
39 rotationMatrix.set(dPhiIn, dThetaIn, dPsiIn);
41 rotationMatrix.getAngleAxis(angle,axis);
47BDSTransform3D::BDSTransform3D(
const G4String& nameIn,
56 rotationMatrix(G4RotationMatrix()),
57 dx(dxIn), dy(dyIn), dz(dzIn),
63 G4ThreeVector axis(axisXIn, axisYIn, axisZIn);
64 rotationMatrix.set(axis,angle);
65 dPhi = rotationMatrix.getPhi();
66 dTheta = rotationMatrix.getTheta();
67 dPsi = rotationMatrix.getPsi();
70BDSTransform3D::~BDSTransform3D()
Abstract class that represents a component of an accelerator.