aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_gf_simple.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_gf_simple.py')
-rw-r--r--test/test_gf_simple.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/test_gf_simple.py b/test/test_gf_simple.py
new file mode 100644
index 0000000..51460c1
--- /dev/null
+++ b/test/test_gf_simple.py
@@ -0,0 +1,23 @@
+import GolemFitPy as gf
+
+dp = gf.DataPaths()
+npp = gf.NewPhysicsParams()
+sp = gf.SteeringParams(gf.sampleTag.HESE)
+
+sp.quiet = False
+# sp.fastmode = True
+
+golem = gf.GolemFit(dp, sp, npp)
+
+fp = gf.FitParameters(gf.sampleTag.HESE)
+fp.astroFlavorAngle1 = 4./9.
+fp.astroFlavorAngle2 = 0
+
+golem.SetupAsimov(fp)
+
+fp_sh = gf.FitParameters(gf.sampleTag.HESE)
+fp_sh.astroFlavorAngle1 = 0.36
+fp_sh.astroFlavorAngle2 = -0.57
+
+print 'Eval fp = {0}'.format(golem.EvalLLH(fp))
+print 'Eval fp_sh = {0}'.format(golem.EvalLLH(fp_sh))