Commit 5ec4a4ec39d488b084d3b376c53f350f00366b0d

Authored by Jürgen Knödlseder
1 parent b2beabe9

Add missing headers

inst/cta/include/GCTAResponse.hpp
... ... @@ -37,6 +37,7 @@
37 37 class GPhoton;
38 38 class GEvent;
39 39 class GObservation;
  40 +class GXmlElement;
40 41 class GCTAObservation;
41 42 class GCTAPointing;
42 43 class GCTARoi;
... ...
inst/cta/include/GCTAResponseIrf.hpp
... ... @@ -52,6 +52,7 @@ class GCTAAeff;
52 52 class GCTAPsf;
53 53 class GCTAEdisp;
54 54 class GCTABackground;
  55 +class GRan;
55 56  
56 57  
57 58 /***********************************************************************//**
... ...
inst/cta/src/GCTAResponseCube.cpp
... ... @@ -42,6 +42,7 @@
42 42 #include "GModelSpatialElliptical.hpp"
43 43 #include "GModelSpatialDiffuse.hpp"
44 44 #include "GPhoton.hpp"
  45 +#include "GSource.hpp"
45 46 #include "GEvent.hpp"
46 47 #include "GSkyDir.hpp"
47 48 #include "GEnergy.hpp"
... ...
inst/cta/src/GCTAResponseIrf.cpp
... ... @@ -37,6 +37,7 @@
37 37 #include "GIntegral.hpp"
38 38 #include "GCaldb.hpp"
39 39 #include "GSource.hpp"
  40 +#include "GRan.hpp"
40 41 #include "GModelSky.hpp"
41 42 #include "GModelSpatialPointSource.hpp"
42 43 #include "GModelSpatialRadial.hpp"
... ... @@ -1168,10 +1169,25 @@ double GCTAResponseIrf::nroi_diffuse(const GModelSky& model,
1168 1169 }
1169 1170  
1170 1171  
  1172 +/***********************************************************************//**
  1173 + * @brief Return spatial integral of Instrument Response Function
  1174 + *
  1175 + * @param[in] photon Photon.
  1176 + * @param[in] obsEng Observed event energy.
  1177 + * @param[in] obsTime Observed event time.
  1178 + * @param[in] obs Observation.
  1179 + *
  1180 + * Computes the integral of the instrument response function over the Region
  1181 + * of Interest
  1182 + *
  1183 + * \f[
  1184 + * R(E',t'|p,E,t) = \int_{\rm ROI} R(p',E',t'|p,E,t) dp'
  1185 + * \f]
  1186 + ***************************************************************************/
1171 1187 double GCTAResponseIrf::nroi(const GPhoton& photon,
1172   - const GEnergy& obsEng,
1173   - const GTime& obsTime,
1174   - const GObservation& obs) const
  1188 + const GEnergy& obsEng,
  1189 + const GTime& obsTime,
  1190 + const GObservation& obs) const
1175 1191 {
1176 1192 // Retrieve CTA observation, ROI and pointing
1177 1193 const GCTAObservation& cta = retrieve_obs(G_NPRED, obs);
... ...
inst/lat/include/GLATResponse.hpp
... ... @@ -41,6 +41,9 @@
41 41 #include "GObservation.hpp"
42 42 #include "GResponse.hpp"
43 43  
  44 +/* __ Forward declarations _______________________________________________ */
  45 +class GSource;
  46 +
44 47  
45 48 /***********************************************************************//**
46 49 * @class GLATResponse
... ...
inst/lat/src/GLATResponse.cpp
... ... @@ -35,6 +35,7 @@
35 35 #include "GFits.hpp"
36 36 #include "GTools.hpp"
37 37 #include "GCaldb.hpp"
  38 +#include "GSource.hpp"
38 39 #include "GModelSpatialPointSource.hpp"
39 40 #include "GLATInstDir.hpp"
40 41 #include "GLATResponse.hpp"
... ...
inst/mwl/src/GMWLResponse.cpp
... ... @@ -29,6 +29,7 @@
29 29 #include <config.h>
30 30 #endif
31 31 #include "GTools.hpp"
  32 +#include "GException.hpp"
32 33 #include "GMWLResponse.hpp"
33 34  
34 35 /* __ Method name definitions ____________________________________________ */
... ...