Skip to content

Sync#1

Open
blackcathj wants to merge 3992 commits into
sPHENIX-Test:masterfrom
sPHENIX-Collaboration:master
Open

Sync#1
blackcathj wants to merge 3992 commits into
sPHENIX-Test:masterfrom
sPHENIX-Collaboration:master

Conversation

@blackcathj

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings January 8, 2026 19:57

Copilot AI left a comment

Copy link
Copy Markdown

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 a comprehensive set of calibration and production macros for the sPHENIX experiment, focusing on calorimeter calibrations and tracking production workflows.

  • Adds EMCal pi0 calibration workflows for both year 1 and year 2 runs
  • Adds systematic uncertainty generation tools for calorimeter subsystems
  • Adds trigger and tracking production scripts for run3pp and run3auau configurations

Reviewed changes

Copilot reviewed 161 out of 444 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
calibrations/calo/emcal_calib_year2/* Year 2 EMCal pi0 calibration workflow with condor submission and iterative fitting
calibrations/calo/emcal_calib_year1/* Year 1 EMCal calibration including tower slope and pi0 methods with track-based analysis
calibrations/calo/calo_cdb/* Automated CDB map generation with database querying and condor submission
calibrations/calo/calo_syst/* Systematic uncertainty generation for calorimeter calibrations
TrackingProduction/run3pp/* Run3 pp tracking production with KFParticle reconstruction
TrackingProduction/run3auau/* Run3 AuAu tracking production with endpoint-aware TPC unpacking
TriggerProduction/* Trigger event combining with GL1 synchronization

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

This set of macros runs the EMCal pi0 calibration which is ran over a user defined set of DSTs/runs and produces a C DBTTREE which is the calibration.

doFitAndCalibUpdate.C
This does the fitting of the pi0 peak, compares it to the target mass and generates a new calibration with which will obtain target mass with subsiquant runnings over the data.

Copilot AI Jan 8, 2026

Copy link

Choose a reason for hiding this comment

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

Corrected spelling of 'subsiquant' to 'subsequent'.

Suggested change
This does the fitting of the pi0 peak, compares it to the target mass and generates a new calibration with which will obtain target mass with subsiquant runnings over the data.
This does the fitting of the pi0 peak, compares it to the target mass and generates a new calibration with which will obtain target mass with subsequent runnings over the data.

Copilot uses AI. Check for mistakes.
Comment on lines +7 to +8
This contains the area where the condor jobs are submitted and the multi-step proceedure is executed via run.sh.
To exicute the proceedure do sh run.sh

Copilot AI Jan 8, 2026

Copy link

Choose a reason for hiding this comment

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

Corrected spelling of 'exicute' to 'execute' and 'proceedure' to 'procedure'.

Suggested change
This contains the area where the condor jobs are submitted and the multi-step proceedure is executed via run.sh.
To exicute the proceedure do sh run.sh
This contains the area where the condor jobs are submitted and the multi-step procedure is executed via run.sh.
To execute the procedure do sh run.sh

Copilot uses AI. Check for mistakes.
run.sh contains the logic of how the calibration proceeds.

Fun4All_EMCal.C
This is the main histogram-making Fun4All macro and is run over condor generally. It takes arguements of the path to the calibration file to use, a DST file list, number of events to process, and the iteration number (only usered for output naming purposes).

Copilot AI Jan 8, 2026

Copy link

Choose a reason for hiding this comment

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

Corrected spelling of 'arguements' to 'arguments' and 'usered' to 'used'.

Suggested change
This is the main histogram-making Fun4All macro and is run over condor generally. It takes arguements of the path to the calibration file to use, a DST file list, number of events to process, and the iteration number (only usered for output naming purposes).
This is the main histogram-making Fun4All macro and is run over condor generally. It takes arguments of the path to the calibration file to use, a DST file list, number of events to process, and the iteration number (only used for output naming purposes).

Copilot uses AI. Check for mistakes.
osbornjd and others added 28 commits January 27, 2026 10:53
feat: add silicon duplicate removal
- Default CentralityScale CDB is now updated and fixed.
- No need to use the old reference from 54912.
- Fixed formatting
feat: add data/sim reco flag for tracking workflow
Address Major Issues:
- Validate parsed run number to prevent creating directories at root.
- Harden scratch handling and use proper exit codes.
- Remove unused reference to undefined variable input_calib.
- Validate run-number extraction and add error guards for subprocess operations.
- Unquoted interpolation into shell commands allows injection attacks.
- Add failure detection and timeout to prevent indefinite blocking.
- Fun4All_sEPD.C: Remove unused imports.
- Fixed Comment, should be 2 hours
- Add new run type: run3oo (set as default)
feat: add more realistic beam spot to auau and pp sims
osbornjd and others added 30 commits June 29, 2026 13:44
Add TPC tilt angles to macros, default is zero for all
adjustments for new calowaveformsim
fix: zf macro running on run3pp
chore: pp mode to streaming mode
… tracking geometry before reconstructing data. See the flag "rebuild_tracking_geometry".
…t file name, which, if found, is used instead of the CDB file.

Default behavior is unchanged
Implement TPC survey geometry in macros
comment out set_nsamples from CaloWaveformSim
…, adjust file naming accordingly, and remove unnecessary inputs.
Input gl1rawhitdst for luminosity calculation
Make the rescaling of outlier calib. factors harmless
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.