Magnetic field sensors for C-groove cylinders