Skip to content

Commit

Permalink
Bugfix: Correcting IsMassless[] for ghosts
Browse files Browse the repository at this point in the history
Massless ghosts are not stored in SARAH`Massless[FSEigenstates],
so use mass of the corresponding vector boson

Thanks to Wojciech Kotlarski
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Aug 24, 2018
1 parent a0648e2 commit 8eba912
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions meta/TreeMasses.m
Expand Up @@ -387,7 +387,19 @@
And[IsScalar[sym], And @@ (Parameters`IsRealParameter /@ sym)];

IsMassless[Susyno`LieGroups`conj[sym_], states_:FlexibleSUSY`FSEigenstates] := IsMassless[sym, states];

IsMassless[SARAH`bar[sym_], states_:FlexibleSUSY`FSEigenstates] := IsMassless[sym, states];

(* Massless ghosts are not stored in SARAH`Massless[FSEigenstates],
so use mass of the corresponding vector boson. *)
IsMassless[sym_?IsGhost] :=
Module[{v = Symbol["V" <> StringDrop[ToString[sym],1]]},
Switch[RXi[v],
0, True,
_, IsMassless[v]
]
];

IsMassless[sym_Symbol, states_:FlexibleSUSY`FSEigenstates] :=
MemberQ[SARAH`Massless[states], sym];

Expand Down

0 comments on commit 8eba912

Please sign in to comment.