ATLAS Offline Software
Namespaces | Functions
MuonSpectrometer/MuonPhaseII/MuonG4/MuonSensitiveDetectorsR4/MuonSensitiveDetectorsR4/Utils.h File Reference
#include <MuonReadoutGeometryR4/MuonDetectorDefs.h>
#include <G4VTouchable.hh>
#include <G4Track.hh>
Include dependency graph for MuonSpectrometer/MuonPhaseII/MuonG4/MuonSensitiveDetectorsR4/MuonSensitiveDetectorsR4/Utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 MuonG4R4
 Include the common definitions from the MuonReadoutGeometry.
 

Functions

Amg::Transform3D MuonG4R4::getTransform (const G4VTouchable *history, unsigned int level)
 Extracts the local -> global transformation from a TouchableHistory at a given level. More...
 
std::ostream & operator<< (std::ostream &ostr, const G4Track &step)
 
std::ostream & operator<< (std::ostream &ostr, const G4StepPoint &step)
 

Function Documentation

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  ostr,
const G4StepPoint &  step 
)
inline

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

39  {
40  ostr<<"position: "<<Amg::toString(Amg::Hep3VectorToEigen(step.GetPosition()),2)<<", ";
41  ostr<<"momentum: "<<Amg::toString(Amg::Hep3VectorToEigen(step.GetMomentum()),2)<<", ";
42  ostr<<"time: "<<step.GetGlobalTime()<<", ";
43  ostr<<"mass: "<<step.GetMass()<<", ";
44  ostr<<"kinetic energy: "<<step.GetKineticEnergy()<<", ";
45  ostr<<"charge: "<<step.GetCharge();
46  return ostr;
47  }

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  ostr,
const G4Track &  step 
)
inline

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

29  {
30  ostr<<"position: "<<Amg::toString(Amg::Hep3VectorToEigen(step.GetPosition()),2)<<", ";
31  ostr<<"momentum: "<<Amg::toString(Amg::Hep3VectorToEigen(step.GetMomentum()),2)<<", ";
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();
37  return ostr;
38  }
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::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
LArCellBinning.step
step
Definition: LArCellBinning.py:158