Hi Dima,
please have a look at
http://confluence.slac.stanford.edu/display/~jstrube/A+New+Track
+Interface
as well as org.lcsim.contrib.JanStrube.tracking
I have tried to be good about documenting the code, but there is a
reason why this code is still in my contrib area.
There is a code snippet that shows how to use the new code.
Please feel free to post questions as comments on the page.
Cheers,
Jan
On Tue, 2006-11-28 at 14:32 -0800, Johnson, Tony S. wrote:
> Hi Dima, I'm forwarding your request to the lcd-dev list, because I think what you want already exists (created by Jan I think).
>
> Tony
>
> -----Original Message-----
> From: Dmitry Onoprienko [mailto:[log in to unmask]]
> Sent: Monday, November 27, 2006 11:37 AM
> To: Johnson, Tony S.
> Subject: Request of changes to DocaTrackParameters
>
> Hello Tony,
>
> I'd like to use org.lcsim.mc.fast.tracking.DocaTrackParameters class to initialize a Track from an MCParticle, but for some reason the class and its constructors are not public. Is it possible to change that, or is there another class I should use ? I attach a modified version of DocaTrackParameters.java - besides making the class and its constructors public, the only change is that a call to p.getType().getCharge() is replaced with p.getCharge() (p is hep.physics.particle.Particle) to avoid crashes when getType() does not return a valid type - mainly for nuclear fragments.
>
> Best Regards,
> - Dima.
>
>
--
Jan Fridolf Strube University of Oregon
Stanford Linear Accelerator Center
mailstop 35
bldg 48, rm 244
phone: (650) 926-2913
|