Commit 5ec4a4ec39d488b084d3b376c53f350f00366b0d
1 parent
b2beabe9
Add missing headers
Showing
7 changed files
with
27 additions
and
3 deletions
inst/cta/include/GCTAResponse.hpp
inst/cta/include/GCTAResponseIrf.hpp
inst/cta/src/GCTAResponseCube.cpp
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
inst/mwl/src/GMWLResponse.cpp