Skip to content

[PWGCF] FemtoUniverse: Fix hardcoded pion mass, add filling only primary MC pairs#16593

Open
alicja-pp wants to merge 3 commits into
AliceO2Group:masterfrom
alicja-pp:femtouniverse_pairfix
Open

[PWGCF] FemtoUniverse: Fix hardcoded pion mass, add filling only primary MC pairs#16593
alicja-pp wants to merge 3 commits into
AliceO2Group:masterfrom
alicja-pp:femtouniverse_pairfix

Conversation

@alicja-pp

@alicja-pp alicja-pp commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

PWGCF/FemtoUniverse/Core/FemtoUniverseFemtoContainer.h
add option to fill only primary MC pairs in MC histograms

PWGCF/FemtoUniverse/Core/FemtoUniversePairSHCentMultKt.h
fix harcoded setPionPairMass() into setPDGCodes that sets masses according to configurable

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackMultKtExtended.cxx
add configurable confOnlyPrimaryMCPair

[pdg/database] O2 linter error will be fixed in the future, as it is not needed right now, and there were issues with fix

@github-actions github-actions Bot added the pwgcf label Jun 9, 2026
@github-actions github-actions Bot changed the title FemtoUniverse: Fix hardcoded pion mass, add filling only primary MC pairs [PWGCF] FemtoUniverse: Fix hardcoded pion mass, add filling only primary MC pairs Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

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

Comment on lines -250 to 251
mMassOne = o2::constants::physics::MassPiPlus; // FIXME: Get from the PDG service of the common header
mMassTwo = o2::constants::physics::MassPiPlus; // FIXME: Get from the PDG service of the common header
mMassOne = TDatabasePDG::Instance()->GetParticle(pdg1)->Mass();
mMassTwo = TDatabasePDG::Instance()->GetParticle(pdg2)->Mass();
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I already commented in the other PR that this is not allowed. Why are you adding it yet to another place?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried to change this but the solution gave a segmentation fault in this case. I need this function fix quicker. I plan to debug this O2 linter error when possible.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  • You need to pass a pointer to the PDG service plugin from the task.
  • When will you fix it?
  • At least add a FIXME comment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have managed to find other way around it. Is it ok?

@vkucera vkucera marked this pull request as draft June 9, 2026 19:56
@alicja-pp alicja-pp requested a review from vkucera June 9, 2026 20:06
@alicja-pp alicja-pp marked this pull request as ready for review June 9, 2026 20:15
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