Commit 9edf88b4e8ee5375ab8057d56dba8d9ce3a96907

Authored by Jürgen Knödlseder
1 parent 8f77d64a

Fix Phibar layer selection in COMPTEL observations

inst/com/src/GCOMObservation.cpp
@@ -1991,7 +1991,7 @@ void GCOMObservation::get_bgdlixa_phibar_indices(const int& iphibar, @@ -1991,7 +1991,7 @@ void GCOMObservation::get_bgdlixa_phibar_indices(const int& iphibar,
1991 * @brief Check whether bin should be used for likelihood analysis 1991 * @brief Check whether bin should be used for likelihood analysis
1992 * 1992 *
1993 * @param[in] index Event index. 1993 * @param[in] index Event index.
1994 - * @return True if event with specified @p index shold be used. 1994 + * @return True if event with specified @p index should be used.
1995 * 1995 *
1996 * Implements the Phibar event selection. 1996 * Implements the Phibar event selection.
1997 ***************************************************************************/ 1997 ***************************************************************************/
@@ -2014,6 +2014,6 @@ bool GCOMObservation::use_event_for_likelihood(const int& index) const @@ -2014,6 +2014,6 @@ bool GCOMObservation::use_event_for_likelihood(const int& index) const
2014 } 2014 }
2015 } 2015 }
2016 2016
2017 - // Return true  
2018 - return true; 2017 + // Return usage flag
  2018 + return use;
2019 } 2019 }
src/obs/GObservations_likelihood.cpp
@@ -55,9 +55,9 @@ @@ -55,9 +55,9 @@
55 //#define G_USE_HESSIAN 55 //#define G_USE_HESSIAN
56 56
57 /* __ Debug definitions __________________________________________________ */ 57 /* __ Debug definitions __________________________________________________ */
58 -//#define G_EVAL_TIMING //!< Perform optimizer timing (0=no, 1=yes)  
59 -//#define G_EVAL_DEBUG //!< Perform optimizer debugging (0=no, 1=yes)  
60 -//#define G_HESSIAN //!< Debug Hessian computation 58 +//#define G_EVAL_TIMING //!< Perform optimizer timing
  59 +//#define G_EVAL_DEBUG //!< Perform optimizer debugging
  60 +//#define G_HESSIAN //!< Debug Hessian computation
61 61
62 /* __ Prototypes _________________________________________________________ */ 62 /* __ Prototypes _________________________________________________________ */
63 63