Commit 751ac9795377ca429862ab60b336f094b9e8d3d2
1 parent
64863642
added check on has_phase in event list
Showing
2 changed files
with
4 additions
and
4 deletions
src/ctselect/ctselect.cpp
| @@ -737,8 +737,8 @@ void ctselect::select_events(GCTAObservation* obs, | @@ -737,8 +737,8 @@ void ctselect::select_events(GCTAObservation* obs, | ||
| 737 | 737 | ||
| 738 | // Make phase selection | 738 | // Make phase selection |
| 739 | if (m_select_phase) { | 739 | if (m_select_phase) { |
| 740 | - // Check if event_list has phase (m_has_phase) | ||
| 741 | - if (true) { //list->has_phase()) { // gammalib version from branch 1982-add-phase-info necessary | 740 | + // Check if event_list has phase |
| 741 | + if (list->has_phase()) { | ||
| 742 | // Check if phasemax is larger than phasemin | 742 | // Check if phasemax is larger than phasemin |
| 743 | if (m_phasemax > m_phasemin) { | 743 | if (m_phasemax > m_phasemin) { |
| 744 | // Format phase with sufficient accuracy and add to selection string | 744 | // Format phase with sufficient accuracy and add to selection string |
src/ctselect/ctselect.par
| @@ -32,8 +32,8 @@ tmin, r, a, 0.0,,, "Start time (CTA MET in seconds)" | @@ -32,8 +32,8 @@ tmin, r, a, 0.0,,, "Start time (CTA MET in seconds)" | ||
| 32 | tmax, r, a, 0.0,,, "End time (CTA MET in seconds)" | 32 | tmax, r, a, 0.0,,, "End time (CTA MET in seconds)" |
| 33 | emin, r, a, 0.1,,, "Lower energy limit (TeV)" | 33 | emin, r, a, 0.1,,, "Lower energy limit (TeV)" |
| 34 | emax, r, a, 100.0,,, "Upper energy limit (TeV)" | 34 | emax, r, a, 100.0,,, "Upper energy limit (TeV)" |
| 35 | -phasemin,r, h, 0.0,,, "Lower phase limit" | ||
| 36 | -phasemax,r, h, 0.0,,, "Upper phase limit" | 35 | +phasemin,r, h, NONE,,, "Lower phase limit" |
| 36 | +phasemax,r, h, NONE,,, "Upper phase limit" | ||
| 37 | expr, s, h, "",,, "Additional selection expression" | 37 | expr, s, h, "",,, "Additional selection expression" |
| 38 | usethres,s, h, "NONE",NONE|DEFAULT|USER,, "Energy threshold type" | 38 | usethres,s, h, "NONE",NONE|DEFAULT|USER,, "Energy threshold type" |
| 39 | 39 |