Commit 68928c4a53e84acc897ae3c2b3a412a6b358198f
1 parent
51960a58
remove Npred gradient computation method (now done numerically by base class)
Showing
2 changed files
with
0 additions
and
39 deletions
inst/cta/include/GCTAObservation.hpp
| ... | ... | @@ -75,7 +75,6 @@ protected: |
| 75 | 75 | |
| 76 | 76 | // Npred integration methods |
| 77 | 77 | double npred_temp(const GModel& model) const; |
| 78 | - double npred_grad_temp(const GModel& model, int ipar) const; | |
| 79 | 78 | |
| 80 | 79 | // Protected members |
| 81 | 80 | GCTAResponse* m_response; //!< Pointer to instrument response functions | ... | ... |
inst/cta/src/GCTAObservation.cpp
| ... | ... | @@ -814,44 +814,6 @@ double GCTAObservation::npred_temp(const GModel& model) const |
| 814 | 814 | |
| 815 | 815 | /*========================================================================== |
| 816 | 816 | = = |
| 817 | - = Npred gradient integration methods = | |
| 818 | - = = | |
| 819 | - ==========================================================================*/ | |
| 820 | - | |
| 821 | -/***********************************************************************//** | |
| 822 | - * @brief Temporally integrate spatially & spectrally integrated Npred | |
| 823 | - * gradient kernel | |
| 824 | - * | |
| 825 | - * @param[in] model Gamma-ray source model. | |
| 826 | - * @param[in] ipar Parameter index for which gradient should be returned. | |
| 827 | - * | |
| 828 | - * Implement the temporal integration as a simple multiplication by the | |
| 829 | - * elapsed time. This assumes that the source is non-variable during the | |
| 830 | - * observation and that the CTA pointing is stable. | |
| 831 | - ***************************************************************************/ | |
| 832 | -double GCTAObservation::npred_grad_temp(const GModel& model, int ipar) const | |
| 833 | -{ | |
| 834 | - // Initialise result | |
| 835 | - double result = 0.0; | |
| 836 | - | |
| 837 | - // Determine ontime | |
| 838 | - double ontime = m_gti.ontime(); | |
| 839 | - | |
| 840 | - // Integrate only if ontime is positive | |
| 841 | - if (ontime > 0.0) { | |
| 842 | - | |
| 843 | - // Integration is a simple multiplication by the time | |
| 844 | - result = npred_grad_spec(model, ipar, m_gti.tstart()) * ontime; | |
| 845 | - | |
| 846 | - } | |
| 847 | - | |
| 848 | - // Return result | |
| 849 | - return result; | |
| 850 | -} | |
| 851 | - | |
| 852 | - | |
| 853 | -/*========================================================================== | |
| 854 | - = = | |
| 855 | 817 | = Friends = |
| 856 | 818 | = = |
| 857 | 819 | ==========================================================================*/ | ... | ... |