Re: Alternative to using org.lcsim "TrackSubdetectorHitNumbers" driver [message #2328 is a reply to message #2325] |
Wed, 27 August 2014 08:12   |
gaede Messages: 233 Registered: January 2004 Location: DESY, Hamburg |
|
|
|
Hi Jan,
Quote:
LCFIPlus makes track selections based on quality cuts in different subdetectors. In SiD we have the convention that we specify subdetectors by identifier. Unfortunately, there is also the option to use an arbitrary number, which is what LCFIPlus chose to do. This is very fragile, and ILD has different "numbers" than SiD, not to mention that they have a TPC and SiD doesn't.
I agree that the way the subdetectorHitNumbers() are currently stored, is not optimal, as it makes assumptions about the order and type of tracking detectors. However, this is a feature of the LCIO EDM and not really of LCFIPlus, which simply uses LCIO.
A possible improvement would be to change the way the subdetectorHitNumbers are stored in LCIO to a map like structure, e.g. a vector of pairs of ints, one being the subDetectorID and one being the number hits from that sub-detector.
This would also have the effect, that no geometry would be needed for filling this information, as it could be done entirely based on the cellID (which has the sub-detectorID)
of the TrackerHit.
-Frank.
|
|
|