Muon endcap alignment for the CMS experiment and its effect on the search for Z′ bosons in the dimuon channel at LHC Muon endcap alignment for the CMS.