Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify the decay file parsing grammar and implement more get methods for EvtGen keywords + unit tests #351

Merged
merged 11 commits into from
Jul 24, 2023

Conversation

eduardo-rodrigues
Copy link
Member

Hi @henryiii, I realised while working on get methods for recently introduced EvtGen keywords that (1) some rules with more than one possible label cannot presently be disentangled (e.g. "ChangeMassMin" and "ChangeMassMax") and (2) the grammar can anyway be simplified, potentially making things slightly faster.

I will be adding more here but would welcome your opinion on these simplifications in case I am missing something - I think not and this has no cons, just pros. Advance thanks.

@eduardo-rodrigues eduardo-rodrigues added the enhancement New feature or request label Jul 21, 2023
@eduardo-rodrigues eduardo-rodrigues self-assigned this Jul 21, 2023
@eduardo-rodrigues
Copy link
Member Author

FYI @admorris, this is a follow-up atop your recent work. I simplified the grammar overall and also had to make some improvements to be able to disentangle post-parsing between values for "ChangeMassMin" and "ChangeMassMax", for example. Tests have been added.

There's more to come (for example there are no get methods for now for "IncludeBirthFactor" or "IncludeDecayFactor"), but we're getting quite close to being done here.

I will leave this open until Monday or Tuesday in case you manage to have a look and have comments. Otherwise a thumbs-up will do if happy :-).

I hope this proves useful for your LHCb work.

Advance thanks.

@eduardo-rodrigues eduardo-rodrigues changed the title Simplify the decay file parsing grammar Simplify the decay file parsing grammar and implement more get methods for EvtGen keywords + unit tests Jul 21, 2023
@eduardo-rodrigues eduardo-rodrigues merged commit 379fe4a into master Jul 24, 2023
9 checks passed
@eduardo-rodrigues eduardo-rodrigues deleted the eduardo-improve-decfile-grammar branch July 24, 2023 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant