2020-12-112020-12-112019-09-192470-00102470-0029http://dx.doi.org/10.34944/dspace/4287IY8LC (isidoc)http://hdl.handle.net/20.500.12613/4305© 2019 authors. Published by the American Physical Society. We present measurements of the differential cross sections of inclusive J/ψ meson production as a function of transverse momentum (pTJ/ψ) using the μ+μ- and e+e- decay channels in proton+proton collisions at center-of-mass energies of 510 and 500 GeV, respectively, recorded by the STAR detector at the Relativistic Heavy Ion Collider. The measurement from the μ+μ- channel is for 0<pTJ/ψ<9 GeV/c and rapidity range |yJ/ψ|<0.4, and that from the e+e- channel is for 4<pTJ/ψ<20 GeV/c and |yJ/ψ|<1.0. The ψ(2S) to J/ψ ratio is also measured for 4<pTmeson<12 GeV/c through the e+e- decay channel. Model calculations, which incorporate different approaches toward the J/ψ production mechanism, are compared with experimental results and show reasonable agreement within uncertainties.052009-enhttps://creativecommons.org/licenses/by/4.0/hep-exhep-exnucl-exMeasurements of the transverse-momentum-dependent cross sections of J /ψ production at mid-rapidity in proton+proton collisions at s =510 and 500 GeV with the STAR detectorArticle2020-12-11