The production of $B^{\pm}$ mesons is studied in $pp$ collisions at centreofmass energies of 7 and 13 TeV, using $B^{\pm}\rightarrow J/\psi K^{\pm}$ decays and data samples corresponding to 1.0 fb$^{1}$ and 0.3 fb$^{1}$, respectively. The production crosssections summed over both charges and integrated over the transverse momentum range $0<p_{\text{T}}< 40$ GeV/$c$ and the rapidity range $2.0<y<4.5$ are measured to be $\sigma(pp \rightarrow B^{\pm} X, \sqrt{s} = \text{7 TeV}) = 43.0 \pm 0.2 \pm 2.5 \pm 1.7\mu b,$ $\sigma(pp \rightarrow B^{\pm} X, \sqrt{s} = \text{13 TeV}) = 86.6 \pm 0.5 \pm 5.4 \pm 3.4\mu b,$ where the first uncertainties are statistical, the second are systematic, and the third are due to the limited knowledge of the $B^{\pm}\rightarrow J/\psi K^{\pm}$ branching fraction. The ratio of the crosssection at 13 TeV to that at 7 TeV is determined to be $2.02\pm0.02\text{(stat)}\pm0.12\text{(syst)}$. Differential crosssections are also reported as functions of $p_{\text{T}}$ and $y$. All results are in agreement with theoretical calculations based on the stateofart fixed nexttoleading order quantum chromodynamics.
Invariant mass distributions of $ B ^\pm$ candidates in the range ${3.5< p_{\mathrm{ T}} <4.0 {\mathrm{ Ge V /}c} }$ and ${2.5<y<3.0}$ using (left) $7\mathrm{ Te V} $ and (right) $13\mathrm{ Te V} $ data. The black points are the number of selected candidates in each bin, the blue curve represents the fit result, the reddotted line represents the $ B ^\pm \rightarrow { J \mskip 3mu/\mskip 2mu\psi \mskip 2mu} K ^\pm $ signal, and the green and browndashed lines are contributions from the combinatorial and the Cabibbosuppressed backgrounds. The Cabibbosuppressed background contribution $ B ^\pm \rightarrow { J \mskip 3mu/\mskip 2mu\psi \mskip 2mu} \pi ^\pm $ is only just visible at masses above the signal peak. 
Fig1a.pdf [83 KiB] HiDef png [295 KiB] Thumbnail [288 KiB] *.C file 

Fig1b.pdf [82 KiB] HiDef png [284 KiB] Thumbnail [276 KiB] *.C file 

Measured $ B ^\pm$ doubledifferential production crosssections at (top) $7\mathrm{ Te V} $ and (bottom) $13\mathrm{ Te V} $ as a function of $p_{\mathrm{ T}}$ and $y$. The black points represent the measured values, and the cyan bands are the FONLL predictions [28]. Each set of measurements and predictions in a given rapidity bin is offset by a multiplicative factor $10^{m}$, where the offset factor is shown after the rapidity range. The error bars include both the statistical and systematic uncertainties. 
Fig2a.pdf [66 KiB] HiDef png [209 KiB] Thumbnail [225 KiB] *.C file 

Fig2b.pdf [69 KiB] HiDef png [208 KiB] Thumbnail [227 KiB] *.C file 

Measured $ B ^\pm$ differential crosssection at $7\mathrm{ Te V} $ as a function of (left) $p_{\mathrm{ T}}$ or (right) $y$. The black points represent the measured values, the bluedashed line and cyan band represent the central values and uncertainties of the FONLL prediction [28]. The error bars include both the statistical and systematic uncertainties. 
Fig3a.pdf [65 KiB] HiDef png [171 KiB] Thumbnail [167 KiB] *.C file 

Fig3b.pdf [61 KiB] HiDef png [190 KiB] Thumbnail [198 KiB] *.C file 

Measured $ B ^\pm$ differential crosssection at $13\mathrm{ Te V} $ as a function of (left) $p_{\mathrm{ T}}$ or (right) $y$. The black points represent the measured values, the bluedashed line and cyan band represent the central values and uncertainties of the FONLL prediction [28]. The error bars include both the statistical and systematic uncertainties. 
Fig4a.pdf [65 KiB] HiDef png [177 KiB] Thumbnail [170 KiB] *.C file 

Fig4b.pdf [61 KiB] HiDef png [228 KiB] Thumbnail [241 KiB] *.C file 

Ratio of the $ B ^\pm$ crosssection at $13\mathrm{ Te V} $ to that at $7\mathrm{ Te V} $ as a function of (left) $p_{\mathrm{ T}}$ or (right) $y$. The black points represent the measured values, the bluedashed line and cyan band represent the central values and uncertainties of the FONLL prediction [28]. 
Fig5a.pdf [53 KiB] HiDef png [181 KiB] Thumbnail [178 KiB] *.C file 

Fig5b.pdf [41 KiB] HiDef png [145 KiB] Thumbnail [152 KiB] *.C file 

Measured acceptance efficiency of $ B ^\pm$ events at (left) $7\mathrm{ Te V} $ and (right) $13\mathrm{ Te V} $ as a function of $p_{\mathrm{ T}}$ in different $y$ regions. 
Fig6a.pdf [61 KiB] HiDef png [195 KiB] Thumbnail [172 KiB] *.C file 

Fig6b.pdf [61 KiB] HiDef png [192 KiB] Thumbnail [171 KiB] *.C file 

Animated gif made out of all figures. 
PAPER2017037.gif Thumbnail 
Summary of relative systematic uncertainties on the integrated production crosssections at {$\sqrt{s}=$ 7} and $13\mathrm{ Te V} $, and the ratio of the crosssections $R(13\mathrm{ Te V} /7\mathrm{ Te V} )$. 
Table_1.pdf [27 KiB] HiDef png [115 KiB] Thumbnail [57 KiB] tex code 

Measured $\varepsilon_{\text{tot}}$ of $ B ^\pm$ events at $7\mathrm{ Te V} $, in the bins of $ B ^\pm$ $p_{\mathrm{ T}}$ and $y$. The efficiencies and uncertainties are in percent. 
Table_2.pdf [35 KiB] HiDef png [247 KiB] Thumbnail [126 KiB] tex code 

Measured $\varepsilon_{\text{tot}}$ of $ B ^\pm$ events at $13\mathrm{ Te V} $, in the bins of $ B ^\pm$ $p_{\mathrm{ T}}$ and $y$. The efficiencies and uncertainties are in percent. 
Table_3.pdf [35 KiB] HiDef png [239 KiB] Thumbnail [124 KiB] tex code 

Measured $ B ^\pm$ doubledifferential crosssection (in units of $\mathrm{ nb}$ ) at $7\mathrm{ Te V} $, as a function of $p_{\mathrm{ T}}$ and $y$, in the rapidity regions of $2.0<y<2.5$, $2.5<y<3.0$, and $3.0<y<3.5$. 
Table_4.pdf [36 KiB] HiDef png [354 KiB] Thumbnail [186 KiB] tex code 

Measured $ B ^\pm$ doubledifferential crosssection (in units of $\mathrm{ nb}$ ) at $7\mathrm{ Te V} $, as a function of $p_{\mathrm{ T}}$ and $y$, in the rapidity regions of $3.5<y<4.0$ and $4.0<y<4.5$. 
Table_5.pdf [36 KiB] HiDef png [363 KiB] Thumbnail [204 KiB] tex code 

Measured $ B ^\pm$ doubledifferential crosssection (in units of $\mathrm{ nb}$ ) at $13\mathrm{ Te V} $, as a function of $p_{\mathrm{ T}}$ and $y$, in the rapidity regions of $2.0<y<2.5$, $2.5<y<3.0$, and $3.0<y<3.5$. 
Table_6.pdf [36 KiB] HiDef png [349 KiB] Thumbnail [189 KiB] tex code 

Measured $ B ^\pm$ doubledifferential crosssection (in units of $\mathrm{ nb}$ ) at $13\mathrm{ Te V} $, as a function of $p_{\mathrm{ T}}$ and $y$, in the rapidity regions of $3.5<y<4.0$ and $4.0<y<4.5$. 
Table_7.pdf [36 KiB] HiDef png [389 KiB] Thumbnail [201 KiB] tex code 

Measured $ B ^\pm$ differential crosssections (in units of $\mathrm{ nb} $) at $7\mathrm{ Te V} $ and $13\mathrm{ Te V} $ as functions of $p_{\mathrm{ T}}$ in the range $2.0<y<4.5$. The crosssection ratio between $13\mathrm{ Te V} $ and $7\mathrm{ Te V} $ is also presented. 
Table_8.pdf [36 KiB] HiDef png [365 KiB] Thumbnail [192 KiB] tex code 

Measured $ B ^\pm$ differential crosssections (in units of $ {\mathrm{ \upmu b}} $) at $7\mathrm{ Te V} $ and $13\mathrm{ Te V} $ as functions of $y$ in the $p_{\mathrm{ T}}$ range $0< p_{\mathrm{ T}} <40 {\mathrm{ Ge V /}c} $. The crosssection ratio between $13\mathrm{ Te V} $ and $7\mathrm{ Te V} $ is also presented. 
Table_9.pdf [27 KiB] HiDef png [16 KiB] Thumbnail [41 KiB] tex code 
Created on 21 October 2019.