Skip to content

Commit

Permalink
Add corresponding test
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-rodrigues committed Jul 21, 2023
1 parent 5c97942 commit 923db49
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions tests/dec/test_dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,36 @@ def test_jetset_definitions_parsing():
}


def test_list_lineshape_definitions():
def test_dict_lineshape_settings():
p = DecFileParser(DIR / "../data/defs-aliases-chargeconj.dec")
p.parse()

assert p.list_lineshape_definitions() == [
assert p.dict_lineshape_settings() == {
"MyK*0": {
"lineshape": "LSNONRELBW",
"BlattWeisskopf": 0.0,
"ChangeMassMin": 0.5,
"ChangeMassMax": 3.5,
},
"MyPhi": {
"lineshape": "LSNONRELBW",
"BlattWeisskopf": 0.0,
"ChangeMassMin": 1.0,
"ChangeMassMax": 1.04,
},
"MyKS0pipi": {
"lineshape": "LSFLAT",
"ChangeMassMin": 1.1,
"ChangeMassMax": 2.4,
},
}


def test_list_lineshapePW_definitions():
p = DecFileParser(DIR / "../data/defs-aliases-chargeconj.dec")
p.parse()

assert p.list_lineshapePW_definitions() == [
(["D_1+", "D*+", "pi0"], 2),
(["D_1+", "D*0", "pi+"], 2),
(["D_1-", "D*-", "pi0"], 2),
Expand Down

0 comments on commit 923db49

Please sign in to comment.