|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
17 #include <CLHEP/Units/SystemOfUnits.h>
20 #include <G4NavigationHistory.hh>
26 return localToGlobal(G4ThreeVector(local.
X / dd4hep::mm,local.
Y / dd4hep::mm,local.
Z / dd4hep::mm));
31 return localToGlobal(G4ThreeVector(local.X(),local.Y(),local.Z()));
41 G4ThreeVector p =
touchable_ptr->GetHistory()->GetTopTransform().Inverse().TransformPoint(loc);
53 G4ThreeVector p =
globalToLocalG4(G4ThreeVector(global.X(),global.Y(),global.Z()));
70 return touchable_ptr->GetHistory()->GetTopTransform().TransformPoint(global);
Simple container for a physics vector.
G4ThreeVector globalToLocalG4(double x, double y, double z) const
Coordinate transformation to local coordinates.
const G4VTouchable * touchable_ptr
Position globalToLocal(double x, double y, double z) const
Coordinate transformation to local coordinates.
Position localToGlobal(const Position &local) const
Coordinate transformation to global coordinates.
ROOT::Math::XYZVector Position
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.