diff --git a/src/ctobssim/ctobssim.cpp b/src/ctobssim/ctobssim.cpp index 7ec7450..77fb0ca 100644 --- a/src/ctobssim/ctobssim.cpp +++ b/src/ctobssim/ctobssim.cpp @@ -364,8 +364,7 @@ void ctobssim::run(void) // event list information such as ROI, Good Time Intervals, // energy boundaries. This will also keep additional columns // in an event list file. - GCTAEventList* events = - static_cast(const_cast(obs->events())); + GCTAEventList* events = static_cast(obs->events()); events->remove(0, events->size()); // Work on a clone of the CTA observation. This makes sure that