LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 76 of file geo_vectors_utils_TVector.h.

Referenced by operator<<().

77  {
78  out << "( " << v.X() << ", " << v.Y() << ", " << v.Z() << "; " << v.T() << " )";
79  } // LorentzVector()
std::ostream& geo::vect::dump::operator<< ( std::ostream &  out,
TVector2 const &  v 
)
inline

Print a TVector2 to an output stream.

Definition at line 82 of file geo_vectors_utils_TVector.h.

References Vector2().

83  {
84  Vector2(out, v);
85  return out;
86  }
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 89 of file geo_vectors_utils_TVector.h.

References Vector3().

90  {
91  Vector3(out, v);
92  return out;
93  }
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 96 of file geo_vectors_utils_TVector.h.

References LorentzVector().

97  {
98  LorentzVector(out, v);
99  return out;
100  }
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 62 of file geo_vectors_utils_TVector.h.

Referenced by operator<<().

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

Print a TVector3 to an output stream.

Definition at line 69 of file geo_vectors_utils_TVector.h.

Referenced by operator<<().

70  {
71  out << "( " << v.X() << ", " << v.Y() << ", " << v.Z() << " )";
72  }