From 14a4610799a811dfad5f75b84e62b693770ea02f Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Fri, 19 Oct 2018 17:07:16 +0200 Subject: [PATCH] Remove the event cube bin weighting in ctmodel::fill_cube (#2694) --- src/ctmodel/ctmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ctmodel/ctmodel.cpp b/src/ctmodel/ctmodel.cpp index 159570b..6a43bfb 100755 --- a/src/ctmodel/ctmodel.cpp +++ b/src/ctmodel/ctmodel.cpp @@ -891,6 +891,7 @@ void ctmodel::fill_cube(const GCTAObservation* obs, GModels& models) // Set event bin attributes that are constant for a counts cube bin.time(m_time); bin.ontime(obs->ontime()); + bin.weight(1.0); // Loop over all the spatial bins for (int i = 0; i < npix; ++i) { @@ -926,7 +927,7 @@ void ctmodel::fill_cube(const GCTAObservation* obs, GModels& models) bin.energy(m_energy[iebin]); bin.ewidth(m_ewidth[iebin]); bin.ieng(iebin); - bin.weight(m_cube[ibin]->weight()); + //bin.weight(m_cube[ibin]->weight()); // Bad residuals for H.E.S.S. Crab // Compute model value for cube bin double model = models.eval(bin, *obs) * bin.size(); -- libgit2 0.21.4