Linear Collider Forum



Home » Software Tools » org.lcsim » SpacePoint, SpaceVector etc
Re: SpacePoint, SpaceVector etc [message #1248 is a reply to message #1243] Fri, 02 November 2007 13:58 Go to previous messageGo to previous message
jfstrube
Messages: 64
Registered: September 2004
Location: Tohoku University
Hi Rob,

I have taken the liberty to add SpaceVector to org.lcsim.spacegeom, because it was missing in my estimation.

Classes in org.lcsim.spacegeom implement Hep3Vector, so you should be able to use them with any class that expects Hep3Vectors.

Note, however, that the method v() in its current implementation returns the vector as an array, with whatever coordinates the SpaceVector comes in, so a polar vector would return r, phi, theta rather than x, y, z. On the other hand, every implementation of Hep3Vector that I am aware of assumes cartesian coordinates.
In other words, if you have classes that take Hep3Vectors and operate on .X(), .Y() and .Z(), then you are safe.
If your classes use v() and indices, you will be in trouble.

To answer your last question, there is no LorentzVector implementation in SpaceGeom AFAIK.

Hope that helps,
Jan
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bug in AIDA.SaveaAsZip
Next Topic:Units for material properties
Goto Forum:
  


Current Time: Tue Oct 23 19:25:28 Pacific Daylight Time 2018
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software