Commit e1b6f032b8f3b0ac74992fdd07fae17331653c5a

Authored by Jürgen Knödlseder
1 parent be4028fd

Use CTA dummy IRF and background model.

test/test_cscripts.sh.in
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 # ========================================================================== 2 # ==========================================================================
3 # This script tests all cscripts that are shipped with ctools 3 # This script tests all cscripts that are shipped with ctools
4 # 4 #
5 -# Copyright (C) 2011-2012 Juergen Knoedlseder 5 +# Copyright (C) 2011-2013 Juergen Knoedlseder
6 # 6 #
7 # This program is free software: you can redistribute it and/or modify 7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by 8 # it under the terms of the GNU General Public License as published by
@@ -56,7 +56,7 @@ chmod +x @abs_top_srcdir@/scripts/cspull.py @@ -56,7 +56,7 @@ chmod +x @abs_top_srcdir@/scripts/cspull.py
56 outfile="pull.dat" \ 56 outfile="pull.dat" \
57 ntrials="3" \ 57 ntrials="3" \
58 caldb="irf" \ 58 caldb="irf" \
59 - irf="kb_E_50h_v3" \ 59 + irf="cta_dummy_irf" \
60 ra=83.6331 \ 60 ra=83.6331 \
61 dec=22.0145 \ 61 dec=22.0145 \
62 emin=0.1 \ 62 emin=0.1 \
@@ -86,10 +86,10 @@ $ECHO " ok" @@ -86,10 +86,10 @@ $ECHO " ok"
86 #@abs_top_srcdir@/scripts/cssens.py \ 86 #@abs_top_srcdir@/scripts/cssens.py \
87 # duration=3600.0 \ 87 # duration=3600.0 \
88 # caldb="irf" \ 88 # caldb="irf" \
89 -# irf="kb_E_50h_v3" \ 89 +# irf="cta_dummy_irf" \
90 # type="point" \ 90 # type="point" \
91 # offset="0.0" \ 91 # offset="0.0" \
92 -# bkg="data/bkg_kb_E_50h_v3.txt" \ 92 +# bkg="data/bkg_dummy.txt" \
93 # rad=5.0 > cssens.log 93 # rad=5.0 > cssens.log
94 #echo -n "." 94 #echo -n "."
95 #if [ -s "sensitivity.dat" ] 95 #if [ -s "sensitivity.dat" ]
@@ -111,10 +111,10 @@ chmod +x @abs_top_srcdir@/scripts/cstsdist.py @@ -111,10 +111,10 @@ chmod +x @abs_top_srcdir@/scripts/cstsdist.py
111 outfile="ts.dat" \ 111 outfile="ts.dat" \
112 ntrials="1" \ 112 ntrials="1" \
113 caldb="irf" \ 113 caldb="irf" \
114 - irf="kb_E_50h_v3" \ 114 + irf="cta_dummy_irf" \
115 type="point" \ 115 type="point" \
116 offset="0.0" \ 116 offset="0.0" \
117 - bkg="data/bkg_kb_E_50h_v3.txt" \ 117 + bkg="data/bkg_dummy.txt" \
118 emin=0.1 \ 118 emin=0.1 \
119 emax=100.0 \ 119 emax=100.0 \
120 enumbins=0 \ 120 enumbins=0 \
test/test_ctools.sh
@@ -64,7 +64,7 @@ $ECHO -n "Test ctobssim: " @@ -64,7 +64,7 @@ $ECHO -n "Test ctobssim: "
64 $ctobssim infile="data/crab.xml" \ 64 $ctobssim infile="data/crab.xml" \
65 outfile="events.fits" \ 65 outfile="events.fits" \
66 caldb="irf" \ 66 caldb="irf" \
67 - irf="kb_E_50h_v3" \ 67 + irf="cta_dummy_irf" \
68 ra=83.63 \ 68 ra=83.63 \
69 dec=22.01 \ 69 dec=22.01 \
70 rad=10.0 \ 70 rad=10.0 \
@@ -145,7 +145,7 @@ $ECHO -n "Test ctmodel: " @@ -145,7 +145,7 @@ $ECHO -n "Test ctmodel: "
145 $ctmodel infile="cntmap.fits" \ 145 $ctmodel infile="cntmap.fits" \
146 outfile="modmap1.fits" \ 146 outfile="modmap1.fits" \
147 caldb="irf" \ 147 caldb="irf" \
148 - irf="kb_E_50h_v3" \ 148 + irf="cta_dummy_irf" \
149 srcmdl="data/crab.xml" 149 srcmdl="data/crab.xml"
150 $ECHO -n "." 150 $ECHO -n "."
151 if [ -s "modmap1.fits" ] 151 if [ -s "modmap1.fits" ]
@@ -160,7 +160,7 @@ fi @@ -160,7 +160,7 @@ fi
160 $ctmodel infile="NONE" \ 160 $ctmodel infile="NONE" \
161 outfile="modmap2.fits" \ 161 outfile="modmap2.fits" \
162 caldb="irf" \ 162 caldb="irf" \
163 - irf="kb_E_50h_v3" \ 163 + irf="cta_dummy_irf" \
164 srcmdl="data/crab.xml" \ 164 srcmdl="data/crab.xml" \
165 ra=83.63 \ 165 ra=83.63 \
166 dec=22.01 \ 166 dec=22.01 \
@@ -219,7 +219,7 @@ $ctlike infile="cntmap.fits" \ @@ -219,7 +219,7 @@ $ctlike infile="cntmap.fits" \
219 srcmdl="data/crab.xml" \ 219 srcmdl="data/crab.xml" \
220 outmdl="results_binned.xml" \ 220 outmdl="results_binned.xml" \
221 caldb="irf" \ 221 caldb="irf" \
222 - irf="kb_E_50h_v3" 222 + irf="cta_dummy_irf"
223 $ECHO -n "." 223 $ECHO -n "."
224 if [ -s "results_binned.xml" ] 224 if [ -s "results_binned.xml" ]
225 then 225 then
@@ -232,7 +232,7 @@ $ctlike infile="selected_events.fits" \ @@ -232,7 +232,7 @@ $ctlike infile="selected_events.fits" \
232 srcmdl="data/crab.xml" \ 232 srcmdl="data/crab.xml" \
233 outmdl="results_unbinned.xml" \ 233 outmdl="results_unbinned.xml" \
234 caldb="irf" \ 234 caldb="irf" \
235 - irf="kb_E_50h_v3" 235 + irf="cta_dummy_irf"
236 $ECHO -n "." 236 $ECHO -n "."
237 if [ -s "results_unbinned.xml" ] 237 if [ -s "results_unbinned.xml" ]
238 then 238 then
test/test_python.py
@@ -44,7 +44,7 @@ def pipeline_v1(): @@ -44,7 +44,7 @@ def pipeline_v1():
44 selected_events_name = "selected_events.fits" 44 selected_events_name = "selected_events.fits"
45 result_name = "results.xml" 45 result_name = "results.xml"
46 caldb = "irf" 46 caldb = "irf"
47 - irf = "kb_E_50h_v3" 47 + irf = "cta_dummy_irf"
48 ra = 83.63 48 ra = 83.63
49 dec = 22.01 49 dec = 22.01
50 rad_sim = 10.0 50 rad_sim = 10.0
@@ -119,7 +119,7 @@ def pipeline_v2(): @@ -119,7 +119,7 @@ def pipeline_v2():
119 # Set script parameters 119 # Set script parameters
120 model_name = "data/crab.xml" 120 model_name = "data/crab.xml"
121 caldb = "irf" 121 caldb = "irf"
122 - irf = "kb_E_50h_v3" 122 + irf = "cta_dummy_irf"
123 ra = 83.63 123 ra = 83.63
124 dec = 22.01 124 dec = 22.01
125 rad_sim = 10.0 125 rad_sim = 10.0