Skip to content

changing ADC threshold for time calib#4125

Merged
bseidlit merged 1 commit intosPHENIX-Collaboration:masterfrom
bseidlit:embed
Jan 20, 2026
Merged

changing ADC threshold for time calib#4125
bseidlit merged 1 commit intosPHENIX-Collaboration:masterfrom
bseidlit:embed

Conversation

@bseidlit
Copy link
Copy Markdown
Contributor

@bseidlit bseidlit commented Jan 19, 2026

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work for users)
  • Requiring change in macros repository (Please provide links to the macros pull request in the last section)
  • I am a member of GitHub organization of sPHENIX Collaboration, EIC, or ECCE (contact Chris Pinkenburg to join)

What kind of change does this PR introduce? (Bug fix, feature, ...)

TODOs (if applicable)

Links to other PRs in macros and calibration repositories (if applicable)

PR Summary: ADC Threshold Adjustment for Time Calibration QA

Motivation

This change updates the calorimeter QA analysis (CaloValid) to use distinct ADC thresholds for different detector subsystems during time calibration studies. Previously, raw tower energy thresholds were applied uniformly across all calorimeter systems. This modification enables more precise QA by using detector-specific thresholds optimized for timing analysis.

Key Changes

  • Replaced unified threshold with detector-specific thresholds:

    • adc_threshold_emcal = 70 (for CEMC/EMCal)
    • adc_threshold_hcal = 30 (for HCALIN and HCALOUT)
  • Updated raw tower processing filters in the event loop:

    • CEMC (TOWERS_CEMC): Now uses adc_threshold_emcal for raw time histogram and fraction-above-threshold calculations
    • HCALOUT (TOWERS_HCALOUT): Now uses adc_threshold_hcal for raw time histogram and fraction-above-threshold calculations
    • HCALIN (TOWERS_HCALIN): Now uses adc_threshold_hcal for raw time histogram and fraction-above-threshold calculations
  • Applied to both collision systems: AuAu and non-AuAu data processing paths

Potential Risk Areas

  • QA histogram interpretation: Any downstream analysis relying on calorimeter timing distributions (h_etaphi_time_raw, h_etaphi_fracHitADC) will reflect the new threshold values. Comparisons with historical QA results may show differences.
  • Reconstruction behavior: No changes to actual reconstruction algorithms, only to QA filtering and histogram filling.
  • Performance: Negligible impact; this is a simple threshold adjustment in the QA module.

Notes

  • AI disclaimer: This summary was generated from code analysis. Verify against PR discussions for complete context on physics motivations.
  • No changes to public APIs or exported entities
  • Modification is localized to QA analysis code only

Possible Future Improvements

  • Consider if these threshold values should be configurable parameters rather than hardcoded
  • Document the physics rationale for the specific values (70 for EMCal, 30 for HCal) in code comments
  • Consider energy-dependent thresholds if per-tower calibration quality varies significantly

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 19, 2026

📝 Walkthrough

Walkthrough

The calorimeter validation code introduces detector-specific ADC thresholds, separating HCAL and EMCal threshold variables (30 and 70 respectively) to replace a single threshold previously applied uniformly across all calorimeter subsystems.

Changes

Cohort / File(s) Change Summary
Detector-specific ADC thresholds
offline/QA/Calorimeters/CaloValid.cc
Replaces single adc_threshold with adc_threshold_hcal (30) and adc_threshold_emcal (70); updates conditional energy checks for CEMC, HCALIN, and HCALOUT towers to use appropriate per-subsystem thresholds
✨ Finishing touches
  • 📝 Docstrings were successfully generated.

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 19, 2026

Note

Docstrings generation - SUCCESS
Generated docstrings for this pull request at #4126

coderabbitai bot added a commit that referenced this pull request Jan 19, 2026
Docstrings generation was requested by @blackcathj.

* #4125 (comment)

The following files were modified:

* `offline/QA/Calorimeters/CaloValid.cc`
@sphenix-jenkins-ci
Copy link
Copy Markdown

Build & test report

Report for commit 57a9dd2851c2a1e8a786d54258851b94feb2a060:
Jenkins passed


Automatically generated by sPHENIX Jenkins continuous integration
sPHENIX             jenkins.io

@bseidlit bseidlit merged commit 88933ca into sPHENIX-Collaboration:master Jan 20, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant