coresoftware icon indicating copy to clipboard operation
coresoftware copied to clipboard

CaloCDB: Add ZS Cross-Calibration

Open Steepspace opened this issue 2 months ago • 1 comments

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] 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)
  • [x] 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, ...)

The GenStatus module is updated to include and process Zero Suppression (ZS) Cross-Calibration histograms. Crucially, it now checks if histograms contain data before generating CDB payloads to prevent writing empty trees.

  • Safety/Integrity Check (Major Change): Added a check using ->GetEntries() to all histogram-to-CDB-Tree operations in the analyze method. This ensures a CDB payload file is only created if the corresponding histogram contains data.
  • New Histograms: Added TProfile2D members for CEMC, HCALIN, and HCALOUT ZS cross-calibration: h_CaloFittingQA_*_ZScrosscalib.
  • Read/Merge: Modified readHists to search for and merge these new ZS cross-calibration histograms from input files.
  • Payload Generation: Updated analyze to create new CDB payloads for *_ZSCrossCalib for all three calorimeters (CEMC, HCALIN, HCALOUT) using the field name "ratio".
  • File List: The readHists method now creates a file list (m_CaloValid_list) containing only files with "HIST_CALOQA", and this list is used by emcNoisyTowerFinder in process.
  • CDB Name List: Updated m_cdbName to include the three new ZS cross-calibration payload names: CEMC_ZSCrossCalib, HCALIN_ZSCrossCalib, and HCALOUT_ZSCrossCalib.

TODOs (if applicable)

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

https://github.com/sPHENIX-Collaboration/macros/pull/1217

Steepspace avatar Oct 15 '25 04:10 Steepspace

Build & test report

Report for commit a9490da5de3015de03ce219b7ec8d24b0fb985f3: Jenkins passed


Automatically generated by sPHENIX Jenkins continuous integration sPHENIX             jenkins.io

sphenix-jenkins-ci[bot] avatar Oct 15 '25 10:10 sphenix-jenkins-ci[bot]