Capillary effects on floating cylindrical particles