Add filtering based on pixel grouping#679
Open
dlcaballero16 wants to merge 2 commits intonextfrom
Open
Conversation
added filtering based on straddling
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #679 +/- ##
=======================================
Coverage 96.35% 96.35%
=======================================
Files 77 77
Lines 7096 7133 +37
=======================================
+ Hits 6837 6873 +36
- Misses 259 260 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of work
This adds the ability to filter out "bad" records meaning records that have pixel grouping that overlap East and West bank detectors.
Explanation of work
A new algorithm was added called DetectorPanelStraddleCheck that checks if a given GroupingWorkspace is "invalid" meaning that if any banks are both in the East and West panel. This saves on performance as opposed to checking each individual pixel. Two filter functions were then added to DataFactoryService where the inputs are a list of records, run number, if using liteMode or not, that then returns a list of invalid groupings for both calibration and normalization records.
To test
Dev testing
See CIS testing.
CIS testing
Setup
Make sure to run a few diffcals and normalizations of both lite and non-lite mode and that have groupings of All and either Column or Bank. So at a minimum you should have 8 records. I tested using run 58882.
Testing
After generating all the records, run the new CIS test script, detector_panel_straddle_check.py. There are three user settings near the top: runNumber, useLiteMode, and recordType. Mess around with the inputs and make sure the outputs make sense. If you only generated the bare minimum, you should get output saying that the All grouping is invalid for whatever input you set for the script. It should only be one grouping since it only checks the lite mode setting and the specific record type.
Link to EWM item
EWM#16082
Verification
Acceptance Criteria
This list is for ease of reference, and does not replace reading the EWM story as part of the review. Verify this list matches the EWM story before reviewing.