Linear Collider Forum



Home » General » General Questions » IDDecoder
Re: IDDecoder [message #1798 is a reply to message #1797] Mon, 13 July 2009 08:12 Go to previous messageGo to previous message
Dmitry Onoprienko
Messages: 26
Registered: May 2004
Location: Kansas State University
The output you quoted was not produced by the code you posted - notice that it prints "E Cal Position" instead of "EM Hit Position:".
The posted code should print something like
"EM Hit Position:[D@1ba4a2f"
because you are printing an array object instead of its elements. To obtain the cartesian coordinates of the hit, try
double[] position = hit.getPosition();
double x = position[0];
double y = position[1];
double z = position[2];

- Dima
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Class not found
Next Topic:location of SiD02 data files
Goto Forum:
  


Current Time: Fri Oct 19 09:15:13 Pacific Daylight Time 2018
.:: Contact :: Home ::.

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