Skip to content

Conversation

@SimonHeybrock
Copy link
Member

@SimonHeybrock SimonHeybrock commented Nov 26, 2025

Not ready, need to iron out issues changing away from McStas workflow and wait for actual file to avoid working around lack of position into and transformation chain.

SimonHeybrock and others added 2 commits November 26, 2025 11:31
Implement workflow using BifrostBraggPeakMonitorWorkflow from essspectroscopy
to produce Q_parallel vs Q_perpendicular histograms from a Bragg peak monitor.

Key implementation details:
- BraggPeakAuxSources requires detector_rotation (a4) and sample_rotation (a3)
  since the monitor is mounted on the detector tank
- Hard-coded EmptyDetector position (1m upstream of sample) until geometry
  exists in NeXus files
- Directly uses assemble_detector_data to bypass McStas simulation chain
  (McStas wraps event_time_offset which is unnecessary for live data)
- Custom _bragg_peak_monitor_ltotal for straight-line flight path approximation
- Fake data generator configured for single-pixel detector

Original prompt: "essspectroscopy recently added a new workflow that we need to
use to implement a 'Bragg-peak monitor Q-map'. Can you find out which workflow
that was, and which version of essspectroscopy we need?"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Add exclude_from_merge parameter to Ev44ToDetectorEventsAdapter to allow
specific detectors to bypass the unified_detector merging. For Bifrost,
bragg_peak_monitor is excluded so it flows as a separate stream for the
Bragg peak Q-map workflow.

Original prompt: "I wonder if the Bifrost-detector-merging (special case
configured in Kafka adapter) will get in the way here?"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
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