Skip to content

Conversation

@Steepspace
Copy link
Contributor

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, ...)

  • Updated downscale factors for the calorimeters and mbd by the ratio of nucleons: OO / AuAu
  • Add "OO" as a m_species option
  • Updated RunnumberRange to place temporary first and last for OO as well as update the last runnumber for proton+proton.

TODOs (if applicable)

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

- Updated downscale factors for the calorimeters and mbd by the ratio of nucleons: OO / AuAu
- Add "OO" as a m_species option
- Updated RunnumberRange to place temporary first and last for OO as well as update the last runnumber for proton+proton.
Copilot AI review requested due to automatic review settings January 28, 2026 20:59
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 28, 2026

📝 Walkthrough

Walkthrough

This pull request introduces support for Run-3 Oxygen-Oxygen (O+O) collisions by defining new run number ranges in the run range header and implementing OO-specific detector calibration and downscaling parameters in the calorimeter validation code.

Changes

Cohort / File(s) Summary
Run range definitions
offline/framework/phool/RunnumberRange.h
Added Run-3 O+O run range constants: RUN3OO_FIRST = 82300 and RUN3OO_LAST = 200000. Adjusted RUN3PP_LAST from 100000 to 81668 to separate O+O and p+p run ranges.
Calorimeter validation
offline/QA/Calorimeters/CaloValid.cc
Extended InitRun() to recognize O+O runs via new RUN3OO_FIRST/LAST range check, setting m_species = "OO". Extended process_towers() with new conditional branch for m_species == "OO" applying OO-specific downscale factors (EMCal/IHCAL/OHCAL), MBD downscale, ADC thresholds, and per-tower/per-detector hit thresholds.
✨ Finishing touches
  • 📝 Docstrings were successfully generated.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for Run-3 Oxygen+Oxygen (O+O) collisions in the calorimeter validation framework by implementing run number ranges and appropriate downscale factors.

Changes:

  • Updated RUN3PP_LAST from placeholder (100000) to actual value (81668)
  • Added RUN3OO run number range constants with temporary placeholder values
  • Added O+O species detection in CaloValid::InitRun() based on run number ranges
  • Implemented calorimeter and MBD downscale factors for O+O scaled by nucleon ratio (16/197 relative to Au+Au)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
offline/framework/phool/RunnumberRange.h Defines run number ranges: updated PP endpoint and added temporary OO range constants
offline/QA/Calorimeters/CaloValid.cc Adds OO species detection logic and calculates appropriate downscale factors using nucleon ratio scaling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sphenix-jenkins-ci
Copy link

Build & test report

Report for commit 918880db72cf231d36fa2d565849075c4353c76d:
Jenkins on fire


Automatically generated by sPHENIX Jenkins continuous integration
sPHENIX             jenkins.io

@pinkenburg
Copy link
Contributor

clang-tidy fail is from adding the OO run range in RunumberRange.h

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 29, 2026

Note

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

@pinkenburg pinkenburg merged commit 373f714 into sPHENIX-Collaboration:master Jan 29, 2026
24 of 28 checks passed
coderabbitai bot added a commit that referenced this pull request Jan 29, 2026
Docstrings generation was requested by @pinkenburg.

* #4145 (comment)

The following files were modified:

* `offline/QA/Calorimeters/CaloValid.cc`
* `offline/framework/phool/RunnumberRange.h`
@Steepspace Steepspace deleted the CaloValid-OO-update branch January 29, 2026 16:17
@coderabbitai coderabbitai bot mentioned this pull request Feb 6, 2026
5 tasks
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.

2 participants