Geant4-11
Data Structures | Functions
G4Mesh.hh File Reference
#include "G4Transform3D.hh"

Go to the source code of this file.

Data Structures

class  G4Mesh
 

Functions

std::ostream & operator<< (std::ostream &os, const G4Mesh &mesh)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const G4Mesh mesh 
)

Definition at line 116 of file G4Mesh.cc.

116 {
117 os << "G4Mesh: ";
118 os << "\nContainer: " << mesh.GetContainerVolume()->GetName();
119 os << "\nType: " << mesh.GetEnumMap().find(mesh.GetMeshType())->second;
120 os << "\nDepth: " << mesh.GetMeshDepth();
121 os << "\nTranslation: " << mesh.GetTransform().getTranslation();
122 os << "\nRotation: " << mesh.GetTransform().getRotation();
123 return os;
124}
const std::map< G4int, G4String > & GetEnumMap() const
Definition: G4Mesh.hh:60
MeshType GetMeshType() const
Definition: G4Mesh.hh:62
G4VPhysicalVolume * GetContainerVolume() const
Definition: G4Mesh.hh:61
const G4Transform3D & GetTransform() const
Definition: G4Mesh.hh:64
G4int GetMeshDepth() const
Definition: G4Mesh.hh:63
const G4String & GetName() const
CLHEP::HepRotation getRotation() const
CLHEP::Hep3Vector getTranslation() const

References G4Mesh::GetContainerVolume(), G4Mesh::GetEnumMap(), G4Mesh::GetMeshDepth(), G4Mesh::GetMeshType(), G4VPhysicalVolume::GetName(), HepGeom::Transform3D::getRotation(), G4Mesh::GetTransform(), and HepGeom::Transform3D::getTranslation().