What is this tube thing? (Madcatz drum pedal)
That is a reed switch.

It's basically a switch that is closed by a magnet.

In your case, it looks like it has a bit of sleeving over one end, possibly to protect it from vibration, but there is nothing else unusual about it.