Geant4 10.7.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 69 of file G4VModel.cc.

69 {
70 os << model.fGlobalDescription;
71 os << "\n Modeling parameters:";
72 const G4ModelingParameters* mp = model.fpMP;
73 if (mp) os << "\n " << *mp;
74 else os << " none.";
75 os << "\n Extent: " << model.fExtent;
76 os << "\n Transformation: ";
77 os << "\n Rotation: ";
78 G4RotationMatrix rotation = model.fTransform.getRotation ();
79 os << rotation.thetaX() << ", "
80 << rotation.phiX() << ", "
81 << rotation.thetaY() << ", "
82 << rotation.phiY() << ", "
83 << rotation.thetaZ() << ", "
84 << rotation.phiZ();
85 os << "\n Translation: " << model.fTransform.getTranslation ();
86 return os;
87}
double thetaY() const
Definition: Rotation.cc:140
double phiY() const
Definition: Rotation.cc:128
double thetaX() const
Definition: Rotation.cc:136
double phiX() const
Definition: Rotation.cc:124
double thetaZ() const
Definition: Rotation.cc:144
double phiZ() const
Definition: Rotation.cc:132
G4VisExtent fExtent
Definition: G4VModel.hh:113
G4String fGlobalDescription
Definition: G4VModel.hh:112
const G4ModelingParameters * fpMP
Definition: G4VModel.hh:115
G4Transform3D fTransform
Definition: G4VModel.hh:114
CLHEP::HepRotation getRotation() const
CLHEP::Hep3Vector getTranslation() const