Commit 407a8bd5c406d47a7314e6c8ea7356814ea9feae

Authored by knodlseder
1 parent 46feb795

Adapt for new ctlike interface.

The method parameter has been removed, and an infile parameter has been introduced instead of the old evfile and cntmap parameters.
Showing 1 changed file with 3 additions and 5 deletions
test/test_ctools.sh
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 # ========================================================================== 2 # ==========================================================================
3 # This script tests all ctools 3 # This script tests all ctools
4 # 4 #
5 -# Copyright (C) 2011 Jurgen Knodlseder 5 +# Copyright (C) 2011-2012 Jurgen Knodlseder
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
@@ -158,10 +158,9 @@ echo " ok" @@ -158,10 +158,9 @@ echo " ok"
158 # Test ctlike 158 # Test ctlike
159 # =========== 159 # ===========
160 echo -n "Test ctlike: " 160 echo -n "Test ctlike: "
161 -$ctlike cntmap="cntmap.fits" \ 161 +$ctlike infile="cntmap.fits" \
162 srcmdl="data/crab.xml" \ 162 srcmdl="data/crab.xml" \
163 outmdl="results_binned.xml" \ 163 outmdl="results_binned.xml" \
164 - method="BINNED" \  
165 caldb="irf" \ 164 caldb="irf" \
166 irf="kb_E_50h_v3" 165 irf="kb_E_50h_v3"
167 echo -n "." 166 echo -n "."
@@ -172,10 +171,9 @@ else @@ -172,10 +171,9 @@ else
172 echo " results_binned.xml file is not valid" 171 echo " results_binned.xml file is not valid"
173 exit 1 172 exit 1
174 fi 173 fi
175 -$ctlike evfile="selected_events.fits" \ 174 +$ctlike infile="selected_events.fits" \
176 srcmdl="data/crab.xml" \ 175 srcmdl="data/crab.xml" \
177 outmdl="results_unbinned.xml" \ 176 outmdl="results_unbinned.xml" \
178 - method="UNBINNED" \  
179 caldb="irf" \ 177 caldb="irf" \
180 irf="kb_E_50h_v3" 178 irf="kb_E_50h_v3"
181 echo -n "." 179 echo -n "."