Skip to content

ReadoutDataManager: propagate biased/forced MC event weight through trigger - #1188

Open
bloodyyugo wants to merge 1 commit into
masterfrom
weight-propagation
Open

bloodyyugo wants to merge 1 commit into
masterfrom
weight-propagation

Conversation

@bloodyyugo

Copy link
Copy Markdown
Contributor

Buffers the input event's weight (e.g. a forced-conversion weight written by SLIC's ForcedPairConversion plugins) against simulation time, and recovers it by trigger time when a triggered output event is synthesized. BaseLCSimEvent is a brand new EventHeader rather than a copy of the triggering input event, and its own getWeight() is hardcoded to 1.0, so without this the forced-conversion weight was silently lost at the trigger stage. The buffer is pruned of entries older than 500 ns; triggers firing outside that window fall back to the default weight of 1, which is correct for genuine uncorrelated background/pulser triggers.

Needed for the forced pair-conversion WAB biased-sampling MC technique

…riggers

Buffers the input event's weight (e.g. a forced-conversion weight written
by SLIC's ForcedPairConversion plugins) against simulation time, and
recovers it by trigger time when a triggered output event is synthesized.
BaseLCSimEvent is a brand new EventHeader rather than a copy of the
triggering input event, and its own getWeight() is hardcoded to 1.0, so
without this the forced-conversion weight was silently lost at the
trigger stage. The buffer is pruned of entries older than 500 ns;
triggers firing outside that window fall back to the default weight of
1, which is correct for genuine uncorrelated background/pulser triggers.

Needed for the forced pair-conversion WAB biased-sampling MC technique;
independent of the mc_v5.3.1-lowp-bugfix production branch.
@bloodyyugo bloodyyugo self-assigned this Nov 18, 2026

@mgignac mgignac left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Was initially worried the buffer would grow too large, but I see it's cleared periodically.

This branch has not been deployed

No deployments
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