14 #ifndef DDG4_GEANT4HELPERS_H
15 #define DDG4_GEANT4HELPERS_H
21 #include <G4ThreeVector.hh>
22 #include <G4Transform3D.hh>
23 #include <G4RotationMatrix.hh>
24 #include <geomdefs.hh>
36 G4RotationMatrix
g4Rotation(
const TGeoMatrix* matrix);
37 G4RotationMatrix
g4Rotation(
const TGeoMatrix& matrix);
38 G4RotationMatrix
g4Rotation(
const TGeoRotation* rot);
39 G4RotationMatrix
g4Rotation(
const TGeoRotation& rot);
46 const G4Transform3D&
delta,
48 const std::function<
void(
const G4Transform3D&
delta)>& callback);
53 const G4Transform3D& delta1,
55 const G4Transform3D& delta2,
57 const std::function<
void(
const G4Transform3D&
delta)>& callback);
62 const G4Transform3D& delta1,
64 const G4Transform3D& delta2,
66 const G4Transform3D& delta3,
68 const std::function<
void(
const G4Transform3D&
delta)>& callback);
72 void g4Transform(
const double* translation,
const double* rotation, G4Transform3D& transform);
74 void g4Transform(
const double* translation, G4Transform3D& transform);
76 void g4Transform(
const TGeoMatrix* matrix, G4Transform3D& transform);
77 void g4Transform(
const TGeoMatrix& matrix, G4Transform3D& transform);
80 G4Transform3D
g4Transform(
const double* translation,
const double* rotation);
86 G4Transform3D
g4Transform(
const TGeoMatrix* matrix);
87 G4Transform3D
g4Transform(
const TGeoMatrix& matrix);
88 G4Transform3D
g4Transform(
const TGeoTranslation* translation,
const TGeoRotation* rotation);
89 G4Transform3D
g4Transform(
const TGeoTranslation& translation,
const TGeoRotation& rotation);
95 #endif // DDG4_GEANT4HELPERS_H