Skip to content
Snippets Groups Projects
Commit 7592d7b1 authored by Markus Prim's avatar Markus Prim
Browse files

avoid execution when imported

parent eb1a1610
Branches
No related tags found
No related merge requests found
......@@ -274,20 +274,21 @@ def getDiffRatedq2(Mb, Mr, Mt, q2, WCs, FFs):
return outterm * dot(NPFF, RTen)
# Example
WCs = [1.,
-0.2 - 0.1 * 1j,
-0.5 + 0.7 * 1j,
0.7,
0.4 + 0.1 * 1j,
0.1,
-0.3, 0.3,
0.2 + 0.3 * 1j,
0.3 - 0.4 * 1j,
-0.5]
FFs = [0.8, 0.9, 1.0, 0.3, 0.3, 1.1, 0.4, 0.42]
if __name__ == '__main__':
# Example
WCs = [1.,
-0.2 - 0.1 * 1j,
-0.5 + 0.7 * 1j,
0.7,
0.4 + 0.1 * 1j,
0.1,
-0.3, 0.3,
0.2 + 0.3 * 1j,
0.3 - 0.4 * 1j,
-0.5]
FFs = [0.8, 0.9, 1.0, 0.3, 0.3, 1.1, 0.4, 0.42]
print(getDiffRatedq2(5279.32, 775.26, 1776.86, 3000 ** 2, WCs, FFs))
print(getDiffRatedq2(5279.32, 775.26, 1776.86, 3000 ** 2, WCs, FFs))
WCs = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
print(getDiffRatedq2(5279.32, 775.26, 0, 1e-7, WCs, FFs))
WCs = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
print(getDiffRatedq2(5279.32, 775.26, 0, 1e-7, WCs, FFs))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment