Commit 82b4fc008338f9c0a24d5a6f4c0ad5389a2c8373

Authored by Jürgen Knödlseder
1 parent 7cb15348

Correct documentation

doc/source/user_manual/modules/model.rst
... ... @@ -34,7 +34,7 @@ methods. The top section shows the abstract methods, the bottom section
34 34 shows the methods that are called for :doxy:`GModelSky` models, i.e. models of
35 35 celestial sources that are folded by the instrument response.
36 36  
37   -For model evaluation, the ``GObservation::model`` method loops over all
  37 +For model evaluation, the :doxy:``GObservation::model`` method loops over all
38 38 models in the :doxy:`GModels` container and calls the
39 39 :doxy:`GModel::eval_gradients` method of each model. For :doxy:`GModelSky` models,
40 40 this invokes an integration over true time, true energy and all possible
... ... @@ -48,7 +48,7 @@ performed by the ``GObservation::npred_temp`` and
48 48 ``GObservation::npred_spec`` methods within the :doxy:`GObservation` class,
49 49 the spatial integral is done within the :doxy:`GModel` class by invoking the
50 50 ``GModel::npred`` method. For :doxy:`GModelSky` models, the integral is
51   -performed by the abstract :doxy:`GResponse::npred` method that needs to be
  51 +performed by the abstract :doxy:`GResponse::nroi` method that needs to be
52 52 implemented for each instrument.
53 53  
54 54 .. _fig_calltree_model:
... ...
doc/source/user_manual/modules/obs.rst
... ... @@ -234,21 +234,6 @@ Equation :eq:`pirf` is used by the :doxy:`GModelSky::eval` and
234 234 :doxy:`GModelSky::eval_gradients` methods for computation of the instrument
235 235 response to a source model (see :ref:`fig_calltree_model`).
236 236  
237   -Dependent on the source model type (point source, radial source, elliptical
238   -source or diffuse source),
239   -:doxy:`GResponse::irf(GEvent&, GSource&, GObservation&)`
240   -calls the methods
241   -:doxy:`GResponse::irf_ptsrc`,
242   -:doxy:`GResponse::irf_radial`,
243   -:doxy:`GResponse::irf_elliptical` or
244   -:doxy:`GResponse::irf_diffuse`.
245   -All these methods have a default implementation in :doxy:`GResponse`, thus
246   -formally the methods do not need to be implemented in the derived class.
247   -However, except for :doxy:`GResponse::irf_ptsrc`, the code for the methods
248   -has not been written so far, hence if an instrument should support models others
249   -than the point source model, the respective methods need to be implemented in
250   -the instrument specific implementation of the :doxy:`GResponse` class.
251   -
252 237 A maximum likelihood analysis of the data generally needs the computation of the
253 238 predicted number of events within the selection region for each source model.
254 239 Selection region means here the range of measured quantities that is used for
... ... @@ -282,17 +267,8 @@ The integration over the region of interest
282 267 .. math::
283 268 N_{\rm ROI} = \int_{\rm ROI} (p', E', t'| d) \, {\rm d}p'
284 269  
285   -is provided by the :doxy:`GResponse::npred(GSource&, GObservation&)` method.
286   -Dependent on the source model type (point source, radial source, elliptical
287   -source or diffuse source), :doxy:`GResponse::npred(GSource&, GObservation&)`
288   -calls the methods ``GResponse::npred_ptsrc``, ``GResponse::npred_radial``,
289   -``GResponse::npred_elliptical`` or ``GResponse::npred_diffuse``.
290   -All these methods have a default implementation in :doxy:`GResponse`, which
291   -all make use of the pure virtual :doxy:`GResponse::npred(GPhoton&, GObservation&)`
292   -method that needs to be implemented by the instrument specific derived
293   -class.
294   -See :ref:`fig_calltree_model` to see how the :doxy:`GResponse::npred` method is
295   -used in response computations of source models.
  270 +is provided by the
  271 +:doxy:`GResponse::nroi(GModelSky&, GEnergy&, GTime&, GObservation&)` method.
296 272  
297 273 A final word about deadtime corrections.
298 274 Deadtime corrections need to be taken into account at the level of the instrument
... ...
include/GXmlElement.hpp
... ... @@ -142,7 +142,7 @@ GXmlNode* GXmlElement::parent(void) const
142 142 /***********************************************************************//**
143 143 * @brief Set parent of XML element
144 144 *
145   - * @param[in] node Parent of XML element.
  145 + * @param[in] parent Parent of XML element.
146 146 ***************************************************************************/
147 147 inline
148 148 void GXmlElement::parent(GXmlNode* parent)
... ...
inst/com/src/GCOMResponse.cpp
... ... @@ -390,7 +390,9 @@ double GCOMResponse::irf(const GEvent& event,
390 390 /***********************************************************************//**
391 391 * @brief Return integral of event probability for a given sky model over ROI
392 392 *
393   - * @param[in] model Incident photon.
  393 + * @param[in] model Sky model.
  394 + * @param[in] obsEng Observed photon energy.
  395 + * @param[in] obsTime Observed photon arrival time.
394 396 * @param[in] obs Observation.
395 397 * @return 0.0
396 398 *
... ...
inst/cta/include/GCTAEdisp2D.hpp
... ... @@ -180,7 +180,7 @@ const GCTAResponseTable& GCTAEdisp2D::table(void) const
180 180 /***********************************************************************//**
181 181 * @brief Set response table
182 182 *
183   - * @param[in] Response table.
  183 + * @param[in] table Response table.
184 184 ***************************************************************************/
185 185 inline
186 186 void GCTAEdisp2D::table(const GCTAResponseTable& table)
... ...
inst/cta/src/GCTAEdisp2D.cpp
... ... @@ -394,7 +394,7 @@ void GCTAEdisp2D::save(const std::string& filename, const bool& clobber) const
394 394 * @brief Simulate energy dispersion
395 395 *
396 396 * @param[in] ran Random number generator.
397   - * @param[in] logE Log10 of the true photon energy (TeV).
  397 + * @param[in] logEsrc Log10 of the true photon energy (TeV).
398 398 * @param[in] theta Offset angle in camera system (rad). Not used.
399 399 * @param[in] phi Azimuth angle in camera system (rad). Not used.
400 400 * @param[in] zenith Zenith angle in Earth system (rad). Not used.
... ...
inst/cta/src/GCTAResponseCube.cpp
... ... @@ -380,7 +380,9 @@ double GCTAResponseCube::irf(const GEvent& event,
380 380 /***********************************************************************//**
381 381 * @brief Return integral of event probability for a given sky model over ROI
382 382 *
383   - * @param[in] model Incident photon.
  383 + * @param[in] model Sky model.
  384 + * @param[in] obsEng Observed photon energy.
  385 + * @param[in] obsTime Observed photon arrival time.
384 386 * @param[in] obs Observation.
385 387 * @return 0.0
386 388 *
... ...
inst/cta/src/GCTAResponseIrf.cpp
... ... @@ -440,9 +440,11 @@ double GCTAResponseIrf::irf(const GEvent& event,
440 440 /***********************************************************************//**
441 441 * @brief Return integral of event probability for a given sky model over ROI
442 442 *
443   - * @param[in] model Incident photon.
  443 + * @param[in] model Sky model.
  444 + * @param[in] obsEng Observed photon energy.
  445 + * @param[in] obsTime Observed photon arrival time.
444 446 * @param[in] obs Observation.
445   - * @return 0.0
  447 + * @return Event probability.
446 448 *
447 449 * @exception GException::feature_not_implemented
448 450 * Method is not implemented.
... ...
inst/cta/src/GCTAResponse_helpers.cpp
... ... @@ -224,33 +224,7 @@ double cta_npsf_kern_rad_azsym::eval(const double& delta)
224 224 /***********************************************************************//**
225 225 * @brief Integration kernel for nedisp() method
226 226 *
227   - * @param[in] logEobs Observed event energy.
228   - * @return Energy dispersion PDF value.
229   - ***************************************************************************/
230   -/*
231   -double cta_nedisp_kern::eval(const double& logEobs)
232   -{
233   - // Get value
234   - double value = (*m_rsp.edisp())(logEobs,
235   - m_logEsrc,
236   - m_theta,
237   - m_phi,
238   - m_zenith,
239   - m_azimuth);
240   -
241   - // Correct for variable substitution
242   - //value *= std::exp(logEobs);
243   -
244   - // Return
245   - return value;
246   -}
247   -*/
248   -
249   -
250   -/***********************************************************************//**
251   - * @brief Integration kernel for nedisp() method
252   - *
253   - * @param[in] logEobs Logarithm of true photon energy.
  227 + * @param[in] logEsrc Logarithm of true photon energy.
254 228 * @return Nroi.
255 229 ***************************************************************************/
256 230 double cta_nroi_kern::eval(const double& logEsrc)
... ...
inst/lat/src/GLATResponse.cpp
... ... @@ -491,7 +491,9 @@ double GLATResponse::irf(const GLATEventBin& event,
491 491 /***********************************************************************//**
492 492 * @brief Return integral of event probability for a given sky model over ROI
493 493 *
494   - * @param[in] model Incident photon.
  494 + * @param[in] model Sky model.
  495 + * @param[in] obsEng Observed photon energy.
  496 + * @param[in] obsTime Observed photon arrival time.
495 497 * @param[in] obs Observation.
496 498 * @return 0.0
497 499 *
... ...
inst/mwl/src/GMWLResponse.cpp
... ... @@ -165,7 +165,9 @@ GMWLResponse* GMWLResponse::clone(void) const
165 165 /***********************************************************************//**
166 166 * @brief Return integral of event probability for a given sky model over ROI
167 167 *
168   - * @param[in] model Incident photon.
  168 + * @param[in] model Sky model.
  169 + * @param[in] obsEng Observed photon energy.
  170 + * @param[in] obsTime Observed photon arrival time.
169 171 * @param[in] obs Observation.
170 172 * @return 0.0
171 173 *
... ...
src/obs/GResponse.cpp
... ... @@ -290,6 +290,8 @@ void GResponse::free_members(void)
290 290 *
291 291 * @param[in] model Sky model.
292 292 * @param[in] event Event.
  293 + * @param[in] srcEng Source energy.
  294 + * @param[in] srcTime Source time.
293 295 * @param[in] obs Observation.
294 296 * @param[in] grad Should model gradients be computed? (default: true)
295 297 * @return Event probability.
... ...