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

Fix Lb2pKg model #39

Merged
merged 8 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions docs/julia/lb2pkg.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,14 @@ Non-standard lineshapes are used to model resonances that do not conform to a si
The code below defines a new `NonResonant` lineshape, and its deserialization method. In this case this is just a constant.

```{julia}
struct NonResonant <: HadronicLineshapes.AbstractFlexFunc
struct Constant <: HadronicLineshapes.AbstractFlexFunc
m::Float64
end
function (BW::NonResonant)(σ)
@unpack m = BW
1.0
end
function ThreeBodyDecaysIO.dict2instance(::Type{NonResonant}, dict)
(X::Constant)(σ) = 1

function ThreeBodyDecaysIO.dict2instance(::Type{Constant}, dict)
@unpack mass = dict
return NonResonant(mass)
return Constant(mass)
end
```

Expand Down
Loading
Loading