Skip to content

Conversation

@MartijnLaarhoven
Copy link
Contributor

Adding an option to reject either the inner or the outer ring of both the FT0 detectors individually.

MartijnLaarhoven and others added 14 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
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

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

@github-actions github-actions bot changed the title Adding an option to reject either the inner or the outer ring of the FT0 detectors [PWGCF] Adding an option to reject either the inner or the outer ring of the FT0 detectors Dec 19, 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 either the inner or outer ring channels of the FT0A and FT0C detectors in long-range dihadron correlation analysis. This functionality allows for systematic studies of detector response and helps in understanding contributions from different detector regions.

Key Changes:

  • Added four new boolean configuration options to enable rejection of inner/outer rings for FT0A and FT0C detectors independently
  • Introduced a DetectorChannels enum defining the channel ID ranges for inner and outer rings of both detectors
  • Implemented rejection logic in the getChannel function by setting amplitude to 0 for channels in the rejected rings

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

Comment on lines +243 to +252
enum DetectorChannels {
kFT0AInnerRingMin = 0,
kFT0AInnerRingMax = 31,
kFT0AOuterRingMin = 32,
kFT0AOuterRingMax = 95,
kFT0CInnerRingMin = 96,
kFT0CInnerRingMax = 143,
kFT0COuterRingMin = 144,
kFT0COuterRingMax = 207
};
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

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

The DetectorChannels enum lacks documentation explaining the meaning of these channel ranges. Consider adding a comment block above the enum describing the FT0 detector geometry and how these channel ranges correspond to the inner and outer rings of the FT0A and FT0C detectors.

Copilot uses AI. Check for mistakes.
Comment on lines +110 to +113
O2_DEFINE_CONFIGURABLE(cfgRejectFT0AInside, bool, false, "Rejection of inner ring channels of the FT0A detector")
O2_DEFINE_CONFIGURABLE(cfgRejectFT0AOutside, bool, false, "Rejection of outer ring channels of the FT0A detector")
O2_DEFINE_CONFIGURABLE(cfgRejectFT0CInside, bool, false, "Rejection of inner ring channels of the FT0C detector")
O2_DEFINE_CONFIGURABLE(cfgRejectFT0COutside, bool, false, "Rejection of outer ring channels of the FT0C detector")
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

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

The configuration allows enabling both inner and outer ring rejection simultaneously (e.g., both cfgRejectFT0AInside and cfgRejectFT0AOutside can be true), which would reject all channels of a detector. Consider adding validation logic to prevent this configuration, or document that this is an intentional feature if the use case exists.

Copilot uses AI. Check for mistakes.
@victor-gonzalez
Copy link
Collaborator

Please, don't merge the changes into the master. That pollutes PR history
Rebase them instead and the PR history will be clean

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.

2 participants