Two senior senators said on Tuesday that they had opened an investigation into financial ties between producers of prescription painkillers and pain experts, patient advocacy groups and organizations that set guidelines on how doctors use the drugs. The groups that were sent letters on Tuesday included the American Pain Foundation, a patient advocacy group, and the Pain and Policy Studies Group at the University of Wisconsin.