Commit 2ef5c86906ffe9db6abc55cede5b0b415378d690

Authored by Jürgen Knödlseder
1 parent b8d08ecf

ctbkgcube creates XML files compliant with non-CTA instruments (#2140)

ChangeLog
1 -2017-07-07 1 +2017-07-11
2 2
3 * Bug fix version 1.3.1 released 3 * Bug fix version 1.3.1 released
4 ================================ 4 ================================
5 5
  6 + ctbkgcube creates XML files compliant with non-CTA instruments (#2140)
6 Reduce computation time of ctmodel and parallelize using OpenMP (#2147) 7 Reduce computation time of ctmodel and parallelize using OpenMP (#2147)
7 Fix csresmap significance computation error (#2136) 8 Fix csresmap significance computation error (#2136)
8 Use MigMatrixNoTheta2cut_offaxis and AngularPSF2DEtrue_offaxis histograms to 9 Use MigMatrixNoTheta2cut_offaxis and AngularPSF2DEtrue_offaxis histograms to
1 New Features and Important Changes in ctools 1.3.1 1 New Features and Important Changes in ctools 1.3.1
2 2
3 -7 July 2017 3 +11 July 2017
4 4
5 5
6 Introduction 6 Introduction
@@ -79,7 +79,13 @@ None @@ -79,7 +79,13 @@ None
79 79
80 ctbkgcube - CTA background cube generation 80 ctbkgcube - CTA background cube generation
81 ------------------------------------------ 81 ------------------------------------------
82 -None 82 +The XML file created echoed the instruments that were found in the
  83 +input XML file but this created some problems when using ctmodel on
  84 +data created with ctobssim which always generates CTA data. A clean
  85 +fix of the problem requires a proper handling of the TELESCOP keywords
  86 +in all classes that read event and IRF information. For the moment a
  87 +quick fix is to add all possible VHE instruments as attribute to the
  88 +XML file (#2140).
83 89
84 90
85 ctmapcube - CTA map cube generation 91 ctmapcube - CTA map cube generation
src/ctbkgcube/ctbkgcube.cpp
@@ -315,7 +315,8 @@ void ctbkgcube::run(void) @@ -315,7 +315,8 @@ void ctbkgcube::run(void)
315 model.name("BackgroundModel"); 315 model.name("BackgroundModel");
316 316
317 // Set model instruments 317 // Set model instruments
318 - model.instruments(instruments); 318 + //model.instruments(instruments);
  319 + model.instruments("CTA,HESS,MAGIC,VERITAS"); // Temporary fix for #2140
319 320
320 // Append model to output container 321 // Append model to output container
321 m_outmdl.append(model); 322 m_outmdl.append(model);