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{\,GeV\!/}c} }$ and ${2.5<y<3.0}$ using (left) $7\mathrm{\,TeV} $ and (right) $13\mathrm{\,TeV} $ 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 [285 KiB] Thumbnail [95 KiB] *.C file 

Fig1b.pdf [82 KiB] HiDef png [273 KiB] Thumbnail [92 KiB] *.C file 

Measured $ B ^\pm$ doubledifferential production crosssections at (top) $7\mathrm{\,TeV} $ and (bottom) $13\mathrm{\,TeV} $ 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 [204 KiB] Thumbnail [78 KiB] *.C file 

Fig2b.pdf [69 KiB] HiDef png [203 KiB] Thumbnail [79 KiB] *.C file 

Measured $ B ^\pm$ differential crosssection at $7\mathrm{\,TeV} $ 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 [167 KiB] Thumbnail [53 KiB] *.C file 

Fig3b.pdf [61 KiB] HiDef png [185 KiB] Thumbnail [57 KiB] *.C file 

Measured $ B ^\pm$ differential crosssection at $13\mathrm{\,TeV} $ 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 [172 KiB] Thumbnail [53 KiB] *.C file 

Fig4b.pdf [61 KiB] HiDef png [223 KiB] Thumbnail [63 KiB] *.C file 

Ratio of the $ B ^\pm$ crosssection at $13\mathrm{\,TeV} $ to that at $7\mathrm{\,TeV} $ 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 [176 KiB] Thumbnail [57 KiB] *.C file 

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

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

Fig6b.pdf [61 KiB] HiDef png [192 KiB] Thumbnail [58 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{\,TeV} $, and the ratio of the crosssections $R(13\mathrm{\,TeV} /7\mathrm{\,TeV} )$. 
Table_1.pdf [27 KiB] HiDef png [87 KiB] Thumbnail [13 KiB] tex code 

Measured $\varepsilon_{\text{tot}}$ of $ B ^\pm$ events at $7\mathrm{\,TeV} $, 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 [208 KiB] Thumbnail [32 KiB] tex code 

Measured $\varepsilon_{\text{tot}}$ of $ B ^\pm$ events at $13\mathrm{\,TeV} $, 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 [200 KiB] Thumbnail [32 KiB] tex code 

Measured $ B ^\pm$ doubledifferential crosssection (in units of $\mathrm{ \,nb}$ ) at $7\mathrm{\,TeV} $, 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 [305 KiB] Thumbnail [47 KiB] tex code 

Measured $ B ^\pm$ doubledifferential crosssection (in units of $\mathrm{ \,nb}$ ) at $7\mathrm{\,TeV} $, 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 [303 KiB] Thumbnail [54 KiB] tex code 

Measured $ B ^\pm$ doubledifferential crosssection (in units of $\mathrm{ \,nb}$ ) at $13\mathrm{\,TeV} $, 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 [303 KiB] Thumbnail [48 KiB] tex code 

Measured $ B ^\pm$ doubledifferential crosssection (in units of $\mathrm{ \,nb}$ ) at $13\mathrm{\,TeV} $, 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 [330 KiB] Thumbnail [55 KiB] tex code 

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

Measured $ B ^\pm$ differential crosssections (in units of $ {\mathrm{ \,\upmu b}} $) at $7\mathrm{\,TeV} $ and $13\mathrm{\,TeV} $ as functions of $y$ in the $p_{\mathrm{ T}}$ range $0< p_{\mathrm{ T}} <40 {\mathrm{\,GeV\!/}c} $. The crosssection ratio between $13\mathrm{\,TeV} $ and $7\mathrm{\,TeV} $ is also presented. 
Table_9.pdf [27 KiB] HiDef png [23 KiB] Thumbnail [11 KiB] tex code 
Created on 09 December 2018.Citation count from INSPIRE on 09 December 2018.