ATLAS Offline Software
Loading...
Searching...
No Matches
MuonG4R4 Namespace Reference

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

Classes

class  MdtSensitiveDetector
class  MdtSensitiveDetectorTool
class  MmSensitiveDetector
class  MmSensitiveDetectorTool
class  MuonSensitiveDetector
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.

Detailed Description

Include the common definitions from the MuonReadoutGeometry.

Basic MuonSensitiveDetector class from which all the other sensitive detectors inherit.

The base implementation provides the output container to store gate, creates the GeometryContext of interest and unifies the criteria whether a Step shall be processed or not. Finally, it keeps track whether a particle from a G4 step has already been recorded and updates then the last hit accordingly

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 }
Amg::Vector3D Hep3VectorToEigen(const CLHEP::Hep3Vector &CLHEPvector)
Converts a CLHEP-based CLHEP::Hep3Vector into an Eigen-based Amg::Vector3D.
RotationMatrix3D CLHEPRotationToEigen(const CLHEP::HepRotation &CLHEProtation)
Converts a CLHEP::HepRotation into an Eigen-based Amg::RotationMatrix3D.
Eigen::Translation< double, 3 > Translation3D