From 95b93e02c1ecf747770fb02598f1cf3b56b5c52a Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 4 Aug 2016 10:18:51 +0200 Subject: [PATCH] Added PhotonFlux and EnergyFlux to the list of normalisation parameter for upper limit computation --- src/ctulimit/ctulimit.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ctulimit/ctulimit.cpp b/src/ctulimit/ctulimit.cpp index d038b66..a748d28 100644 --- a/src/ctulimit/ctulimit.cpp +++ b/src/ctulimit/ctulimit.cpp @@ -619,6 +619,12 @@ void ctulimit::get_model_parameter(void) else if (m_skymodel->spectral()->has_par("Prefactor")) { m_model_par = &(m_skymodel->spectral()->operator[]("Prefactor")); } + else if (m_skymodel->spectral()->has_par("PhotonFlux")) { + m_model_par = &(m_skymodel->spectral()->operator[]("PhotonFlux")); + } + else if (m_skymodel->spectral()->has_par("EnergyFlux")) { + m_model_par = &(m_skymodel->spectral()->operator[]("EnergyFlux")); + } else if (m_skymodel->spectral()->has_par("Integral")) { m_model_par = &(m_skymodel->spectral()->operator[]("Integral")); } @@ -627,7 +633,8 @@ void ctulimit::get_model_parameter(void) } else { std::string msg = "Require spectral parameter \"Normalization\", " - "\"Prefactor\", \"Integral\" or \"Value\" for " + "\"Prefactor\", \"PhotonFlux\", \"EnergyFlux\", " + "\"Integral\" or \"Value\" for " "upper limit computation. The specified source " "\""+m_srcname+"\" does not have such a parameter."; throw GException::invalid_value(G_GET_MODEL_PARAMETER, msg); -- libgit2 0.21.4