All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 70 of file geo_vectors_utils_TVector.h.

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

Print a TVector2 to an output stream.

Definition at line 77 of file geo_vectors_utils_TVector.h.

78  { 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 81 of file geo_vectors_utils_TVector.h.

82  { 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 86 of file geo_vectors_utils_TVector.h.

87  { 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 60 of file geo_vectors_utils_TVector.h.

61  { 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 65 of file geo_vectors_utils_TVector.h.

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