Commit 9968f5d6ce69ad21ce6cd3eb75ef974282eb424e
1 parent
84435bde
Specovius disable normalization.
Showing
1 changed file
with
10 additions
and
0 deletions
inst/cta/src/GCTAEdisp2D.cpp
| ... | ... | @@ -1256,6 +1256,16 @@ void GCTAEdisp2D::set_max_edisp(void) const |
| 1256 | 1256 | ***************************************************************************/ |
| 1257 | 1257 | void GCTAEdisp2D::normalize_table(void) |
| 1258 | 1258 | { |
| 1259 | +#define SPECOVIUS_DISABLE_NORMALIZATION | |
| 1260 | +#ifdef SPECOVIUS_DISABLE_NORMALIZATION | |
| 1261 | + std::cout<<"WARNING: re-normalization of energy dispersion: disabled"<<std::endl; | |
| 1262 | + std::cout<<" instead normalize_table() scales edisp2d with ln10 instead of re-normalizing it!!"<<std::endl; | |
| 1263 | + m_edisp.scale(m_inx_matrix, gammalib::ln10); | |
| 1264 | + return; | |
| 1265 | +#endif // #ifdef SPECOVIUS_DISABLE_NORMALIZATION | |
| 1266 | + | |
| 1267 | + std::cout<<"re-normalization of energy dispersion: enabled (ctools default)"<<std::endl; | |
| 1268 | + | |
| 1259 | 1269 | // Get axes dimensions |
| 1260 | 1270 | int etrue_size = m_edisp.axis_bins(m_inx_etrue); |
| 1261 | 1271 | int migra_size = m_edisp.axis_bins(m_inx_migra); | ... | ... |