Change const GeometricDet* to GeometricDetPtr; replace explicit declarations to auto;