TY - INPR T1 - Measurement of ψ(2S) production as a function of charged-particle pseudorapidity density in pp collisions at √s = 13 TeV and p–Pb collisions at √sNN = 8.16 TeV with ALICE at the LHC T2 - arXiv N2 - Charmonium production in pp collisions at center-of-mass energy of s√ = 13 TeV and p-Pb collisions at center-of-mass energy per nucleon pair of sNN−−−√ = 8.16 TeV is studied as a function of charged-particle pseudorapidity density with ALICE. Ground and excited charmonium states (J/ψ, ψ(2S)) are measured from their dimuon decays in the interval of rapidity in the center-of-mass frame 2.5