In order to assist you we would need some further information;
1. Is the magnet inside or outside of the tube?
2. Is it central or offset from the tube?
3. What is the proximity of the magnet to the tube?
4. What is the strength of the magnet?
5. What is the intended size, thickness and material of the tube?