Skip to content

Commit 4c45eec

Browse files
mgignacclaude
andcommitted
ReconParticleDriver: make longitudinal beam size configurable via setBeamSigmaZ
beamSize[0] (tracking-frame X = detector Z) is the longitudinal width used as the target-constraint vertex covariance. Previously only sigmaX/sigmaY had setters and beamSize[0] stayed hard-wired to 1 um, over-constraining the target-constrained vertex Z and skewing post-fit track momenta. Exposes it as the <beamSigmaZ> steering knob. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent b9ee85f commit 4c45eec

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

recon/src/main/java/org/hps/recon/particle/ReconParticleDriver.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,16 @@ public void setBeamSigmaY(double sigmaY) {
285285
beamSize[2] = sigmaY; // The beamsize array is in the tracking frame HPS Y => TRACK Z
286286
}
287287

288+
/**
289+
* Sets the beam size sigma in the z-direction.
290+
*
291+
* @param sigmaZ - The standard deviation of the beam width in the
292+
* z-direction (beam/target longitudinal spread).
293+
*/
294+
public void setBeamSigmaZ(double sigmaZ) {
295+
beamSize[0] = sigmaZ; // The beamsize array is in the tracking frame HPS Z => TRACK X
296+
}
297+
288298
/**
289299
* Sets the beam position in the z-direction in mm.
290300
*

0 commit comments

Comments
 (0)