C3Momentum.C
//-----------------------------------------------------------------------------
// $Header: /tmp_mnt/asis/offline/ceres/cool/project/RCS/C3Momentum.C,v 2.2 1996/10/04 08:43:40 voigt Exp $
//
// COOL Program Library
// Copyright (C) CERES collaboration, 1996
//
// Implementation of class C3Momentum.
//
//-----------------------------------------------------------------------------
#include "C3Momentum.h"
C3Momentum::C3Momentum() { x = y = z = 0; }
C3Momentum::C3Momentum(double newX, double newY, double newZ)
{
x = newX;
y = newY;
z = newZ;
}
C3Momentum::C3Momentum(const C3Momentum & a)
{
x = a.getX();
y = a.getY();
z = a.getZ();
}
C3Momentum::~C3Momentum() { }
ostream & operator << (ostream & s, const C3Momentum & q)
{
return s << "(" << q.getX() << ", " << q.getY() << ", " << q.getZ() << ")";
}