File: ThreeVector.h
Wrapper around the header file of the HepThreeVector
class in CLHEP. The class is aliased as CLHEP::Vector3
and made available in the Pythia7 namespace.
namespace Pythia7
template <typename OStream, typename UT>
void ounitstream(OStream & os, const Vector3 & p, UT & u) {
os << ounit(p.x(), u) << ounit(p.y(), u) << ounit(p.z(), u);
template <typename IStream, typename UT>
void iunitstream(IStream & is, Vector3 & p, UT & u) {
double x, y, z;
is >> iunit(x, u) >> iunit(y, u) >> iunit(z, u);
p = Vector3(x, y, z);
DEFINED MACROS
INCLUDED FILES
ThreeVector.fh
CLHEP.h
CLHEP/Vector/ThreeVector.h
Pythia7/Utilities/UnitIO.h