diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index 7ce634a..180776b 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -737,8 +737,8 @@ void ctselect::select_events(GCTAObservation* obs, // Make phase selection if (m_select_phase) { - // Check if event_list has phase (m_has_phase) - if (true) { //list->has_phase()) { // gammalib version from branch 1982-add-phase-info necessary + // Check if event_list has phase + if (list->has_phase()) { // Check if phasemax is larger than phasemin if (m_phasemax > m_phasemin) { // Format phase with sufficient accuracy and add to selection string diff --git a/src/ctselect/ctselect.par b/src/ctselect/ctselect.par index ce5d2a9..fa698c5 100644 --- a/src/ctselect/ctselect.par +++ b/src/ctselect/ctselect.par @@ -32,8 +32,8 @@ tmin, r, a, 0.0,,, "Start time (CTA MET in seconds)" tmax, r, a, 0.0,,, "End time (CTA MET in seconds)" emin, r, a, 0.1,,, "Lower energy limit (TeV)" emax, r, a, 100.0,,, "Upper energy limit (TeV)" -phasemin,r, h, 0.0,,, "Lower phase limit" -phasemax,r, h, 0.0,,, "Upper phase limit" +phasemin,r, h, NONE,,, "Lower phase limit" +phasemax,r, h, NONE,,, "Upper phase limit" expr, s, h, "",,, "Additional selection expression" usethres,s, h, "NONE",NONE|DEFAULT|USER,, "Energy threshold type"