diff --git a/src/ctobssim/ctobssim.cpp b/src/ctobssim/ctobssim.cpp index 4c87a11..a7bc036 100644 --- a/src/ctobssim/ctobssim.cpp +++ b/src/ctobssim/ctobssim.cpp @@ -898,7 +898,7 @@ void ctobssim::simulate_background(GCTAObservation* obs, // If we have a data model that applies to CTA then simulate // events - if (model != NULL && model->isvalid("CTA", "")) { + if (model != NULL && model->is_valid("CTA", "")) { // Get simulated CTA event list. Note that this method // includes the deadtime correction.