Simulations in the development of the barrel muon chambers for the CMS detector at LHC