From 2ef5c86906ffe9db6abc55cede5b0b415378d690 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Tue, 11 Jul 2017 17:41:17 +0200 Subject: [PATCH] ctbkgcube creates XML files compliant with non-CTA instruments (#2140) --- ChangeLog | 3 ++- NEWS | 10 ++++++++-- src/ctbkgcube/ctbkgcube.cpp | 3 ++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d419591..061ec5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,9 @@ -2017-07-07 +2017-07-11 * Bug fix version 1.3.1 released ================================ + ctbkgcube creates XML files compliant with non-CTA instruments (#2140) Reduce computation time of ctmodel and parallelize using OpenMP (#2147) Fix csresmap significance computation error (#2136) Use MigMatrixNoTheta2cut_offaxis and AngularPSF2DEtrue_offaxis histograms to diff --git a/NEWS b/NEWS index 3aa40b1..1747d08 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,6 @@ New Features and Important Changes in ctools 1.3.1 -7 July 2017 +11 July 2017 Introduction @@ -79,7 +79,13 @@ None ctbkgcube - CTA background cube generation ------------------------------------------ -None +The XML file created echoed the instruments that were found in the +input XML file but this created some problems when using ctmodel on +data created with ctobssim which always generates CTA data. A clean +fix of the problem requires a proper handling of the TELESCOP keywords +in all classes that read event and IRF information. For the moment a +quick fix is to add all possible VHE instruments as attribute to the +XML file (#2140). ctmapcube - CTA map cube generation diff --git a/src/ctbkgcube/ctbkgcube.cpp b/src/ctbkgcube/ctbkgcube.cpp index 9e02ddd..7bb7ea5 100644 --- a/src/ctbkgcube/ctbkgcube.cpp +++ b/src/ctbkgcube/ctbkgcube.cpp @@ -315,7 +315,8 @@ void ctbkgcube::run(void) model.name("BackgroundModel"); // Set model instruments - model.instruments(instruments); + //model.instruments(instruments); + model.instruments("CTA,HESS,MAGIC,VERITAS"); // Temporary fix for #2140 // Append model to output container m_outmdl.append(model); -- libgit2 0.21.4