Skip to content

Commit

Permalink
Test suite to verify all EvtGen models are parsed correctly - take 4 (#…
Browse files Browse the repository at this point in the history
…372)

* Add more decay models and test of them

* More models tested

* Yet more models tested

* Yet more models tested
  • Loading branch information
eduardo-rodrigues authored Sep 8, 2023
1 parent 990cbb1 commit 974e34e
Show file tree
Hide file tree
Showing 12 changed files with 104 additions and 13 deletions.
16 changes: 16 additions & 0 deletions tests/data/models/model-BTOSLLMS.dec
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# File for testing purposes. Contains a single decay mode with a specific model.

Define mu 5.0
Define Nf 5
Define res_swch 0
Define ias 1
Define A 0.88
Define lambda 0.227
Define barrho 0.22
Define bareta 0.34

Decay B_s0
1.0000 phi mu+ mu- BTOSLLMS mu Nf res_swch ias A lambda barrho bareta;
Enddecay

End
7 changes: 7 additions & 0 deletions tests/data/models/model-D0GAMMADALITZ.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 MyD0
1.0 MyK_S0 pi+ pi- D0GAMMADALITZ;
Enddecay

End
7 changes: 7 additions & 0 deletions tests/data/models/model-DToKpienu.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 D+sig
1.0 K- pi+ mu+ nu_mu PHOTOS DToKpienu; # LHCb model
Enddecay

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

Alias My_D_s- D_s-
Alias My_D_s+ D_s+
ChargeConj My_D_s- My_D_s+

Decay My_D_s+
1.0 K+ K- pi+ D_DALITZ;
Enddecay
CDecay My_D_s-

End
7 changes: 7 additions & 0 deletions tests/data/models/model-D_hhhh.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 My_D0
1.0 K+ K- pi+ pi- D_hhhh 11; # model in LHCb for MINT program
Enddecay

End
7 changes: 7 additions & 0 deletions tests/data/models/model-FLATSQDALITZ.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 B+
1.000 pi+ K- K+ FLATSQDALITZ;
Enddecay

End
7 changes: 7 additions & 0 deletions tests/data/models/model-HQET2.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 B0
1.0 D- mu+ nu_mu PHOTOS HQET2 1.18 1.074;
Enddecay

End
7 changes: 7 additions & 0 deletions tests/data/models/model-HQET3.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 B+
0.01325 anti-D*0 tau+ nu_tau PHOTOS HQET3 0.920 1.205 1.21 1.404 0.854;
Enddecay

End
7 changes: 7 additions & 0 deletions tests/data/models/model-PARTWAVE.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 Mypsi(2S)
0.0013 MyJpsi pi0 PARTWAVE 0 0 1 0 0 0.0;
Enddecay

End
7 changes: 7 additions & 0 deletions tests/data/models/model-PHI_DALITZ.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 phi
0.1532 pi+ pi- pi0 PHI_DALITZ;
Enddecay

End
7 changes: 7 additions & 0 deletions tests/data/models/model-THREEBODYPHSP.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 B+
1.000 J/psi omega K+ THREEBODYPHSP 14.00 16.40;
Enddecay

End
26 changes: 13 additions & 13 deletions tests/dec/test_known_decay_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_lark_file_model_list_consistency():
# ("BToDiBaryonlnupQCD", ""),
# ("BTOSLLALI", ""),
# ("BTOSLLBALL", ""),
# ("BTOSLLMS", ""),
("BTOSLLMS", [5.0, 5.0, 0.0, 1.0, 0.88, 0.227, 0.22, 0.34]),
# ("BTOSLLMSEXT", ""),
# ("BTOVLNUBALL", ""),
("BTOXSGAMMA", [2.0]),
Expand All @@ -66,24 +66,24 @@ def test_lark_file_model_list_consistency():
# ("BQTOLLLL", ""),
# ("CB3PI-MPP", ""),
# ("CB3PI-P00", ""),
# ("D_DALITZ", ""),
# ("D_hhhh", ""),
# ("D0GAMMADALITZ", ""),
("D_DALITZ", ""),
("D_hhhh", [11.0]),
("D0GAMMADALITZ", ""),
# ("doKm", ""),
# ("DToKpienu", ""),
("DToKpienu", ""),
("ETAPRIME_DALITZ", [-0.047, -0.069, 0.0, 0.073]),
("ETA_DALITZ", ""),
("ETA_FULLDALITZ", [-1.128, 0.153, 0.0, 0.085, 0.0, 0.173]),
# ("ETA_LLPIPI", ""),
("ETA_PI0DALITZ", [-0.0135]),
# ("FLATQ2", ""),
# ("FLATSQDALITZ", ""),
("FLATSQDALITZ", ""),
# ("FOURBODYPHSP", ""),
# ("GENERIC_DALITZ", ""),
# ("GENERIC_DALITZ", ""), # no dec file currently available for a test
("GOITY_ROBERTS", ""),
# ("HELAMP", ""),
# ("HQET3", ""),
# ("HQET2", ""),
("HQET3", [0.920, 1.205, 1.21, 1.404, 0.854]),
("HQET2", [1.18, 1.074]),
# ("HQET", ""),
# ("imqp", ""),
# ("ISGW2", ""),
Expand All @@ -98,8 +98,8 @@ def test_lark_file_model_list_consistency():
# ("LQCD", ""),
# ("MELIKHOV", ""),
("OMEGA_DALITZ", ""),
# ("PARTWAVE", ""),
# ("PHI_DALITZ", ""),
("PARTWAVE", [0.0, 0.0, 1.0, 0.0, 0.0, 0.0]),
("PHI_DALITZ", ""),
# ("PHSPDECAYTIMECUT", ""),
# ("PHSPFLATLIFETIME", ""),
("PHSP", ""),
Expand Down Expand Up @@ -138,7 +138,7 @@ def test_lark_file_model_list_consistency():
# ("TAUOLA", ""),
("TAUSCALARNU", ""),
("TAUVECTORNU", ""),
# ("THREEBODYPHSP", ""),
("THREEBODYPHSP", [14.00, 16.40]),
("TSS", ""),
# ("TVP", ""),
# ("TVS_PWAVE", ""),
Expand All @@ -160,7 +160,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) - 87
len(parsed_models) == len(known_decay_models) - 76
) # subtract for now the number of models not yet tested


Expand Down

0 comments on commit 974e34e

Please sign in to comment.