Phototube sensor for active pantograph