G4GeomTestStreamLogger::PrintPos Class Reference

#include <G4GeomTestStreamLogger.hh>


Public Member Functions

 PrintPos (const G4ThreeVector pos, G4bool useUnit=true)
void Print (std::ostream &) const


Detailed Description

Definition at line 75 of file G4GeomTestStreamLogger.hh.


Constructor & Destructor Documentation

G4GeomTestStreamLogger::PrintPos::PrintPos ( const G4ThreeVector  pos,
G4bool  useUnit = true 
) [inline]

Definition at line 78 of file G4GeomTestStreamLogger.hh.

00079           : p(pos), unit(useUnit) {;}


Member Function Documentation

void G4GeomTestStreamLogger::PrintPos::Print ( std::ostream &   )  const

Definition at line 62 of file G4GeomTestStreamLogger.cc.

Referenced by operator<<().

00063 {
00064   o << std::setprecision(6) << std::setw(14) << p.x()/cm;
00065   o << std::setprecision(6) << std::setw(14) << p.y()/cm;
00066   o << std::setprecision(6) << std::setw(14) << p.z()/cm;
00067   if (unit) o << " cm";
00068 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:05 2013 for Geant4 by  doxygen 1.4.7