Commit 94494155597ce9a97652afd2f9a7be4bdc2710d0

Authored by Jürgen Knödlseder
1 parent 24ddfae7

Use non-const event access operator.

Showing 1 changed file with 1 additions and 2 deletions
src/ctobssim/ctobssim.cpp
... ... @@ -364,8 +364,7 @@ void ctobssim::run(void)
364 364 // event list information such as ROI, Good Time Intervals,
365 365 // energy boundaries. This will also keep additional columns
366 366 // in an event list file.
367   - GCTAEventList* events =
368   - static_cast<GCTAEventList*>(const_cast<GEvents*>(obs->events()));
  367 + GCTAEventList* events = static_cast<GCTAEventList*>(obs->events());
369 368 events->remove(0, events->size());
370 369  
371 370 // Work on a clone of the CTA observation. This makes sure that
... ...