Skip to content

Commit

Permalink
adding helper function to determine number of loops in n-point function
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Mar 22, 2017
1 parent 0e76fe6 commit 1613ba1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions meta/SelfEnergies.m
Expand Up @@ -54,6 +54,14 @@

Begin["`Private`"];

NPointFunctionQ[_SelfEnergies`Tadpole] := True;
NPointFunctionQ[_SelfEnergies`FSSelfEnergy] := True;
NPointFunctionQ[_SelfEnergies`FSHeavySelfEnergy] := True;
NPointFunctionQ[_SelfEnergies`FSHeavyRotatedSelfEnergy] := True;
NPointFunctionQ[_] := False;

NumberOfLoops[(_[_, expr___])?NPointFunctionQ] := Length[{expr}];

GetExpression[selfEnergy_SelfEnergies`FSSelfEnergy, loops_:1] :=
selfEnergy[[1 + loops]];

Expand Down

0 comments on commit 1613ba1

Please sign in to comment.