Repository navigation
Subtract the CDC pedestal in double so a large pedestal gives a negative charge - #1269
Merged
Merged
Conversation
…s the pulse integral DCDCHit_factory_Calib subtracts the pedestal sum from the unsigned pulse integral in unsigned arithmetic, so a pedestal larger than the integral gives a charge near 2^32 (dE about 1 GeV) instead of a negative value, and the "pedestal > signal" skip in DParticleID::GetDCdEdxHits never acts. Now both terms are converted to double before the subtraction. Run 132404 file 001, 19997 events: 84644 of 1507852 CDC hits (5.6%) wrapped before, 0 after. Card: https://pages.jlab.org/halld/auto-hunt/cards/gh-492-cdc-charge-unsigned-pedestal-wrap/ Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Test status for this pull request: SUCCESS Summary: summary.txt Build log: make_auto-hunt_cdc-charge-gh492.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses part of #492 (observation 4).
Change
src/libraries/CDC/DCDCHit_factory_Calib.cc, charge computation: convert the shifted pulse integral and the pedestalsum to double before subtracting. When the pedestal sum exceeds the integral the charge is now negative, and
DParticleID::GetDCdEdxHitsskips the hit (dE <= 0, "pedestal > signal"), as it was written to. Before, the unsignedsubtraction wrapped to about 2^32.
Tested
Run 132404 file 001, first 20000 events (19997 printed), one thread, calibtime=2025-12-24-00-00-01 with the same CCDB copy for both sides, hd_dump compared event by
event: CDC hits with a wrapped charge 84644 of 1507852 (5.6%) before, 0 after; the same 84644 hits have q < 0 after.
The track parameters printed by hd_dump (momentum, position, fit chi-square, FOM) are unchanged; the track dE/dx members written to REST (dEdx CDC, amplitude dE/dx, number of CDC hits used) were not dumped and are expected to change. Particle-ID hypotheses change in 4444 of 19997 events (22%), 15142 of 210264 hypotheses (7.2%);
dE/dx chi-square change median -0.34, mean -16.4. Two identical runs before the fix agree (0 of 19997 events differ).
Not tested
Side effects
CDC hit charge and energy loss of the 5.6% of hits with the pedestal above the integral change from about 1 GeV to
negative values. Particle-ID quantities (dE/dx chi-square, PID chi-square, PID figure of merit) change for 7.2% of
hypotheses. Any reader of
DCDCHit::qthat assumed a positive value now sees negative ones for these hits.Card: https://pages.jlab.org/halld/auto-hunt/cards/gh-492-cdc-charge-unsigned-pedestal-wrap/
Created by Autonomous HallD "auto-hunt" campaign (executed by Claude)
🤖 Generated with Claude Code