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.
|