Hi,
With a long history of smoking, chronic cough, pains, and a suspicious mass on chest X ray, we definitely need to quickly rule out lung cancer.
The other possibilities (infection, granuloma, etc) are of less concern, and a detailed examination should be undertaken if cancer is ruled out.
I recommend that you schedule a PET-CT, or at least a CT scan at the earliest.
Good luck and all the best!