ATLAS Offline Software
Classes | Functions
MuonG4R4 Namespace Reference

Include the common definitions from the MuonReadoutGeometry. More...

Classes

class  MdtSensitiveDetector
 
class  MdtSensitiveDetectorTool
 
class  MmSensitiveDetector
 
class  MmSensitiveDetectorTool
 
class  RpcSensitiveDetector
 
class  RpcSensitiveDetectorTool
 
class  sTgcSensitiveDetector
 
class  sTgcSensitiveDetectorTool
 
class  TgcSensitiveDetector
 
class  TgcSensitiveDetectorTool
 

Functions

Amg::Transform3D getTransform (const G4VTouchable *history, unsigned int level)
 Extracts the local -> global transformation from a TouchableHistory at a given level. More...
 

Detailed Description

Include the common definitions from the MuonReadoutGeometry.

Function Documentation

◆ getTransform()

Amg::Transform3D MuonG4R4::getTransform ( const G4VTouchable *  history,
unsigned int  level 
)
inline

Extracts the local -> global transformation from a TouchableHistory at a given level.

Parameters
historyPointer to the history of the G4 track
levelLevel inside the history - should not exceed GetNDepth() of the history
Returns
: The transformation to go from the local into the global coordinate frame

Definition at line 24 of file MuonSpectrometer/MuonPhaseII/MuonG4/MuonSensitiveDetectorsR4/MuonSensitiveDetectorsR4/Utils.h.

24  {
25  return Amg::Translation3D{Amg::Hep3VectorToEigen(history->GetTranslation(level))}*
26  Amg::CLHEPRotationToEigen(*history->GetRotation(level)).inverse();
27  }
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
Amg::Hep3VectorToEigen
Amg::Vector3D Hep3VectorToEigen(const CLHEP::Hep3Vector &CLHEPvector)
Converts a CLHEP-based CLHEP::Hep3Vector into an Eigen-based Amg::Vector3D.
Definition: CLHEPtoEigenConverter.h:137
Amg::CLHEPRotationToEigen
RotationMatrix3D CLHEPRotationToEigen(const CLHEP::HepRotation &CLHEProtation)
Converts a CLHEP::HepRotation into an Eigen-based Amg::RotationMatrix3D.
Definition: CLHEPtoEigenConverter.h:63
Amg::Translation3D
Eigen::Translation< double, 3 > Translation3D
Definition: GeoPrimitives.h:44