Skip to content

Commit

Permalink
Update tests for new models
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-rodrigues committed Nov 10, 2023
1 parent 6212867 commit 6c6d12e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
14 changes: 14 additions & 0 deletions tests/data/models/model-PVV_CPLH.dec
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# File for testing purposes. Contains a single decay mode with a specific model.

Define Hp 0.49
Define Hz 0.775
Define Hm 0.4
Define pHp 2.50
Define pHz 0.0
Define pHm -0.17

Decay B_s0
1.0 psi(2S) phi PVV_CPLH 0.02 1 Hp pHp Hz pHz Hm pHm;
Enddecay

End
7 changes: 7 additions & 0 deletions tests/data/models/model-PYCONT.dec
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# File for testing purposes. Contains a single decay mode with a specific model.

Decay vpho
1.0 PYCONT;
Enddecay

End
10 changes: 5 additions & 5 deletions tests/dec/test_known_decay_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ def test_lark_file_model_list_consistency():
("LLSW", [0.71, -1.6, -0.5, 2.9]),
("LNUGAMMA", [0.35, 3.0, 5.0, 0.0]),
# ("LQCD", ""),
# ("MELIKHOV", ""),
# ("MELIKHOV", ""), # No dec file available for testing from LHCb or Belle-II
("OMEGA_DALITZ", ""),
("PARTWAVE", [0.0, 0.0, 1.0, 0.0, 0.0, 0.0]),
("PHI_DALITZ", ""),
("PHSPDECAYTIMECUT", [0.29]),
("PHSPFLATLIFETIME", [12]),
("PHSP", ""),
("PI0_DALITZ", ""),
# ("PROPSLPOLE", ""),
# ("PROPSLPOLE", ""), # No dec file available for testing from LHCb or Belle-II
(
"PTO3P",
[
Expand Down Expand Up @@ -257,8 +257,8 @@ def test_lark_file_model_list_consistency():
-2.29,
],
),
# ("PVV_CPLH", ""),
# ("PYCONT", ""),
("PVV_CPLH", [0.02, 1.0, 0.49, 2.50, 0.775, 0.0, 0.4, -0.17]),
("PYCONT", ""),
("PYTHIA", [21]),
# ("SLBKPOLE", ""),
# ("SLL", ""),
Expand Down Expand Up @@ -311,7 +311,7 @@ def test_lark_file_model_list_consistency():

def test_parsing_of_all_known_models_are_tested():
assert (
len(parsed_models) == len(known_decay_models) - 44
len(parsed_models) == len(known_decay_models) - 42
) # subtract for now the number of models not yet tested


Expand Down

0 comments on commit 6c6d12e

Please sign in to comment.