DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Namespaces | Functions
Geant4Helpers.h File Reference
#include <DD4hep/Objects.h>
#include <G4ThreeVector.hh>
#include <G4Transform3D.hh>
#include <G4RotationMatrix.hh>
#include <geomdefs.hh>
#include <functional>

Go to the source code of this file.

Namespaces

 dd4hep
 Namespace for the AIDA detector description toolkit.
 
 dd4hep::sim
 Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
 

Functions

G4RotationMatrix dd4hep::sim::g4Rotation (const TGeoMatrix *matrix)
 Extract G4 rotation matrix from ROOT matrices. More...
 
G4RotationMatrix dd4hep::sim::g4Rotation (const TGeoMatrix &matrix)
 
G4RotationMatrix dd4hep::sim::g4Rotation (const TGeoRotation *rot)
 
G4RotationMatrix dd4hep::sim::g4Rotation (const TGeoRotation &rot)
 
G4RotationMatrix dd4hep::sim::g4Rotation (const Rotation3D &rot)
 
G4RotationMatrix dd4hep::sim::g4Rotation (const RotationZYX &rot)
 
G4Transform3D dd4hep::sim::generate_placements (const G4Transform3D &start, const G4Transform3D &delta, std::size_t count, const std::function< void(const G4Transform3D &delta)> &callback)
 Generate parameterised placements in 1 dimension according to transformation delta. More...
 
G4Transform3D dd4hep::sim::generate_placements (const G4Transform3D &start, const G4Transform3D &delta1, std::size_t count1, const G4Transform3D &delta2, std::size_t count2, const std::function< void(const G4Transform3D &delta)> &callback)
 Generate parameterised placements in 2 dimensions according to transformation delta. More...
 
G4Transform3D dd4hep::sim::generate_placements (const G4Transform3D &start, const G4Transform3D &delta1, std::size_t count1, const G4Transform3D &delta2, std::size_t count2, const G4Transform3D &delta3, std::size_t count3, const std::function< void(const G4Transform3D &delta)> &callback)
 Generate parameterised placements in 3 dimensions according to transformation delta. More...
 
void dd4hep::sim::g4Transform (const double *translation, const double *rotation, G4Transform3D &transform)
 These conversions automatically apply the conversion from CM to MM! More...
 
void dd4hep::sim::g4Transform (const Position &pos, const Rotation3D &rot, G4Transform3D &transform)
 
void dd4hep::sim::g4Transform (const double *translation, G4Transform3D &transform)
 
void dd4hep::sim::g4Transform (const Transform3D &matrix, G4Transform3D &transform)
 
void dd4hep::sim::g4Transform (const TGeoMatrix *matrix, G4Transform3D &transform)
 
void dd4hep::sim::g4Transform (const TGeoMatrix &matrix, G4Transform3D &transform)
 
G4Transform3D dd4hep::sim::g4Transform (const double *translation)
 
G4Transform3D dd4hep::sim::g4Transform (const double *translation, const double *rotation)
 
G4Transform3D dd4hep::sim::g4Transform (const Transform3D &matrix)
 
G4Transform3D dd4hep::sim::g4Transform (const Position &pos, const Rotation3D &rot)
 
G4Transform3D dd4hep::sim::g4Transform (const Position &pos, const RotationZYX &rot)
 
G4Transform3D dd4hep::sim::g4Transform (const TGeoMatrix *matrix)
 
G4Transform3D dd4hep::sim::g4Transform (const TGeoMatrix &matrix)
 
G4Transform3D dd4hep::sim::g4Transform (const TGeoTranslation *translation, const TGeoRotation *rotation)
 
G4Transform3D dd4hep::sim::g4Transform (const TGeoTranslation &translation, const TGeoRotation &rotation)
 
std::pair< double, EAxis > dd4hep::sim::extract_axis (const Transform3D &trafo)