Skip to content

tunable ratio of ccbar and bbbar for embedding - #2435

Open
wuctlby wants to merge 2 commits into
AliceO2Group:masterfrom
wuctlby:pick/ea474557
Open

tunable ratio of ccbar and bbbar for embedding#2435
wuctlby wants to merge 2 commits into
AliceO2Group:masterfrom
wuctlby:pick/ea474557

Conversation

@wuctlby

@wuctlby wuctlby commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Hi @xinyepeng , @gluparel , @stefanopolitano , @zhangbiao-phy , and @mfaggin ,

As discussed in the previous D2H meeting, I implemented a new generator with a tunable ratio of ccbar and bbbar for embedding the HF event into the signal event and the corresponding ini file, as well as the modification of 0.36000 0 2212 311 ### Λc+ -> p K0S 1.59% ==> 1 0.36000 0 2212 310 ### Λc+ -> p K0S 1.59% in the Pythia config file.

Specifically,

  • generator_pythia8_embed_hf.C
    -- new hf_generators enum GapHFRatio to trigger GeneratorPythia8GapTriggeredHF with a given quarkPdgList
    -- BuildQuarkListFromBOverC, which builds the quarkPdgList from bOverCRatio
    -- GeneratorPythia8EmbedHFRatio, which accepts the new parameter bOverCRatio for generating the quarkPdgList. For example, if bOverCRatio=3, the BuildQuarkListFromBOverC will generate a list [5,5,5,4], which will embed the ccbar and bbbar in the order of this list

Please let me know if you have any comments or suggestions. Thanks a lot!

@wuctlby
wuctlby requested a review from a team as a code owner August 20, 2026 06:28
@github-actions

Copy link
Copy Markdown

REQUEST FOR PRODUCTION RELEASES:
To request your PR to be included in production software, please add the corresponding labels called "async-" to your PR. Add the labels directly (if you have the permissions) or add a comment of the form (note that labels are separated by a ",")

+async-label <label1>, <label2>, !<label3> ...

This will add <label1> and <label2> and removes <label3>.

The following labels are available
async-2023-pbpb-apass4
async-2023-pp-apass4
async-2024-pp-apass1
async-2022-pp-apass7
async-2024-pp-cpass0
async-2024-PbPb-apass1
async-2024-ppRef-apass1
async-2024-PbPb-apass2
async-2023-PbPb-apass5

Comment thread MC/config/PWGHF/external/generator/generator_pythia8_embed_hf.C Outdated
4122:addChannel = 1 0.09000 100 102134 211 ### Λc+ -> Lambda(1520) K- 2.20e-3
### Λc+ -> p K0S (36%)
4122:addChannel = 1 0.36000 0 2212 311 ### Λc+ -> p K0S 1.59%
4122:addChannel = 1 0.36000 0 2212 310 ### Λc+ -> p K0S 1.59%

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In principle this should work in pythia, but did you check that this works?
The physics wants that only 4122:addChannel = 1 0.36000 0 2212 311 is correct, since K0, K0bar are the only states with a well-defined strangeness content, that materialize as K0s or K0L only in decay.
Did you check that the correct and expected decays are present, i.e. the fact that we have Lc decaying into p and K0s with K0s decaying in 2 pions?

@wuctlby wuctlby Aug 21, 2026

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.

Yes, I did a private test, and it works.
I checked the decay channels produced in one of the kinematic files, and they look good.
ScreenShot_2026-08-21_184841_592
Then I further checked the decay of produced K0s, as follows:
Found K(S)0 daughters for Lambdac+ decay: 111 (#pi^{0}) 111 (#pi^{0})
Found K(S)0 daughters for Lambdac+ decay: 211 (#pi^{+}) -211 (#pi^{-})

@mfaggin

mfaggin commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

thanks @wuctlby , I left a couple of comments with a few suggestions and a question. Thank you!

Co-authored-by: Mattia Faggin <mattia.faggin@cern.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants