Skip to content

[PWGCF] Flow for Phi meson using generic framework#9406

Merged
ktf merged 14 commits intoAliceO2Group:masterfrom
Preet-Bhanjan:master
Jan 21, 2025
Merged

[PWGCF] Flow for Phi meson using generic framework#9406
ktf merged 14 commits intoAliceO2Group:masterfrom
Preet-Bhanjan:master

Conversation

@Preet-Bhanjan
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the pwgcf label Jan 20, 2025
@github-actions github-actions bot changed the title PWGCF: Flow for Phi meson using generic framework [PWGCF] Flow for Phi meson using generic framework Jan 20, 2025
Preet-Bhanjan added a commit to Preet-Bhanjan/O2Physics that referenced this pull request Jan 20, 2025
[PWGCF] Please consider the following formatting changes to AliceO2Group#9406
[PWGCF] Please consider the following formatting changes to AliceO2Group#9406
@Preet-Bhanjan
Copy link
Contributor Author

The O2linter errors in the CMakeLists are from other contributors

Copy link
Collaborator

@victor-gonzalez victor-gonzalez left a comment

Choose a reason for hiding this comment

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

Please consider my comment regarding naming the executable task and affected instances

PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::GFWCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(flow-pbpb-reso
Copy link
Collaborator

@victor-gonzalez victor-gonzalez Jan 20, 2025

Choose a reason for hiding this comment

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

There is nothing in the analysis really linked to PbPb so please, remove PbPb from the task executable name and preferably use resonances-gfw-flow if you are going to rely on GFW or resonances-flow if not, as task name. Modify accordingly the source file name and the task struct name

@victor-gonzalez
Copy link
Collaborator

victor-gonzalez commented Jan 20, 2025

The O2linter errors in the CMakeLists are from other contributors

No problem with that

@Preet-Bhanjan
Copy link
Contributor Author

I have implemented the suggested changes

Comment on lines +300 to +332
if (!selectionTrack(track2)) {
continue;
}
// PID check
if (ispTdepPID && !selectionPIDpTdependent(track2)) {
continue;
}
if (!ispTdepPID && !selectionPID(track2)) {
continue;
}
auto track2ID = track2.globalIndex();
if (track2ID == track1ID) {
continue;
}
if (!selectionPair(track1, track2)) {
continue;
}
if (removefaketrack && isFakeKaon(track1)) {
continue;
}
if (removefaketrack && isFakeKaon(track2)) {
continue;
}
histos.fill(HIST("KaminusTPC"), track2.pt(), track2.tpcNSigmaKa());
histos.fill(HIST("KaminusTOF"), track2.pt(), track2.tofNSigmaKa());
kaonPlus = ROOT::Math::PxPyPzMVector(track1.px(), track1.py(), track1.pz(), massKaPlus);
kaonminus = ROOT::Math::PxPyPzMVector(track2.px(), track2.py(), track2.pz(), massKaPlus);
phiMom = kaonPlus + kaonminus;
if (std::abs(phiMom.Rapidity()) < confRapidity) {
histos.fill(HIST("hPhiMass_sparse"), phiMom.M(), phiMom.Pt(), cent);
histos.fill(HIST("hPhi"), phiMom.Phi());
histos.fill(HIST("hEta"), phiMom.Eta());
}
Copy link
Collaborator

@victor-gonzalez victor-gonzalez Jan 20, 2025

Choose a reason for hiding this comment

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

Consider that this processing for track2 is repeated again for each track1
This has an evident effect on the singles histograms content, but also in the execution efficiency

  • each track is selected n times
  • each track is identified n times
  • each track is checked as fake kaon 2n times

with n the number of K plus?
Have it in mind if you have execution warnings in hyperloop

Copy link
Collaborator

@victor-gonzalez victor-gonzalez left a comment

Choose a reason for hiding this comment

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

I approve it for the time being but have a look at my comment regarding execution efficiency and unexpected effects in singles distributions

@victor-gonzalez victor-gonzalez enabled auto-merge (squash) January 20, 2025 19:03
@ktf
Copy link
Member

ktf commented Jan 21, 2025

Please fix the linter in a subsequent PR.

@ktf ktf disabled auto-merge January 21, 2025 12:55
@ktf ktf merged commit ee7ecd7 into AliceO2Group:master Jan 21, 2025
12 of 14 checks passed
smaff92 pushed a commit to smaff92/O2Physics that referenced this pull request Feb 17, 2025
Co-authored-by: Preet Pati <preet@preet-2.local>
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
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.

4 participants