Commit 2b6f365bbc233694d3374339b49984e578b6f780
1 parent
9c966eb3
Remove unused m_rot member.
Showing
2 changed files
with
5 additions
and
11 deletions
inst/cta/include/GCTAModelCubeBackground.hpp
| ... | ... | @@ -171,7 +171,6 @@ protected: |
| 171 | 171 | GModelSpatial* m_spatial; //!< Spatial model |
| 172 | 172 | GModelSpectral* m_spectral; //!< Spectral model |
| 173 | 173 | GModelTemporal* m_temporal; //!< Temporal model |
| 174 | - GMatrix m_rot; //!< Rotation matrix from model system to skydir | |
| 175 | 174 | |
| 176 | 175 | // Npred cache |
| 177 | 176 | mutable std::vector<std::string> m_npred_names; //!< Model names | ... | ... |
inst/cta/src/GCTAModelCubeBackground.cpp
| ... | ... | @@ -1264,17 +1264,17 @@ void GCTAModelCubeBackground::init_members(void) |
| 1264 | 1264 | ***************************************************************************/ |
| 1265 | 1265 | void GCTAModelCubeBackground::copy_members(const GCTAModelCubeBackground& model) |
| 1266 | 1266 | { |
| 1267 | + // Clone spatial, spectral and temporal model components | |
| 1268 | + m_spatial = (model.m_spatial != NULL) ? model.m_spatial->clone() : NULL; | |
| 1269 | + m_spectral = (model.m_spectral != NULL) ? model.m_spectral->clone() : NULL; | |
| 1270 | + m_temporal = (model.m_temporal != NULL) ? model.m_temporal->clone() : NULL; | |
| 1271 | + | |
| 1267 | 1272 | // Copy cache |
| 1268 | 1273 | m_npred_names = model.m_npred_names; |
| 1269 | 1274 | m_npred_energies = model.m_npred_energies; |
| 1270 | 1275 | m_npred_times = model.m_npred_times; |
| 1271 | 1276 | m_npred_values = model.m_npred_values; |
| 1272 | 1277 | |
| 1273 | - // Clone spatial, spectral and temporal model components | |
| 1274 | - m_spatial = (model.m_spatial != NULL) ? model.m_spatial->clone() : NULL; | |
| 1275 | - m_spectral = (model.m_spectral != NULL) ? model.m_spectral->clone() : NULL; | |
| 1276 | - m_temporal = (model.m_temporal != NULL) ? model.m_temporal->clone() : NULL; | |
| 1277 | - | |
| 1278 | 1278 | // Set parameter pointers |
| 1279 | 1279 | set_pointers(); |
| 1280 | 1280 | |
| ... | ... | @@ -1290,11 +1290,6 @@ void GCTAModelCubeBackground::copy_members(const GCTAModelCubeBackground& model) |
| 1290 | 1290 | ***************************************************************************/ |
| 1291 | 1291 | void GCTAModelCubeBackground::free_members(void) |
| 1292 | 1292 | { |
| 1293 | - m_npred_names.clear(); | |
| 1294 | - m_npred_energies.clear(); | |
| 1295 | - m_npred_times.clear(); | |
| 1296 | - m_npred_values.clear(); | |
| 1297 | - | |
| 1298 | 1293 | // Free memory |
| 1299 | 1294 | if (m_spatial != NULL) delete m_spatial; |
| 1300 | 1295 | if (m_spectral != NULL) delete m_spectral; | ... | ... |