Functions
genie::pathsegutils Namespace Reference

Functions

string Vec3AsString (const TVector3 *vec)
 

Function Documentation

string genie::pathsegutils::Vec3AsString ( const TVector3 *  vec)

Definition at line 63 of file PathSegmentList.cxx.

64  {
65  int w=17, p=10; // precision setting only affects ostringstream
66  std::ostringstream fmt;
67  fmt << "(" << std::setw(w) << std::setprecision(p) << vec->x()
68  << "," << std::setw(w) << std::setprecision(p) << vec->y()
69  << "," << std::setw(w+1) << std::setprecision(p) << vec->z() << ")";
70  return fmt.str();
71  }
Q_EXPORT QTSManip setprecision(int p)
Definition: qtextstream.h:343
p
Definition: test.py:223
Q_EXPORT QTSManip setw(int w)
Definition: qtextstream.h:331