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 68 of file geo_vectors_utils_TVector.h.

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

Print a TVector2 to an output stream.

Definition at line 75 of file geo_vectors_utils_TVector.h.

76  { 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 79 of file geo_vectors_utils_TVector.h.

80  { 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 84 of file geo_vectors_utils_TVector.h.

85  { LorentzVector(out, v); return out; }
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > LorentzVector
template<typename Stream >
void geo::vect::dump::Vector2 ( Stream &&  out,
TVector2 const &  v 
)

Print a TVector2 to an output stream.

Definition at line 58 of file geo_vectors_utils_TVector.h.

59  { 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 63 of file geo_vectors_utils_TVector.h.

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