Commit 5e271e1d2859c72ea07360300b22ecab94fc81b7
1 parent
435eff52
use new GCTAEventsCube constructor that requires also energy boundaries and GTIs
Showing
1 changed file
with
11 additions
and
1 deletions
src/ctbin/ctbin.cpp
| ... | ... | @@ -271,6 +271,16 @@ void ctbin::run(void) |
| 271 | 271 | |
| 272 | 272 | } // endfor: looped over observations |
| 273 | 273 | |
| 274 | + // Write observation(s) into logger | |
| 275 | + if (logTerse()) { | |
| 276 | + log << std::endl; | |
| 277 | + if (m_obs.size() > 1) | |
| 278 | + log.header1("Binned observations"); | |
| 279 | + else | |
| 280 | + log.header1("Binned observation"); | |
| 281 | + log << m_obs << std::endl; | |
| 282 | + } | |
| 283 | + | |
| 274 | 284 | // Return |
| 275 | 285 | return; |
| 276 | 286 | } |
| ... | ... | @@ -460,7 +470,7 @@ void ctbin::bin_events(GCTAObservation* obs) |
| 460 | 470 | } |
| 461 | 471 | |
| 462 | 472 | // Create events cube from sky map |
| 463 | - GCTAEventCube cube(map); | |
| 473 | + GCTAEventCube cube(map, obs->ebounds(), obs->gti()); | |
| 464 | 474 | |
| 465 | 475 | // Replace event list by event cube in observation |
| 466 | 476 | obs->events(&cube); | ... | ... |