Skip to content

Commit

Permalink
annotate some keywords, add 2 missing ones
Browse files Browse the repository at this point in the history
  • Loading branch information
admorris committed Jun 28, 2023
1 parent e9e5cd2 commit 0e1fad8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/decaylanguage/data/decfile.lark
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,33 @@
// or https://github.com/scikit-hep/decaylanguage for details.

start : _NEWLINE* (line _NEWLINE+)+ ("End" _NEWLINE+)?
?line : define | particle_def | pythia_def | jetset_def | ls_def | model_alias | alias | chargeconj | commands | decay | cdecay | copydecay | setlspw | setlsbw | changemasslimit
?line : define | particle_def | pythia_def | jetset_def | ls_def | model_alias | alias | chargeconj | commands | decay | cdecay | copydecay | setlspw | setlsbw | changemasslimit | inc_factor

pythia_def : ("PythiaBothParam" | "PythiaAliasParam") LABEL ":" LABEL "=" (LABEL | SIGNED_NUMBER)

jetset_def : "JetSetPar" LABEL "=" SIGNED_NUMBER

ls_def : ("LSFLAT" | "LSNONRELBW") label
ls_def : ("LSFLAT" | "LSNONRELBW") label // Choose a lineshape for a particle

setlsbw : "BlattWeisskopf" label value
inc_factor: ("IncludeBirthFactor" | "IncludeDecayFactor") label ("yes" | "no) // Presence of the birth/decay factor and form-factor
setlsbw : "BlattWeisskopf" label value // Set Blatt-Weisskopf barrier factor for a lineshape
setlspw : "SetLineshapePW" label label label value
cdecay : "CDecay" label
define : "Define" label value
particle_def: "Particle" label value value
particle_def: "Particle" label value value // Set the mass and width of a paricle (in GeV)
model_alias : "ModelAlias" model_label model
alias : "Alias" label label
chargeconj : "ChargeConj" label label
changemasslimit : ("ChangeMassMin" | "ChangeMassMax") label value
changemasslimit : ("ChangeMassMin" | "ChangeMassMax") label value // Set upper/lower mass cuts on a lineshape
?commands : global_photos
Expand Down

0 comments on commit 0e1fad8

Please sign in to comment.