AI-Assisted Analysis of CMS Open Data: Prompt J/psi Cross-Section Measurements in pp and Peripheral PbPb Collisions at sqrt(S)= 7 TeV and sqrt(sNN) = 2.76 TeV
We investigate the use of an artificial-intelligence (AI) coding agent, supervised by human physicists, for collider physics analyses using CMS Open Data. OpenAI Codex performs dimuon event selection, two-dimensional invariant-mass and decay-length fits, Monte Carlo detector simulations, and systematic uncertainty evaluation after acquiring physics and experimental knowledge from published studies and external references, with human review at each stage. The workflow is tested on two CMS datasets, with custom full-detector simulations used to determine acceptance and reconstruction efficiencies. In proton-proton collisions at sqrt(s) = 7 TeV, prompt J/psi differential cross sections are measured versus transverse momentum and rapidity. The ratios of remeasured to published CMS cross sections have a mean of 1.000 and an RMS spread of 0.215 across 39 bins. In peripheral (50-100% centrality) PbPb collisions at sqrt(s_NN) = 2.76 TeV, the corresponding prompt J/psi fiducial cross-section ratios have a mean of 1.158 and an RMS spread of 0.225 across six intervals. We identify agent failure modes and demonstrate the importance of structured human review in ensuring reliable results.