This is work in progress ... auto-generation of all detectors
make spline inherit from object (cleaner)