Skip to content

Conversation

@MartijnLaarhoven
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 28, 2026 12:50
@github-actions github-actions bot added the pwgcf label Jan 28, 2026
@github-actions github-actions bot changed the title Add files via upload [PWGCF] Add files via upload Jan 28, 2026
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 pull request modifies the eta-dihadron correlation analysis code to change several histograms from recording transverse momentum (pT) values to recording pseudorapidity (eta) values. The changes affect histogram definitions, axis configurations, and data filling calls throughout the analysis.

Changes:

  • Modified histogram definitions from pT to eta axes for trigger histograms (Trig_hist, MCTrig_hist, and solo track monitoring histograms)
  • Updated histogram fill calls from track.pt() to track.eta() in correlation filling functions
  • Changed histogram names from "_pt" to "_eta" for solo track monitoring

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

continue;

registry.fill(HIST("Nch_final_pt"), track1.pt());
registry.fill(HIST("Nch_final_eta"), track1.eta());
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

Changed from filling with track1.pt() to track1.eta(). However, the Nch_final histogram is intended to track particles that pass the pT-based solo track filtering (cfgSoloPtTrack). The histogram should record pT values to align with the pT bin filtering logic implemented in findBiasedTracks.

Suggested change
registry.fill(HIST("Nch_final_eta"), track1.eta());
registry.fill(HIST("Nch_final_eta"), track1.pt());

Copilot uses AI. Check for mistakes.

if (std::find(tracksSkipIndices.begin(), tracksSkipIndices.end(), track1.globalIndex()) != tracksSkipIndices.end()) {
registry.fill(HIST("Solo_tracks_trigger"), track1.pt());
registry.fill(HIST("Solo_tracks_trigger"), track1.eta());
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

The Solo_tracks_trigger histogram now records eta values, but tracks are identified as "solo" based on being alone in their pT bin (see comment on line 637 and findBiasedTracks function). This creates a semantic mismatch where the selection criterion (pT bin) differs from the recorded value (eta). The histogram should record pT values.

Suggested change
registry.fill(HIST("Solo_tracks_trigger"), track1.eta());
registry.fill(HIST("Solo_tracks_trigger"), track1.pt());

Copilot uses AI. Check for mistakes.
if (!cfgSingleSoloPtTrack) { // avoid skipping the second track if we only want one
if (std::find(tracks2SkipIndices.begin(), tracks2SkipIndices.end(), track2.globalIndex()) != tracks2SkipIndices.end()) {
registry.fill(HIST("Solo_tracks_assoc"), track2.pt());
registry.fill(HIST("Solo_tracks_assoc"), track2.eta());
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

The Solo_tracks_assoc histogram now records eta values, but the tracks are identified as "solo" based on being alone in their pT bin (see comment on line 655 and findBiasedTracks function). The histogram should record pT values to match the pT-based selection criterion.

Suggested change
registry.fill(HIST("Solo_tracks_assoc"), track2.eta());
registry.fill(HIST("Solo_tracks_assoc"), track2.pt());

Copilot uses AI. Check for mistakes.
@@ -282,10 +282,10 @@
registry.add("Trig_hist", "", {HistType::kTHnSparseF, {{axisSample, axisVertex, axisEtaTrigger}}});
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

Trig_hist axis changed from axisPt to axisEtaTrigger. This histogram is used by both fillCorrelations (line 538) and fillCorrelationsExcludeSoloTracks (line 639). When cfgSoloPtTrack is enabled, using an eta axis makes it difficult to diagnose the impact of pT-based track filtering (via findBiasedTracks). Consider using axisPt to maintain diagnostic capability for understanding which pT bins are affected by the solo track filtering logic.

Suggested change
registry.add("Trig_hist", "", {HistType::kTHnSparseF, {{axisSample, axisVertex, axisEtaTrigger}}});
registry.add("Trig_hist", "", {HistType::kTHnSparseF, {{axisSample, axisVertex, axisPt}}});

Copilot uses AI. Check for mistakes.
registry.add("MCTrue/MCEta", "MCEta", {HistType::kTH1D, {axisEta}});
registry.add("MCTrue/MCpT", "MCpT", {HistType::kTH1D, {axisPt}});
registry.add("MCTrue/MCTrig_hist", "", {HistType::kTHnSparseF, {{axisSample, axisVertex, axisPt}}});
registry.add("MCTrue/MCTrig_hist", "", {HistType::kTHnSparseF, {{axisSample, axisVertex, axisEtaTrigger}}});
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

MCTrig_hist axis changed from axisPt to axisEtaTrigger. Consider whether maintaining a pT axis would provide better diagnostic information for MC truth studies, particularly for understanding the pT distribution of triggers.

Copilot uses AI. Check for mistakes.
Comment on lines 285 to 288
registry.add("Nch_final_eta", "eta", {HistType::kTH1D, {axisEtaTrigger}});
registry.add("Solo_tracks_trigger", "eta", {HistType::kTH1D, {axisEtaTrigger}});
if (!cfgSingleSoloPtTrack) {
registry.add("Solo_tracks_assoc", "pT", {HistType::kTH1D, {axisEtaAssoc}});
registry.add("Solo_tracks_assoc", "eta", {HistType::kTH1D, {axisEtaAssoc}});
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

The histogram names and axes have been changed from pT to eta, but the underlying logic still operates on pT bins. The cfgSoloPtTrack configuration (line 103) and findBiasedTracks function (line 838-875) identify tracks that are "alone in their pT bin" using axisPt. These histograms should record pT values, not eta values, to match the binning logic. Recording eta values loses the meaningful connection to the pT-based track selection.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant