![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONSENSITIVEDETECTORSR4_UTILS_H
5 #define MUONSENSITIVEDETECTORSR4_UTILS_H
10 #include <G4VTouchable.hh>
32 ostr<<
"velocity: "<<
step.GetVelocity()<<
", ";
33 ostr<<
"time: "<<
step.GetGlobalTime()<<
", ";
34 ostr<<
"mass: "<<
step.GetDefinition()->GetPDGMass()<<
", ";
35 ostr<<
"kinetic energy: "<<
step.GetKineticEnergy()<<
", ";
36 ostr<<
"charge: "<<
step.GetDefinition()->GetPDGCharge();
39 inline std::ostream&
operator<<(std::ostream& ostr,
const G4StepPoint&
step) {
42 ostr<<
"time: "<<
step.GetGlobalTime()<<
", ";
43 ostr<<
"mass: "<<
step.GetMass()<<
", ";
44 ostr<<
"kinetic energy: "<<
step.GetKineticEnergy()<<
", ";
45 ostr<<
"charge: "<<
step.GetCharge();
Amg::Transform3D getTransform(const G4VTouchable *history, unsigned int level)
Extracts the local -> global transformation from a TouchableHistory at a given level.
Amg::Vector3D Hep3VectorToEigen(const CLHEP::Hep3Vector &CLHEPvector)
Converts a CLHEP-based CLHEP::Hep3Vector into an Eigen-based Amg::Vector3D.
Include the common definitions from the MuonReadoutGeometry.
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Eigen::Affine3d Transform3D
RotationMatrix3D CLHEPRotationToEigen(const CLHEP::HepRotation &CLHEProtation)
Converts a CLHEP::HepRotation into an Eigen-based Amg::RotationMatrix3D.
std::ostream & operator<<(std::ostream &ostr, const G4Track &step)
Eigen::Translation< double, 3 > Translation3D