Grid Computing for LHC and Methods for W Boson Mass Measurement at CMS