Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VModel.cc File Reference
#include "G4VModel.hh"
#include "G4RotationMatrix.hh"
#include "G4ModelingParameters.hh"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const G4VModel &model)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const G4VModel model 
)

Definition at line 63 of file G4VModel.cc.

63 {
64 os << model.fGlobalDescription;
65 os << "\n Modeling parameters:";
66 const G4ModelingParameters* mp = model.fpMP;
67 if (mp) os << "\n " << *mp;
68 else os << " none.";
69 os << "\n Extent: " << model.fExtent;
70 os << "\n Transformation: ";
71 os << "\n Rotation: ";
72 G4RotationMatrix rotation = model.fTransform.getRotation ();
73 os << rotation.thetaX() << ", "
74 << rotation.phiX() << ", "
75 << rotation.thetaY() << ", "
76 << rotation.phiY() << ", "
77 << rotation.thetaZ() << ", "
78 << rotation.phiZ();
79 os << "\n Translation: " << model.fTransform.getTranslation ();
80 return os;
81}
double thetaY() const
Definition: Rotation.cc:145
double phiY() const
Definition: Rotation.cc:133
double thetaX() const
Definition: Rotation.cc:141
double phiX() const
Definition: Rotation.cc:129
double thetaZ() const
Definition: Rotation.cc:149
double phiZ() const
Definition: Rotation.cc:137
G4VisExtent fExtent
Definition: G4VModel.hh:111
G4String fGlobalDescription
Definition: G4VModel.hh:110
const G4ModelingParameters * fpMP
Definition: G4VModel.hh:113
G4Transform3D fTransform
Definition: G4VModel.hh:112
CLHEP::HepRotation getRotation() const
CLHEP::Hep3Vector getTranslation() const