Hi Dima,
I have used the baseTrackerHitMC class, which includes an extension to the
TrackerHit interface to return a list of SimTrackerHits that were used in
forming the tracker hit. This has then allowed me to get access to the
geometry etc. of the layer containing the hit.
Would this work for you?
Rich
-----Original Message-----
From: [log in to unmask]
[mailto:[log in to unmask]] On Behalf Of Dmitry
Onoprienko
Sent: Wednesday, December 13, 2006 1:13 PM
To: [log in to unmask]
Subject: Re: Track and TrackerHit interfaces in org.lcsim
Hi Jan,
yes ordinal() does the job, the problem is that if it's not explicit, people
have no way of knowing whether this kind of use was anticipated by framework
designers, and therefore whether code based on it will become broken in the
future.
> Your suggestion to have getParameter accept a name as input is
> unfortunately not going to be implemented easily, because, Track being
> an interface, this would mean that all implementations of Track would
> also have to add this method.
I realize that, but maybe now is a good time to make changes, since Track is
being modified anyway. That was the reason I mentioned those minor issues.
But it's TrackerHit interface that has become a real show-stopper.
Regards,
- Dima.
|