LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
geo::vect::dump Namespace Reference

Utilities to print vector types. More...

Functions

Output of old-style ROOT vectors (TVector3 etc.)
template<typename Stream >
void Vector2 (Stream &&out, TVector2 const &v)
 Print a TVector2 to an output stream. More...
 
template<typename Stream >
void Vector3 (Stream &&out, TVector3 const &v)
 Print a TVector3 to an output stream. More...
 
template<typename Stream >
void LorentzVector (Stream &&out, TLorentzVector const &v)
 Print a TLorentzVector to an output stream. More...
 
std::ostream & operator<< (std::ostream &out, TVector2 const &v)
 Print a TVector2 to an output stream. More...
 
std::ostream & operator<< (std::ostream &out, TVector3 const &v)
 Print a TVector3 to an output stream. More...
 
std::ostream & operator<< (std::ostream &out, TLorentzVector const &v)
 Print a TLorentzVector to an output stream. More...
 

Detailed Description

Utilities to print vector types.

Function Documentation

template<typename Stream >
void geo::vect::dump::LorentzVector ( Stream &&  out,
TLorentzVector const &  v 
)

Print a TLorentzVector to an output stream.

Definition at line 69 of file geo_vectors_utils_TVector.h.

Referenced by operator<<().

69  {
70  out
71  << "( " << v.X() << ", " << v.Y() << ", " << v.Z() << "; " << v.T()
72  << " )";
73  } // LorentzVector()
std::ostream& geo::vect::dump::operator<< ( std::ostream &  out,
TVector2 const &  v 
)
inline

Print a TVector2 to an output stream.

Definition at line 76 of file geo_vectors_utils_TVector.h.

References Vector2().

77  { Vector2(out, v); return out; }
void Vector2(Stream &&out, TVector2 const &v)
Print a TVector2 to an output stream.
std::ostream& geo::vect::dump::operator<< ( std::ostream &  out,
TVector3 const &  v 
)
inline

Print a TVector3 to an output stream.

Definition at line 80 of file geo_vectors_utils_TVector.h.

References Vector3().

81  { Vector3(out, v); return out; }
void Vector3(Stream &&out, TVector3 const &v)
Print a TVector3 to an output stream.
std::ostream& geo::vect::dump::operator<< ( std::ostream &  out,
TLorentzVector const &  v 
)
inline

Print a TLorentzVector to an output stream.

Definition at line 85 of file geo_vectors_utils_TVector.h.

References LorentzVector().

86  { LorentzVector(out, v); return out; }
void LorentzVector(Stream &&out, TLorentzVector const &v)
Print a TLorentzVector to an output stream.
template<typename Stream >
void geo::vect::dump::Vector2 ( Stream &&  out,
TVector2 const &  v 
)

Print a TVector2 to an output stream.

Definition at line 59 of file geo_vectors_utils_TVector.h.

Referenced by operator<<().

60  { out << "( " << v.X() << ", " << v.Y() << " )"; }
template<typename Stream >
void geo::vect::dump::Vector3 ( Stream &&  out,
TVector3 const &  v 
)

Print a TVector3 to an output stream.

Definition at line 64 of file geo_vectors_utils_TVector.h.

Referenced by operator<<().

65  { out << "( " << v.X() << ", " << v.Y() << ", " << v.Z() << " )"; }