[Rivet-svn] r1690 - trunk/src/Test

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Jul 14 15:56:53 BST 2009


Author: buckley
Date: Tue Jul 14 15:56:53 2009
New Revision: 1690

Log:
Fixing vector compilation in make check tests, since I changed the signatures of element assignment from the ambiguous v.x(1234.5) to the explicit (and more consistent) v.setX(1234.5) form.

Modified:
   trunk/src/Test/testMatVec.cc

Modified: trunk/src/Test/testMatVec.cc
==============================================================================
--- trunk/src/Test/testMatVec.cc	Tue Jul 14 15:46:05 2009	(r1689)
+++ trunk/src/Test/testMatVec.cc	Tue Jul 14 15:56:53 2009	(r1690)
@@ -12,17 +12,17 @@
 
   FourVector a(1,0,0,0);
   cout << a << ": interval = " << a.invariant() << endl;
-  a.z(1);
+  a.setZ(1);
   cout << a << ": interval = " << a.invariant() << endl;
-  a.y(2).z(3);
+  a.setY(2).setZ(3);
   cout << a << ": interval = " << a.invariant() << endl;
   cout << a << ": vector = " << a.vector3() << endl << endl;
 
   FourMomentum b(1,0,0,1);
   cout << b << ": mass = " << b.mass() << endl;
-  b.pz(1);
+  b.setPz(1);
   cout << b << ": mass = " << b.mass() << endl;
-  b.py(2).pz(3).E(6);
+  b.setPy(2).setPz(3).setE(6);
   cout << b << ": mass = " << b.mass2() << endl;
   cout << b << ": vector = " << b.vector3() << endl << endl;
 


More information about the Rivet-svn mailing list