Skip to content

Conversation

@MartijnLaarhoven
Copy link
Contributor

Option to reject parts of the FT0 detectors

MartijnLaarhoven and others added 6 commits December 12, 2025 15:01
Added option to reject the inside or the outside of the detector ring of FT0
Added option to reject the inside or the outside of the detector ring of FT0
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
making the rejection of the rejection of part of the detector more distinctive
@github-actions
Copy link

github-actions bot commented Dec 15, 2025

O2 linter results: ❌ 0 errors, ⚠️ 0 warnings, 🔕 0 disabled

@github-actions github-actions bot changed the title Option to reject parts of the FT0 detectors [PWGCF] Option to reject parts of the FT0 detectors Dec 15, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds configuration options to selectively reject inner or outer ring channels of the FT0 detector by zeroing their amplitudes during analysis. This allows for more granular control over which parts of the FT0A and FT0C detectors contribute to correlation measurements.

Key Changes:

  • Added two boolean configuration options: cfgRejectOutsideDetectors and cfgRejectInsideDetectors to control which FT0 detector rings to reject
  • Introduced DetectorChannels enum defining the channel ID ranges for inner (0-31, 96-143) and outer (32-95, 144-207) rings of FT0A and FT0C detectors
  • Implemented amplitude zeroing logic in the getChannel function that checks channel IDs against the enum ranges and sets amplitude to 0 when rejection conditions are met

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 110 to 111
O2_DEFINE_CONFIGURABLE(cfgRejectOutsideDetectors, bool, false, "Rejection of outside ring events of the FT0 detector")
O2_DEFINE_CONFIGURABLE(cfgRejectInsideDetectors, bool, false, "Rejection of inside ring events of the FT0 detector")
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

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

If both cfgRejectInsideDetectors and cfgRejectOutsideDetectors are enabled simultaneously, all FT0 detector channels will be zeroed out. Consider adding validation to prevent both flags from being true at the same time, or documenting this behavior if it's intentional.

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant