Commit 809bc8f6c86ebd2516315ef11b1a24e1cacae138
1 parent
16621160
Add bkgcube parameter
Showing
2 changed files
with
15 additions
and
5 deletions
doc/source/reference_manual/cspull.rst
| ... | ... | @@ -26,9 +26,15 @@ General parameters |
| 26 | 26 | ``outfile [file]`` |
| 27 | 27 | ASCII file containing the individual pull values. |
| 28 | 28 | |
| 29 | -``ntrials [integer]`` | |
| 30 | - Number of samples for generating the pull distribution. | |
| 31 | - | |
| 29 | +``expcube [file]`` | |
| 30 | + Exposure cube file (only needed for stacked analysis). | |
| 31 | + | |
| 32 | +``psfcube [file]`` | |
| 33 | + PSF cube file (only needed for stacked analysis). | |
| 34 | + | |
| 35 | +``bkgcube [file]`` | |
| 36 | + Background cube file (only needed for stacked analysis). | |
| 37 | + | |
| 32 | 38 | ``caldb [string]`` |
| 33 | 39 | Calibration database. |
| 34 | 40 | |
| ... | ... | @@ -38,6 +44,9 @@ General parameters |
| 38 | 44 | ``(edisp = no) [boolean]`` |
| 39 | 45 | Apply energy dispersion to response computation. |
| 40 | 46 | |
| 47 | +``ntrials [integer]`` | |
| 48 | + Number of samples for generating the pull distribution. | |
| 49 | + | |
| 41 | 50 | ``ra [real]`` |
| 42 | 51 | Right Ascension of CTA pointing (J2000, in degrees). |
| 43 | 52 | ... | ... |
scripts/cspull.py
| ... | ... | @@ -98,8 +98,11 @@ class cspull(ctools.cscript): |
| 98 | 98 | pars.append(gammalib.GApplicationPar("outfile","f","a","pull.dat","","","Output file name")) |
| 99 | 99 | pars.append(gammalib.GApplicationPar("expcube","s","a","NONE","","","Exposure cube file (only needed for stacked analysis)")) |
| 100 | 100 | pars.append(gammalib.GApplicationPar("psfcube","s","a","NONE","","","PSF cube file (only needed for stacked analysis)")) |
| 101 | + pars.append(gammalib.GApplicationPar("bkgcube","s","a","NONE","","","Background cube file (only needed for stacked analysis)")) | |
| 101 | 102 | pars.append(gammalib.GApplicationPar("caldb","s","a","dummy","","","Calibration database")) |
| 102 | 103 | pars.append(gammalib.GApplicationPar("irf","s","a","cta_dummy_irf","","","Instrument response function")) |
| 104 | + pars.append(gammalib.GApplicationPar("edisp","b","h","no","","","Apply energy dispersion?")) | |
| 105 | + pars.append(gammalib.GApplicationPar("ntrials","i","a","10","","","Number of trials")) | |
| 103 | 106 | pars.append(gammalib.GApplicationPar("ra","r","a","83.6331","0","360","RA of pointing (deg)")) |
| 104 | 107 | pars.append(gammalib.GApplicationPar("dec","r","a","22.0145","-90","90","Dec of pointing (deg)")) |
| 105 | 108 | pars.append(gammalib.GApplicationPar("emin","r","a","0.1","","","Lower energy limit (TeV)")) |
| ... | ... | @@ -113,8 +116,6 @@ class cspull(ctools.cscript): |
| 113 | 116 | pars.append(gammalib.GApplicationPar("rad","r","h","5.0","0","180","Radius of ROI (deg)")) |
| 114 | 117 | pars.append(gammalib.GApplicationPar("pattern","s","h","single","","","Observation pattern (single/four)")) |
| 115 | 118 | pars.append(gammalib.GApplicationPar("offset","r","h","1.5","","","Observation pattern offset (deg)")) |
| 116 | - pars.append(gammalib.GApplicationPar("ntrials","i","a","10","","","Number of trials")) | |
| 117 | - pars.append(gammalib.GApplicationPar("edisp","b","h","no","","","Apply energy dispersion?")) | |
| 118 | 119 | pars.append_standard() |
| 119 | 120 | pars.append(gammalib.GApplicationPar("logfile","f","h","cspull.log","","","Log filename")) |
| 120 | 121 | pars.save(parfile) | ... | ... |