Skip to content

Commit

Permalink
refactor chirality sums
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Mar 29, 2017
1 parent 87ad37d commit 24fe25e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions meta/SelfEnergies.m
Expand Up @@ -425,9 +425,11 @@ therefore not be accessed in the form Glu(gO2).
result <> " = " <> ExpressionToString[expr, heads] <> ";\n";

PrepareExpr[{S_,R_,L_}, CConversion`ChiralitySum[t_], vertexRules_] :=
PrepareExpr[S, t, vertexRules] CConversion`PS +
PrepareExpr[R, t, vertexRules] SARAH`PR +
PrepareExpr[L, t, vertexRules] SARAH`PL;
CConversion`RefactorSums[
PrepareExpr[S, t, vertexRules] CConversion`PS +
PrepareExpr[R, t, vertexRules] SARAH`PR +
PrepareExpr[L, t, vertexRules] SARAH`PL
];

PrepareExpr[expr_, _, vertexRules_] :=
expr /.
Expand Down

0 comments on commit 24fe25e

Please sign in to comment.