From 698513d6953a5778e37659c076e9201e90024224 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Tue, 11 Feb 2014 15:08:11 +0100 Subject: [PATCH] Multiply model value by event size. --- scripts/lsmodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lsmodel.py b/scripts/lsmodel.py index 54666b3..6cfd031 100755 --- a/scripts/lsmodel.py +++ b/scripts/lsmodel.py @@ -164,7 +164,7 @@ class lsmodel(gammalib.GApplication): # Fill cube with model values for i in range(cube.size()): event = cube[i] - value = model.eval(event, obs) + value = model.eval(event, obs) * event.size() event.counts(value) cube[i] = event -- libgit2 0.21.4