A measurement of the b-hadron production cross section in proton-proton collisions at sqrt(s)=7 TeV is presented. The dataset, corresponding to 85 inverse nanobarns, was recorded with the CMS experiment at the LHC using a low-threshold single-muon trigger. Events are selected by the presence of a muon with transverse momentum greater than 6 GeV with respect to the beam direction and pseudorapidity less than 2.1. The transverse momentum of the muon with respect to the closest jet discriminates events containing b hadrons from background. The inclusive b-hadron production cross section is presented as a function of muon transverse momentum and pseudorapidity. The measured total cross section in the kinematic acceptance is sigma(pp to b+X to mu + X') =1.32 +/- 0.01 (stat) +/- 0.30 (syst) +/- 0.15 (lumi) microbarns.
Measurements are reported of differential cross sections for the production of a W boson, which decays into a muon and a neutrino, in association with jets, as a function of several variables, including the transverse momenta (pt) and pseudorapidities of the four leading jets, the scalar sum of jet transverse momenta (HT), and the difference in azimuthal angle between the directions of each jet and the muon. The data sample of pp collisions at a centre-of-mass energy of 7 TeV was collected with the CMS detector at the LHC and corresponds to an integrated luminosity of 5.0 inverse femtobarns. The measured cross sections are compared to predictions from Monte Carlo generators, MADGRAPH + PYTHIA and SHERPA, and to next-to-leading-order calculations from BLACKHAT + SHERPA. The differential cross sections are found to be in agreement with the predictions, apart from the pt distributions of the leading jets at high pt values, the distributions of the HT at high-HT and low jet multiplicity, and the distribution of the difference in azimuthal angle between the leading jet and the muon at low values.