Hello Rich,
I also use custom TrackerHit implementation that adds geometry accessors
like getLayer(), getSubdetector(), etc., and it all works fine as long as
I'm dealing with objects created by my own code. The problem is that now I
need to write classes that would work with hits coming from other people's
track finders, and I do not know in advance what TrackerHit implementations
they will be using, so I can only rely on TrackerHit API.
- Dima.
----- Original Message -----
From: "Richard Partridge" <[log in to unmask]>
To: "'Dmitry Onoprienko'" <[log in to unmask]>;
<[log in to unmask]>
Sent: Wednesday, December 13, 2006 3:20 PM
Subject: RE: Track and TrackerHit interfaces in org.lcsim
> 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
|