Skip to content

Commit

Permalink
adding helper function to return electric charge properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Mar 13, 2017
1 parent e3d3ed5 commit 0c22fab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions meta/TreeMasses.m
Expand Up @@ -155,6 +155,7 @@
IsSMDownQuark::usage="";
IsSMQuark::usage="";
IsSMParticle::usage="";
IsElectricallyCharged::usage="";
ContainsGoldstone::usage="";

GetSMChargedLeptons::usage="";
Expand All @@ -173,6 +174,8 @@

GetMass::usage="wraps M[] head around particle";

GetElectricCharge::usage="Returns electric charge";

StripGenerators::usage="removes all generators Lam, Sig, fSU2, fSU3
and removes Delta with the given indices";

Expand Down Expand Up @@ -284,6 +287,8 @@
IsChargino[p_] :=
p === Parameters`GetParticleFromDescription["Charginos"];

IsElectricallyCharged[par_] := GetElectricCharge[par] != 0;

ContainsGoldstone[sym_] := MemberQ[GetGoldstoneBosons[] /. a_[{idx__}] :> a, sym];

ContainsGoldstone[sym_[__]] := MemberQ[GetGoldstoneBosons[] /. a_[{idx__}] :> a, sym];
Expand Down Expand Up @@ -441,6 +446,8 @@
GetMass[particle_[idx__]] := GetMass[particle][idx];
GetMass[particle_Symbol] := FlexibleSUSY`M[particle];

GetElectricCharge[par_] := SARAH`getElectricCharge[par];

(* Returns list of pairs {p,v}, where p is the given golstone
boson and v is the corresponding vector boson.
Expand Down

0 comments on commit 0c22fab

Please sign in to comment.