You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate UPC gap classification to SGSelector with BC range checking
This commit updates the UPC (Ultra-Peripheral Collision) gap determination in taskD0 and taskDplus to use SGSelector from PWGUD/Core instead of custom gap classification logic.
Key changes:
- Migrate from custom GapType enum to SGSelector's TrueGap enum in utilsUpcHf.h
- Update gap type classification to support 7 categories: NoGap (-1), SingleGapA (0), SingleGapC (1), DoubleGap (2), NoUpc (3), TrkOutOfRange (4), BadDoubleGap (5)
- Add SGSelector instance to taskD0 and taskDplus for gap determination
- Add FV0-A amplitude threshold configurable for more comprehensive gap classification
- Remove unused energyThresholdZDC parameter as SGCutParHolder only supports FIT amplitudes
- Add BC range checking via udhelpers::compatibleBCs for improved gap classification accuracy
- Update histogram axes from 3 bins to 7 bins to accommodate new gap types
- Add required library dependencies (SGCutParHolder, EventFilteringUtils) to CMakeLists.txt
Technical details:
- SGSelector uses SGCutParHolder to configure thresholds for FIT detectors (FV0A, FT0A, FT0C)
- BC range checking examines multiple BCs around collision using NDtColl=1000ns and MinNBCs=7
- Gap determination now uses SGSelector::IsSelected() with proper BC range instead of simple threshold comparison
- This aligns PWGHF UPC analysis with standard gap classification used in PWGUD
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
// Fill THnSparse with structure matching histogram axes: [mass, pt, (mlScores if FillMl), rapidity, d0Type, (cent if storeCentrality), (occ, ir if storeOccupancyAndIR), gapType, FT0A, FT0C]
627
628
auto fillTHnData = [&](float mass, int d0Type) {
628
629
// Pre-calculate vector size to avoid reallocations
0 commit comments