Commit 1d41698db5c2a054038aedc02483b26a5df2301f
1 parent
7057753b
Update default cssens.py parameters.
Showing
2 changed files
with
7 additions
and
7 deletions
cscripts/cssens.par
| ... | ... | @@ -31,9 +31,9 @@ outfile, f, h, sensitivity.dat,,, "Output sensitivity ASCII file" |
| 31 | 31 | offset, r, h, 0.0,,, "Source offset angle (deg)" |
| 32 | 32 | duration, r, a, 180000.0,,, "Effective exposure time (s)" |
| 33 | 33 | rad, r, a, 5.0,,, "Radius of ROI (deg)" |
| 34 | -emin, r, a, 0.030,,, "Lower energy limit (TeV)" | |
| 35 | -emax, r, a, 180.0,,, "Upper energy limit (TeV)" | |
| 36 | -bins, i, a, 20,,, "Number of energy bins for differential sensitivity computation" | |
| 34 | +emin, r, a, 0.03163,,, "Lower energy limit (TeV)" | |
| 35 | +emax, r, a, 125.8925,,, "Upper energy limit (TeV)" | |
| 36 | +bins, i, a, 18,,, "Number of energy bins for differential sensitivity computation" | |
| 37 | 37 | enumbins, i, h, 0,,, "Number of energy bins for binned analysis (0=unbinned)" |
| 38 | 38 | npix, i, h, 200,,, "Number of pixels for binned analysis" |
| 39 | 39 | binsz, r, h, 0.05,,, "Pixel size for binned analysis (deg/pixel)" | ... | ... |
cscripts/cssens.py
| ... | ... | @@ -289,10 +289,10 @@ class cssens(ctools.cscript): |
| 289 | 289 | # Set energy boundaries |
| 290 | 290 | self._set_obs_ebounds(emin, emax) |
| 291 | 291 | |
| 292 | - # Determine energy boundaries from first observation in the container | |
| 293 | - loge = math.log10(math.sqrt(emin.TeV()*emax.TeV())) | |
| 294 | - e_mean = math.pow(10.0, loge) | |
| 295 | - erg_mean = e_mean * tev2erg | |
| 292 | + # Determine mean energy for energy boundary | |
| 293 | + e_mean = math.sqrt(emin.TeV()*emax.TeV()) | |
| 294 | + loge = math.log10(e_mean) | |
| 295 | + erg_mean = e_mean * tev2erg | |
| 296 | 296 | |
| 297 | 297 | # Compute Crab unit. This is the factor with which the Prefactor needs |
| 298 | 298 | # to be multiplied to get 1 Crab. | ... | ... |