-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add ability for grouped hit requirements to track selector (#2871)
With this PR, `TrackSelector` allows selecting tracks based on minimum hit requirements where hits are required to match a set of geometry ID masks. With this pattern, you can implement **minimum hit requirements per subdetector**, i.e. at least 3 hits in the Pixel detector, etc. It uses `GeometryIdHierarchyMap` to implement the matching, and then combines hit counts from all matches in the map. From python, you would set this up like: ```python measurementCounter = acts.TrackSelector.MeasurementCounter() # At least 2 hits in volume 3 measurementCounter.addCounter([acts.GeometryIdentifier().setVolume(3)], 2) ``` and then set it to `TrackSelectorConfig`: ```python TrackSelectorConfig( pt=(1.0 * u.GeV if ttbar else 0.0, None), absEta=(None, 3.0), loc0=(-4.0 * u.mm, 4.0 * u.mm), nMeasurementsMin=7, nMeasurementsGroupMin=measurementCounter ) ``` You can also select e.g. layer IDs, where due to the OR behavior within a single map, you can model cuts like "at least 2 hits on the two innermost pixel layers".
- Loading branch information
1 parent
345b29e
commit fd39512
Showing
4 changed files
with
266 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters