Skip to content

Commit

Permalink
Bugfix: workaround inconsistently filled SARAH`Masses[EWSB]
Browse files Browse the repository at this point in the history
for massless particles.

In the MDM SARAH`Masses[EWSB] reads

  {0 -> MassGiven[VG], Mass[gG] -> MassGiven[gG],
   Mass[Hp] -> MassGiven[Hp], Mass[Fv[1]] -> MassGiven[Fv[1]],
   Mass[Fv[2]] -> MassGiven[Fv[2]], Mass[Fv[3]] -> MassGiven[Fv[3]],
   0 -> MassGiven[Fc], 0 -> MassGiven[Fg], Mass[Fn] -> MassGiven[Fn],
   0 -> MassGiven[Fc], 0 -> MassGiven[Fg], Mass[Ah] -> MassGiven[Ah],
   ... }

Formerly, we've expected SARAH`Masses[EWSB] to contain replacement
rules of the form

  {Mass[X] -> _, ...}

Due to this expectation, some particles have not been extracted from
this list.

This commit works around this issue by extracting all particles X from
the list elements which are of the form

  Mass[X] -> _     or      _ -> MassGiven[X]
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Jan 7, 2016
1 parent e9b7ac8 commit 9ccdb4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meta/TreeMasses.m
Expand Up @@ -201,7 +201,8 @@
(* Create list of mass eigenstate particles *)
GetParticles[states_:FlexibleSUSY`FSEigenstates] :=
Module[{particles = {}},
particles = Cases[SARAH`Masses[states], HoldPattern[SARAH`Mass[p_] -> _] :> GetHead[p]];
particles = Cases[SARAH`Masses[states],
HoldPattern[SARAH`Mass[p_] -> _] | HoldPattern[_ -> SARAH`MassGiven[p_]] :> GetHead[p]];
particles = particles /.
SARAH`diracSubBack1[SARAH`ALL] /.
SARAH`diracSubBack2[SARAH`ALL];
Expand Down

0 comments on commit 9ccdb4d

Please sign in to comment.