12 #ifndef LARDATAOBJ_UTILITIES_DATAIOMANIP_H 13 #define LARDATAOBJ_UTILITIES_DATAIOMANIP_H 36 template <
typename Vect>
45 template <
typename Stream>
48 out <<
"( " << v.X() <<
" ; " << v.Y() <<
" ; " << v.Z() <<
" )";
55 template <
typename Vect>
56 std::ostream&
operator<<
58 {
return vmanip(out); }
79 template <
typename Vect>
89 #endif // LARDATAOBJ_UTILITIES_DATAIOMANIP_H Namespace for general, non-LArSoft-specific utilities.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
details::Vector3DStruct< Vect > vector3D(Vect const &v)
Produces a manipulator to print a vector.
Vector3DStruct(Vect const &vector)
Constructor: print the specified vector.
Stream & operator()(Stream &&out) const
The printing operator.
Utility class to store and print a 3D vector.
Vect const & v
Vector to be printed.